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/16/
References
1. https://orion.artixlinux.org/job/packages/job/python-django-rest-framework/job/master/16/
-------------- 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
Running on Jenkins in /var/lib/jenkins/workspace/hon-django-rest-framework_master
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[2024-11-23T19:59:31.005Z]
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
[2024-11-23T19:59:31.070Z] The recommended git tool is: NONE
[2024-11-23T19:59:31.070Z] using credential jenkins-gotea-token
[2024-11-23T19:59:31.199Z] > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/hon-django-rest-framework_master/.git # timeout=10
[2024-11-23T19:59:31.205Z] Fetching changes from the remote Git repository
[2024-11-23T19:59:31.206Z] > git config remote.origin.url https://gitea.artixlinux.org/packages/python-django-rest-framework.git # timeout=10
[2024-11-23T19:59:31.210Z] Cleaning workspace
[2024-11-23T19:59:31.210Z] > git rev-parse --verify HEAD # timeout=10
[2024-11-23T19:59:31.214Z] Resetting working tree
[2024-11-23T19:59:31.214Z] > git reset --hard # timeout=10
[2024-11-23T19:59:31.220Z] > git clean -fdx # timeout=10
[2024-11-23T19:59:31.227Z] Fetching without tags
[2024-11-23T19:59:31.227Z] Fetching upstream changes from https://gitea.artixlinux.org/packages/python-django-rest-framework.git
[2024-11-23T19:59:31.227Z] > git --version # timeout=10
[2024-11-23T19:59:31.233Z] > git --version # 'git version 2.47.0'
[2024-11-23T19:59:31.233Z] using GIT_ASKPASS to set credentials jenkins gitea token
[2024-11-23T19:59:31.238Z] > 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-23T19:59:31.370Z] Checking out Revision 0bcf504546b7ac9f03b6afb9453be0ce37b98b15 (master)
[2024-11-23T19:59:31.370Z] > git config core.sparsecheckout # timeout=10
[2024-11-23T19:59:31.375Z] > git checkout -f 0bcf504546b7ac9f03b6afb9453be0ce37b98b15 # timeout=10
[2024-11-23T19:59:31.382Z] Commit message: "[world-goblins] 'python-django-rest-framework-3.15.2-4' add"
[2024-11-23T19:59:31.382Z] > git rev-list --no-walk 0bcf504546b7ac9f03b6afb9453be0ce37b98b15 # timeout=10
[2024-11-23T19:59:31.394Z] [Gitea] Notifying branch build status: PENDING Build started...
[2024-11-23T19:59:31.527Z] [Gitea] Notified
[Pipeline] readYaml
[Pipeline] sh
[2024-11-23T19:59:31.793Z] + git show -s --format=%an 0bcf504546b7ac9f03b6afb9453be0ce37b98b15
[Pipeline] sh
[2024-11-23T19:59:32.051Z] + git show -s --format=%ae 0bcf504546b7ac9f03b6afb9453be0ce37b98b15
[Pipeline] echo
[2024-11-23T19:59:32.074Z] addRepo=world-goblins
[Pipeline] echo
[2024-11-23T19:59:32.079Z] removeRepo=null
[Pipeline] echo
[2024-11-23T19:59:32.083Z] triggersBuild=true
[Pipeline] echo
[2024-11-23T19:59:32.088Z] triggersRebuild=false
[Pipeline] echo
[2024-11-23T19:59:32.092Z] triggersRepoAdd=true
[Pipeline] echo
[2024-11-23T19:59:32.097Z] triggersRepoRemove=false
[Pipeline] echo
[2024-11-23T19:59:32.102Z] triggersNoCheck=false
[Pipeline] echo
[2024-11-23T19:59:32.107Z] name=LemonPie
[Pipeline] echo
[2024-11-23T19:59:32.111Z] email=lemonpie at artixlinux.org
[Pipeline] echo
[2024-11-23T19:59:32.116Z] credentialsId=BUILDBOT_GPGP
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] catchError
[Pipeline] {
[Pipeline] sh
[2024-11-23T19:59:32.440Z] + buildpkg -n -a x86_64 -d world-goblins -e 'LemonPie <lemonpie at artixlinux.org>'
[2024-11-23T19:59:36.562Z] :: Synchronizing package databases...
[2024-11-23T19:59:36.562Z] system-goblins downloading...
[2024-11-23T19:59:36.562Z] system-gremlins downloading...
[2024-11-23T19:59:36.562Z] system downloading...
[2024-11-23T19:59:36.562Z] world-goblins downloading...
[2024-11-23T19:59:36.562Z] world-gremlins downloading...
[2024-11-23T19:59:36.562Z] world downloading...
[2024-11-23T19:59:36.562Z] :: Starting full system upgrade...
[2024-11-23T19:59:36.562Z] there is nothing to do
[2024-11-23T19:59:39.053Z] ==> Building in chroot for [world-goblins] (x86_64)...
[2024-11-23T19:59:39.603Z] ==> Synchronizing chroot copy [/build/buildpkg/world-goblins-x86_64/root] -> [jenkins]...done
[2024-11-23T19:59:40.514Z] ==> Making package: python-django-rest-framework 3.15.2-4 (Sat Nov 23 20:59:40 2024)
[2024-11-23T19:59:40.514Z] ==> Retrieving sources...
[2024-11-23T19:59:40.514Z] -> Found django-rest-framework-3.15.2.tar.gz
[2024-11-23T19:59:40.514Z] -> Found django-rest-framework-3.15.2-accept-integers.patch
[2024-11-23T19:59:40.514Z] -> Found django-rest-framework-3.15.2-django5.1-support.patch
[2024-11-23T19:59:40.514Z] ==> Validating source files with sha512sums...
[2024-11-23T19:59:40.514Z] django-rest-framework-3.15.2.tar.gz ... Passed
[2024-11-23T19:59:40.514Z] django-rest-framework-3.15.2-accept-integers.patch ... Passed
[2024-11-23T19:59:40.764Z] django-rest-framework-3.15.2-django5.1-support.patch ... Passed
[2024-11-23T19:59:40.764Z] ==> Validating source files with b2sums...
[2024-11-23T19:59:40.764Z] django-rest-framework-3.15.2.tar.gz ... Passed
[2024-11-23T19:59:40.764Z] django-rest-framework-3.15.2-accept-integers.patch ... Passed
[2024-11-23T19:59:40.764Z] django-rest-framework-3.15.2-django5.1-support.patch ... Passed
[2024-11-23T19:59:47.244Z] ==> Making package: python-django-rest-framework 3.15.2-4 (Sat Nov 23 19:59:46 2024)
[2024-11-23T19:59:47.244Z] ==> Checking runtime dependencies...
[2024-11-23T19:59:47.244Z] ==> Installing missing dependencies...
[2024-11-23T19:59:47.244Z] resolving dependencies...
[2024-11-23T19:59:47.244Z] looking for conflicting packages...
[2024-11-23T19:59:47.244Z]
[2024-11-23T19:59:47.244Z] Package (4) New Version Net Change
[2024-11-23T19:59:47.244Z]
[2024-11-23T19:59:47.244Z] world-goblins/python-asgiref 3.8.1-2 0.21 MiB
[2024-11-23T19:59:47.244Z] world-goblins/python-sqlparse 0.5.1-2 0.51 MiB
[2024-11-23T19:59:47.244Z] world-goblins/python-django 5.1.3-2 35.08 MiB
[2024-11-23T19:59:47.244Z] world-goblins/python-pytz 2024.2-2 0.15 MiB
[2024-11-23T19:59:47.244Z]
[2024-11-23T19:59:47.244Z] Total Installed Size: 35.95 MiB
[2024-11-23T19:59:47.244Z]
[2024-11-23T19:59:47.244Z] :: Proceed with installation? [Y/n]
[2024-11-23T19:59:47.244Z] checking keyring...
[2024-11-23T19:59:47.244Z] checking package integrity...
[2024-11-23T19:59:47.244Z] loading package files...
[2024-11-23T19:59:47.244Z] checking for file conflicts...
[2024-11-23T19:59:47.244Z] :: Processing package changes...
[2024-11-23T19:59:47.244Z] installing python-pytz...
[2024-11-23T19:59:47.244Z] installing python-sqlparse...
[2024-11-23T19:59:47.244Z] installing python-asgiref...
[2024-11-23T19:59:47.244Z] installing python-django...
[2024-11-23T19:59:47.244Z] Optional dependencies for python-django
[2024-11-23T19:59:47.244Z] python-psycopg2: for PostgreSQL backend
[2024-11-23T19:59:47.244Z] python-argon2-cffi: for Argon2 password hashing support
[2024-11-23T19:59:47.244Z] ==> Checking buildtime dependencies...
[2024-11-23T19:59:47.244Z] ==> Installing missing dependencies...
[2024-11-23T19:59:47.495Z] resolving dependencies...
[2024-11-23T19:59:47.495Z] looking for conflicting packages...
[2024-11-23T19:59:47.495Z]
[2024-11-23T19:59:47.495Z] Package (17) New Version Net Change
[2024-11-23T19:59:47.495Z]
[2024-11-23T19:59:47.495Z] world-goblins/python-autocommand 2.2.2-7 0.08 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-iniconfig 2.0.0-6 0.04 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-jaraco.collections 5.0.1-2 0.10 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-jaraco.context 5.3.0-2 0.04 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-jaraco.functools 4.0.2-2 0.07 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-jaraco.text 4.0.0-2 0.08 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-more-itertools 10.3.0-2 0.62 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-packaging 24.2-3 0.66 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-platformdirs 4.3.6-2 0.24 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-pluggy 1.5.0-3 0.20 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-pyproject-hooks 1.2.0-3 0.10 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-build 1.2.2-3 0.20 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-installer 0.7.0-10 0.17 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-pytest 1:8.3.3-2.1 3.91 MiB
[2024-11-23T19:59:47.495Z] world/python-pytest-django 4.8.0-3 0.21 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-setuptools 1:75.2.0-4 8.05 MiB
[2024-11-23T19:59:47.495Z] world-goblins/python-wheel 0.45.0-3 0.28 MiB
[2024-11-23T19:59:47.495Z]
[2024-11-23T19:59:47.495Z] Total Installed Size: 15.06 MiB
[2024-11-23T19:59:47.495Z]
[2024-11-23T19:59:47.495Z] :: Proceed with installation? [Y/n]
[2024-11-23T19:59:47.495Z] checking keyring...
[2024-11-23T19:59:47.495Z] checking package integrity...
[2024-11-23T19:59:48.045Z] loading package files...
[2024-11-23T19:59:48.045Z] checking for file conflicts...
[2024-11-23T19:59:48.045Z] :: Processing package changes...
[2024-11-23T19:59:48.045Z] installing python-packaging...
[2024-11-23T19:59:48.045Z] installing python-pyproject-hooks...
[2024-11-23T19:59:48.045Z] installing python-build...
[2024-11-23T19:59:48.045Z] Optional dependencies for python-build
[2024-11-23T19:59:48.045Z] python-pip: to use as the Python package installer (default)
[2024-11-23T19:59:48.045Z] python-uv: to use as the Python package installer
[2024-11-23T19:59:48.045Z] python-virtualenv: to use virtualenv for build isolation
[2024-11-23T19:59:48.045Z] installing python-installer...
[2024-11-23T19:59:48.045Z] installing python-more-itertools...
[2024-11-23T19:59:48.045Z] installing python-jaraco.functools...
[2024-11-23T19:59:48.045Z] installing python-jaraco.context...
[2024-11-23T19:59:48.045Z] installing python-autocommand...
[2024-11-23T19:59:48.045Z] installing python-jaraco.text...
[2024-11-23T19:59:48.045Z] Optional dependencies for python-jaraco.text
[2024-11-23T19:59:48.045Z] python-inflect: for show-newlines script
[2024-11-23T19:59:48.045Z] installing python-jaraco.collections...
[2024-11-23T19:59:48.045Z] installing python-platformdirs...
[2024-11-23T19:59:48.045Z] installing python-wheel...
[2024-11-23T19:59:48.045Z] Optional dependencies for python-wheel
[2024-11-23T19:59:48.045Z] python-keyring: for wheel.signatures
[2024-11-23T19:59:48.045Z] python-xdg: for wheel.signatures
[2024-11-23T19:59:48.045Z] python-setuptools: for legacy bdist_wheel subcommand [pending]
[2024-11-23T19:59:48.045Z] installing python-setuptools...
[2024-11-23T19:59:48.045Z] installing python-iniconfig...
[2024-11-23T19:59:48.045Z] installing python-pluggy...
[2024-11-23T19:59:48.045Z] installing python-pytest...
[2024-11-23T19:59:48.045Z] installing python-pytest-django...
[2024-11-23T19:59:48.296Z] ==> Retrieving sources...
[2024-11-23T19:59:48.296Z] -> Found django-rest-framework-3.15.2.tar.gz
[2024-11-23T19:59:48.296Z] -> Found django-rest-framework-3.15.2-accept-integers.patch
[2024-11-23T19:59:48.296Z] -> Found django-rest-framework-3.15.2-django5.1-support.patch
[2024-11-23T19:59:48.296Z] ==> WARNING: Skipping all source file integrity checks.
[2024-11-23T19:59:48.296Z] ==> Extracting sources...
[2024-11-23T19:59:48.296Z] -> Extracting django-rest-framework-3.15.2.tar.gz with bsdtar
[2024-11-23T19:59:48.546Z] ==> Starting prepare()...
[2024-11-23T19:59:48.546Z] patching file docs/api-guide/fields.md
[2024-11-23T19:59:48.546Z] patching file rest_framework/fields.py
[2024-11-23T19:59:48.546Z] patching file tests/test_fields.py
[2024-11-23T19:59:48.546Z] patching file README.md
[2024-11-23T19:59:48.546Z] Hunk #1 succeeded at 54 (offset -1 lines).
[2024-11-23T19:59:48.546Z] patching file docs/api-guide/authentication.md
[2024-11-23T19:59:48.546Z] patching file docs/index.md
[2024-11-23T19:59:48.546Z] Hunk #1 succeeded at 86 (offset -1 lines).
[2024-11-23T19:59:48.546Z] patching file rest_framework/views.py
[2024-11-23T19:59:48.546Z] patching file rest_framework/viewsets.py
[2024-11-23T19:59:48.546Z] patching file setup.py
[2024-11-23T19:59:48.546Z] Hunk #1 succeeded at 92 (offset 1 line).
[2024-11-23T19:59:48.546Z] patching file tests/test_middleware.py
[2024-11-23T19:59:48.546Z] patching file tests/test_views.py
[2024-11-23T19:59:48.546Z] patching file tests/test_viewsets.py
[2024-11-23T19:59:48.546Z] patching file tox.ini
[2024-11-23T19:59:48.546Z] ==> Starting build()...
[2024-11-23T19:59:48.546Z] * Getting build dependencies for wheel...
[2024-11-23T19:59:48.796Z] running egg_info
[2024-11-23T19:59:48.796Z] creating djangorestframework.egg-info
[2024-11-23T19:59:48.796Z] writing djangorestframework.egg-info/PKG-INFO
[2024-11-23T19:59:48.796Z] writing dependency_links to djangorestframework.egg-info/dependency_links.txt
[2024-11-23T19:59:48.796Z] writing requirements to djangorestframework.egg-info/requires.txt
[2024-11-23T19:59:48.796Z] writing top-level names to djangorestframework.egg-info/top_level.txt
[2024-11-23T19:59:48.796Z] writing manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T19:59:48.796Z] reading manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T19:59:48.796Z] reading manifest template 'MANIFEST.in'
[2024-11-23T19:59:48.796Z] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[2024-11-23T19:59:48.796Z] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[2024-11-23T19:59:48.796Z] adding license file 'LICENSE.md'
[2024-11-23T19:59:48.796Z] writing manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T19:59:49.046Z] * Building wheel...
[2024-11-23T19:59:49.046Z] running bdist_wheel
[2024-11-23T19:59:49.297Z] running build
[2024-11-23T19:59:49.297Z] running build_py
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/permissions.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/__init__.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/routers.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/urls.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/apps.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/negotiation.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/parsers.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/relations.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/metadata.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/views.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/versioning.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/serializers.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/authentication.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/status.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/filters.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/fields.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/test.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/documentation.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/exceptions.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/compat.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/renderers.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/throttling.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/pagination.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/settings.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/response.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/validators.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/decorators.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/viewsets.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/request.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/mixins.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/checks.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/urlpatterns.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/reverse.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] copying rest_framework/generics.py -> build/lib/rest_framework
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/__init__.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/encoders.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/urls.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/formatting.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/field_mapping.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/breadcrumbs.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/json.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/timezone.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/mediatypes.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/serializer_helpers.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/model_meta.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/html.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/humanize_datetime.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] copying rest_framework/utils/representation.py -> build/lib/rest_framework/utils
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/__init__.py -> build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/models.py -> build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/apps.py -> build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/views.py -> build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/serializers.py -> build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/admin.py -> build/lib/rest_framework/authtoken
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/management
[2024-11-23T19:59:49.297Z] copying rest_framework/management/__init__.py -> build/lib/rest_framework/management
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/templatetags
[2024-11-23T19:59:49.297Z] copying rest_framework/templatetags/__init__.py -> build/lib/rest_framework/templatetags
[2024-11-23T19:59:49.297Z] copying rest_framework/templatetags/rest_framework.py -> build/lib/rest_framework/templatetags
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/__init__.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/views.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/generators.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/coreapi.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/utils.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/inspectors.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] copying rest_framework/schemas/openapi.py -> build/lib/rest_framework/schemas
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/authtoken/management
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/management/__init__.py -> build/lib/rest_framework/authtoken/management
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/migrations/__init__.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/migrations/0001_initial.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/migrations/0002_auto_20160226_1747.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/migrations/0003_tokenproxy.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/authtoken/management/commands
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/management/commands/__init__.py -> build/lib/rest_framework/authtoken/management/commands
[2024-11-23T19:59:49.297Z] copying rest_framework/authtoken/management/commands/drf_create_token.py -> build/lib/rest_framework/authtoken/management/commands
[2024-11-23T19:59:49.297Z] creating build/lib/rest_framework/management/commands
[2024-11-23T19:59:49.297Z] copying rest_framework/management/commands/__init__.py -> build/lib/rest_framework/management/commands
[2024-11-23T19:59:49.297Z] copying rest_framework/management/commands/generateschema.py -> build/lib/rest_framework/management/commands
[2024-11-23T19:59:49.297Z] running egg_info
[2024-11-23T19:59:49.297Z] writing djangorestframework.egg-info/PKG-INFO
[2024-11-23T19:59:49.297Z] writing dependency_links to djangorestframework.egg-info/dependency_links.txt
[2024-11-23T19:59:49.297Z] writing requirements to djangorestframework.egg-info/requires.txt
[2024-11-23T19:59:49.297Z] writing top-level names to djangorestframework.egg-info/top_level.txt
[2024-11-23T19:59:49.297Z] reading manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T19:59:49.297Z] reading manifest template 'MANIFEST.in'
[2024-11-23T19:59:49.297Z] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[2024-11-23T19:59:49.297Z] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[2024-11-23T19:59:49.297Z] adding license file 'LICENSE.md'
[2024-11-23T19:59:49.297Z] writing manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T19:59:49.297Z] /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-23T19:59:49.297Z] !!
[2024-11-23T19:59:49.297Z]
[2024-11-23T19:59:49.297Z] ********************************************************************************
[2024-11-23T19:59:49.297Z] ############################
[2024-11-23T19:59:49.297Z] # Package would be ignored #
[2024-11-23T19:59:49.297Z] ############################
[2024-11-23T19:59:49.297Z] Python recognizes 'rest_framework.locale.ach.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.297Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.297Z]
[2024-11-23T19:59:49.297Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.297Z] package, please make sure that 'rest_framework.locale.ach.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.297Z] to the `packages` configuration field.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.298Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.298Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] If you don't want 'rest_framework.locale.ach.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.298Z] already explicitly excluding 'rest_framework.locale.ach.LC_MESSAGES' via
[2024-11-23T19:59:49.298Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.298Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.298Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.298Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.298Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.298Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z] check.warn(importable)
[2024-11-23T19:59:49.298Z] /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-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] # Package would be ignored #
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] Python recognizes 'rest_framework.locale.ar.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.298Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.298Z] package, please make sure that 'rest_framework.locale.ar.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.298Z] to the `packages` configuration field.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.298Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.298Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] If you don't want 'rest_framework.locale.ar.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.298Z] already explicitly excluding 'rest_framework.locale.ar.LC_MESSAGES' via
[2024-11-23T19:59:49.298Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.298Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.298Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.298Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.298Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.298Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z] check.warn(importable)
[2024-11-23T19:59:49.298Z] /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-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] # Package would be ignored #
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] Python recognizes 'rest_framework.locale.az.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.298Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.298Z] package, please make sure that 'rest_framework.locale.az.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.298Z] to the `packages` configuration field.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.298Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.298Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] If you don't want 'rest_framework.locale.az.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.298Z] already explicitly excluding 'rest_framework.locale.az.LC_MESSAGES' via
[2024-11-23T19:59:49.298Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.298Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.298Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.298Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.298Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.298Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z] check.warn(importable)
[2024-11-23T19:59:49.298Z] /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-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] # Package would be ignored #
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] Python recognizes 'rest_framework.locale.be.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.298Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.298Z] package, please make sure that 'rest_framework.locale.be.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.298Z] to the `packages` configuration field.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.298Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.298Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] If you don't want 'rest_framework.locale.be.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.298Z] already explicitly excluding 'rest_framework.locale.be.LC_MESSAGES' via
[2024-11-23T19:59:49.298Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.298Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.298Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.298Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.298Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.298Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z] check.warn(importable)
[2024-11-23T19:59:49.298Z] /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-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] # Package would be ignored #
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] Python recognizes 'rest_framework.locale.bg.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.298Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.298Z] package, please make sure that 'rest_framework.locale.bg.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.298Z] to the `packages` configuration field.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.298Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.298Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] If you don't want 'rest_framework.locale.bg.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.298Z] already explicitly excluding 'rest_framework.locale.bg.LC_MESSAGES' via
[2024-11-23T19:59:49.298Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.298Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.298Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.298Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.298Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.298Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z] check.warn(importable)
[2024-11-23T19:59:49.298Z] /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-23T19:59:49.298Z] !!
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.298Z] ********************************************************************************
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] # Package would be ignored #
[2024-11-23T19:59:49.298Z] ############################
[2024-11-23T19:59:49.298Z] Python recognizes 'rest_framework.locale.ca.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.298Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.298Z]
[2024-11-23T19:59:49.299Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.299Z] package, please make sure that 'rest_framework.locale.ca.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.299Z] to the `packages` configuration field.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.299Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.299Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] If you don't want 'rest_framework.locale.ca.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.299Z] already explicitly excluding 'rest_framework.locale.ca.LC_MESSAGES' via
[2024-11-23T19:59:49.299Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.299Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.299Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.299Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.299Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.299Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z] check.warn(importable)
[2024-11-23T19:59:49.299Z] /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-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] # Package would be ignored #
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] Python recognizes 'rest_framework.locale.ca_ES.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.299Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.299Z] package, please make sure that 'rest_framework.locale.ca_ES.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.299Z] to the `packages` configuration field.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.299Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.299Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] If you don't want 'rest_framework.locale.ca_ES.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.299Z] already explicitly excluding 'rest_framework.locale.ca_ES.LC_MESSAGES' via
[2024-11-23T19:59:49.299Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.299Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.299Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.299Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.299Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.299Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z] check.warn(importable)
[2024-11-23T19:59:49.299Z] /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-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] # Package would be ignored #
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] Python recognizes 'rest_framework.locale.cs.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.299Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.299Z] package, please make sure that 'rest_framework.locale.cs.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.299Z] to the `packages` configuration field.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.299Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.299Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] If you don't want 'rest_framework.locale.cs.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.299Z] already explicitly excluding 'rest_framework.locale.cs.LC_MESSAGES' via
[2024-11-23T19:59:49.299Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.299Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.299Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.299Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.299Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.299Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z] check.warn(importable)
[2024-11-23T19:59:49.299Z] /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-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] # Package would be ignored #
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] Python recognizes 'rest_framework.locale.da.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.299Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.299Z] package, please make sure that 'rest_framework.locale.da.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.299Z] to the `packages` configuration field.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.299Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.299Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] If you don't want 'rest_framework.locale.da.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.299Z] already explicitly excluding 'rest_framework.locale.da.LC_MESSAGES' via
[2024-11-23T19:59:49.299Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.299Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.299Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.299Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.299Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.299Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z] check.warn(importable)
[2024-11-23T19:59:49.299Z] /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-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] # Package would be ignored #
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] Python recognizes 'rest_framework.locale.de.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.299Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.299Z] package, please make sure that 'rest_framework.locale.de.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.299Z] to the `packages` configuration field.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.299Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.299Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] If you don't want 'rest_framework.locale.de.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.299Z] already explicitly excluding 'rest_framework.locale.de.LC_MESSAGES' via
[2024-11-23T19:59:49.299Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.299Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.299Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.299Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.299Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.299Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z] check.warn(importable)
[2024-11-23T19:59:49.299Z] /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-23T19:59:49.299Z] !!
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.299Z] ********************************************************************************
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] # Package would be ignored #
[2024-11-23T19:59:49.299Z] ############################
[2024-11-23T19:59:49.299Z] Python recognizes 'rest_framework.locale.el.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.299Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.299Z]
[2024-11-23T19:59:49.300Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.300Z] package, please make sure that 'rest_framework.locale.el.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.300Z] to the `packages` configuration field.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.300Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.300Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] If you don't want 'rest_framework.locale.el.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.300Z] already explicitly excluding 'rest_framework.locale.el.LC_MESSAGES' via
[2024-11-23T19:59:49.300Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.300Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.300Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.300Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.300Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.300Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z] check.warn(importable)
[2024-11-23T19:59:49.300Z] /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-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] # Package would be ignored #
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] Python recognizes 'rest_framework.locale.el_GR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.300Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.300Z] package, please make sure that 'rest_framework.locale.el_GR.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.300Z] to the `packages` configuration field.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.300Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.300Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] If you don't want 'rest_framework.locale.el_GR.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.300Z] already explicitly excluding 'rest_framework.locale.el_GR.LC_MESSAGES' via
[2024-11-23T19:59:49.300Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.300Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.300Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.300Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.300Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.300Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z] check.warn(importable)
[2024-11-23T19:59:49.300Z] /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-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] # Package would be ignored #
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] Python recognizes 'rest_framework.locale.en.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.300Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.300Z] package, please make sure that 'rest_framework.locale.en.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.300Z] to the `packages` configuration field.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.300Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.300Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] If you don't want 'rest_framework.locale.en.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.300Z] already explicitly excluding 'rest_framework.locale.en.LC_MESSAGES' via
[2024-11-23T19:59:49.300Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.300Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.300Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.300Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.300Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.300Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z] check.warn(importable)
[2024-11-23T19:59:49.300Z] /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-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] # Package would be ignored #
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] Python recognizes 'rest_framework.locale.en_AU.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.300Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.300Z] package, please make sure that 'rest_framework.locale.en_AU.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.300Z] to the `packages` configuration field.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.300Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.300Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] If you don't want 'rest_framework.locale.en_AU.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.300Z] already explicitly excluding 'rest_framework.locale.en_AU.LC_MESSAGES' via
[2024-11-23T19:59:49.300Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.300Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.300Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.300Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.300Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.300Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z] check.warn(importable)
[2024-11-23T19:59:49.300Z] /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-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] # Package would be ignored #
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] Python recognizes 'rest_framework.locale.en_CA.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.300Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.300Z] package, please make sure that 'rest_framework.locale.en_CA.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.300Z] to the `packages` configuration field.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.300Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.300Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] If you don't want 'rest_framework.locale.en_CA.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.300Z] already explicitly excluding 'rest_framework.locale.en_CA.LC_MESSAGES' via
[2024-11-23T19:59:49.300Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.300Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.300Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.300Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.300Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.300Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z] check.warn(importable)
[2024-11-23T19:59:49.300Z] /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-23T19:59:49.300Z] !!
[2024-11-23T19:59:49.300Z]
[2024-11-23T19:59:49.300Z] ********************************************************************************
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] # Package would be ignored #
[2024-11-23T19:59:49.300Z] ############################
[2024-11-23T19:59:49.300Z] Python recognizes 'rest_framework.locale.en_US.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.301Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.301Z] package, please make sure that 'rest_framework.locale.en_US.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.301Z] to the `packages` configuration field.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.301Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.301Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] If you don't want 'rest_framework.locale.en_US.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.301Z] already explicitly excluding 'rest_framework.locale.en_US.LC_MESSAGES' via
[2024-11-23T19:59:49.301Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.301Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.301Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.301Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.301Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.301Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z] check.warn(importable)
[2024-11-23T19:59:49.301Z] /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-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] # Package would be ignored #
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] Python recognizes 'rest_framework.locale.es.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.301Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.301Z] package, please make sure that 'rest_framework.locale.es.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.301Z] to the `packages` configuration field.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.301Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.301Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] If you don't want 'rest_framework.locale.es.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.301Z] already explicitly excluding 'rest_framework.locale.es.LC_MESSAGES' via
[2024-11-23T19:59:49.301Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.301Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.301Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.301Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.301Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.301Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z] check.warn(importable)
[2024-11-23T19:59:49.301Z] /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-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] # Package would be ignored #
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] Python recognizes 'rest_framework.locale.et.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.301Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.301Z] package, please make sure that 'rest_framework.locale.et.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.301Z] to the `packages` configuration field.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.301Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.301Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] If you don't want 'rest_framework.locale.et.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.301Z] already explicitly excluding 'rest_framework.locale.et.LC_MESSAGES' via
[2024-11-23T19:59:49.301Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.301Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.301Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.301Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.301Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.301Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z] check.warn(importable)
[2024-11-23T19:59:49.301Z] /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-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] # Package would be ignored #
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] Python recognizes 'rest_framework.locale.fa.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.301Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.301Z] package, please make sure that 'rest_framework.locale.fa.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.301Z] to the `packages` configuration field.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.301Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.301Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] If you don't want 'rest_framework.locale.fa.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.301Z] already explicitly excluding 'rest_framework.locale.fa.LC_MESSAGES' via
[2024-11-23T19:59:49.301Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.301Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.301Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.301Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.301Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.301Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z] check.warn(importable)
[2024-11-23T19:59:49.301Z] /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-23T19:59:49.301Z] !!
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] ********************************************************************************
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] # Package would be ignored #
[2024-11-23T19:59:49.301Z] ############################
[2024-11-23T19:59:49.301Z] Python recognizes 'rest_framework.locale.fa_IR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.301Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.301Z] package, please make sure that 'rest_framework.locale.fa_IR.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.301Z] to the `packages` configuration field.
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.301Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.301Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.301Z]
[2024-11-23T19:59:49.301Z] If you don't want 'rest_framework.locale.fa_IR.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.301Z] already explicitly excluding 'rest_framework.locale.fa_IR.LC_MESSAGES' via
[2024-11-23T19:59:49.301Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.301Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.302Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.302Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.302Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.302Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z] check.warn(importable)
[2024-11-23T19:59:49.302Z] /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-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] # Package would be ignored #
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] Python recognizes 'rest_framework.locale.fi.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.302Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.302Z] package, please make sure that 'rest_framework.locale.fi.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.302Z] to the `packages` configuration field.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.302Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.302Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] If you don't want 'rest_framework.locale.fi.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.302Z] already explicitly excluding 'rest_framework.locale.fi.LC_MESSAGES' via
[2024-11-23T19:59:49.302Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.302Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.302Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.302Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.302Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.302Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z] check.warn(importable)
[2024-11-23T19:59:49.302Z] /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-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] # Package would be ignored #
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] Python recognizes 'rest_framework.locale.fr.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.302Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.302Z] package, please make sure that 'rest_framework.locale.fr.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.302Z] to the `packages` configuration field.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.302Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.302Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] If you don't want 'rest_framework.locale.fr.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.302Z] already explicitly excluding 'rest_framework.locale.fr.LC_MESSAGES' via
[2024-11-23T19:59:49.302Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.302Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.302Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.302Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.302Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.302Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z] check.warn(importable)
[2024-11-23T19:59:49.302Z] /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-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] # Package would be ignored #
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] Python recognizes 'rest_framework.locale.fr_CA.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.302Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.302Z] package, please make sure that 'rest_framework.locale.fr_CA.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.302Z] to the `packages` configuration field.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.302Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.302Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] If you don't want 'rest_framework.locale.fr_CA.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.302Z] already explicitly excluding 'rest_framework.locale.fr_CA.LC_MESSAGES' via
[2024-11-23T19:59:49.302Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.302Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.302Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.302Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.302Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.302Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z] check.warn(importable)
[2024-11-23T19:59:49.302Z] /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-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] # Package would be ignored #
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] Python recognizes 'rest_framework.locale.gl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.302Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.302Z] package, please make sure that 'rest_framework.locale.gl.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.302Z] to the `packages` configuration field.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.302Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.302Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] If you don't want 'rest_framework.locale.gl.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.302Z] already explicitly excluding 'rest_framework.locale.gl.LC_MESSAGES' via
[2024-11-23T19:59:49.302Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.302Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.302Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.302Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.302Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.302Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z] check.warn(importable)
[2024-11-23T19:59:49.302Z] /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-23T19:59:49.302Z] !!
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] ********************************************************************************
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] # Package would be ignored #
[2024-11-23T19:59:49.302Z] ############################
[2024-11-23T19:59:49.302Z] Python recognizes 'rest_framework.locale.gl_ES.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.302Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.302Z] package, please make sure that 'rest_framework.locale.gl_ES.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.302Z] to the `packages` configuration field.
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.302Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.302Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.302Z]
[2024-11-23T19:59:49.302Z] If you don't want 'rest_framework.locale.gl_ES.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.302Z] already explicitly excluding 'rest_framework.locale.gl_ES.LC_MESSAGES' via
[2024-11-23T19:59:49.302Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.302Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.303Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.303Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.303Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.303Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z] check.warn(importable)
[2024-11-23T19:59:49.303Z] /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-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] # Package would be ignored #
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] Python recognizes 'rest_framework.locale.he_IL.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.303Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.303Z] package, please make sure that 'rest_framework.locale.he_IL.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.303Z] to the `packages` configuration field.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.303Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.303Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] If you don't want 'rest_framework.locale.he_IL.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.303Z] already explicitly excluding 'rest_framework.locale.he_IL.LC_MESSAGES' via
[2024-11-23T19:59:49.303Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.303Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.303Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.303Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.303Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.303Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z] check.warn(importable)
[2024-11-23T19:59:49.303Z] /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-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] # Package would be ignored #
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] Python recognizes 'rest_framework.locale.hu.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.303Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.303Z] package, please make sure that 'rest_framework.locale.hu.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.303Z] to the `packages` configuration field.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.303Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.303Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] If you don't want 'rest_framework.locale.hu.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.303Z] already explicitly excluding 'rest_framework.locale.hu.LC_MESSAGES' via
[2024-11-23T19:59:49.303Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.303Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.303Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.303Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.303Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.303Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z] check.warn(importable)
[2024-11-23T19:59:49.303Z] /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-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] # Package would be ignored #
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] Python recognizes 'rest_framework.locale.hy.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.303Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.303Z] package, please make sure that 'rest_framework.locale.hy.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.303Z] to the `packages` configuration field.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.303Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.303Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] If you don't want 'rest_framework.locale.hy.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.303Z] already explicitly excluding 'rest_framework.locale.hy.LC_MESSAGES' via
[2024-11-23T19:59:49.303Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.303Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.303Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.303Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.303Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.303Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z] check.warn(importable)
[2024-11-23T19:59:49.303Z] /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-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] # Package would be ignored #
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] Python recognizes 'rest_framework.locale.id.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.303Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.303Z] package, please make sure that 'rest_framework.locale.id.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.303Z] to the `packages` configuration field.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.303Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.303Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] If you don't want 'rest_framework.locale.id.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.303Z] already explicitly excluding 'rest_framework.locale.id.LC_MESSAGES' via
[2024-11-23T19:59:49.303Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.303Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.303Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.303Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.303Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.303Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z] check.warn(importable)
[2024-11-23T19:59:49.303Z] /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-23T19:59:49.303Z] !!
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] ********************************************************************************
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] # Package would be ignored #
[2024-11-23T19:59:49.303Z] ############################
[2024-11-23T19:59:49.303Z] Python recognizes 'rest_framework.locale.it.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.303Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.303Z] package, please make sure that 'rest_framework.locale.it.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.303Z] to the `packages` configuration field.
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.303Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.303Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.303Z]
[2024-11-23T19:59:49.303Z] If you don't want 'rest_framework.locale.it.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.303Z] already explicitly excluding 'rest_framework.locale.it.LC_MESSAGES' via
[2024-11-23T19:59:49.303Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.304Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.304Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.304Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.304Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.304Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z] check.warn(importable)
[2024-11-23T19:59:49.304Z] /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-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] # Package would be ignored #
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] Python recognizes 'rest_framework.locale.ja.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.304Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.304Z] package, please make sure that 'rest_framework.locale.ja.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.304Z] to the `packages` configuration field.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.304Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.304Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] If you don't want 'rest_framework.locale.ja.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.304Z] already explicitly excluding 'rest_framework.locale.ja.LC_MESSAGES' via
[2024-11-23T19:59:49.304Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.304Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.304Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.304Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.304Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.304Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z] check.warn(importable)
[2024-11-23T19:59:49.304Z] /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-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] # Package would be ignored #
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] Python recognizes 'rest_framework.locale.ko_KR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.304Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.304Z] package, please make sure that 'rest_framework.locale.ko_KR.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.304Z] to the `packages` configuration field.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.304Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.304Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] If you don't want 'rest_framework.locale.ko_KR.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.304Z] already explicitly excluding 'rest_framework.locale.ko_KR.LC_MESSAGES' via
[2024-11-23T19:59:49.304Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.304Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.304Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.304Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.304Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.304Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z] check.warn(importable)
[2024-11-23T19:59:49.304Z] /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-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] # Package would be ignored #
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] Python recognizes 'rest_framework.locale.lt.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.304Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.304Z] package, please make sure that 'rest_framework.locale.lt.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.304Z] to the `packages` configuration field.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.304Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.304Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] If you don't want 'rest_framework.locale.lt.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.304Z] already explicitly excluding 'rest_framework.locale.lt.LC_MESSAGES' via
[2024-11-23T19:59:49.304Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.304Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.304Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.304Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.304Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.304Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z] check.warn(importable)
[2024-11-23T19:59:49.304Z] /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-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] # Package would be ignored #
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] Python recognizes 'rest_framework.locale.lv.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.304Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.304Z] package, please make sure that 'rest_framework.locale.lv.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.304Z] to the `packages` configuration field.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.304Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.304Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] If you don't want 'rest_framework.locale.lv.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.304Z] already explicitly excluding 'rest_framework.locale.lv.LC_MESSAGES' via
[2024-11-23T19:59:49.304Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.304Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.304Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.304Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.304Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.304Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z] check.warn(importable)
[2024-11-23T19:59:49.304Z] /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-23T19:59:49.304Z] !!
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] ********************************************************************************
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] # Package would be ignored #
[2024-11-23T19:59:49.304Z] ############################
[2024-11-23T19:59:49.304Z] Python recognizes 'rest_framework.locale.mk.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.304Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.304Z] package, please make sure that 'rest_framework.locale.mk.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.304Z] to the `packages` configuration field.
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.304Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.304Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.304Z]
[2024-11-23T19:59:49.304Z] If you don't want 'rest_framework.locale.mk.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.304Z] already explicitly excluding 'rest_framework.locale.mk.LC_MESSAGES' via
[2024-11-23T19:59:49.305Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.305Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.305Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.305Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.305Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.305Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z] check.warn(importable)
[2024-11-23T19:59:49.305Z] /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-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] # Package would be ignored #
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] Python recognizes 'rest_framework.locale.nb.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.305Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.305Z] package, please make sure that 'rest_framework.locale.nb.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.305Z] to the `packages` configuration field.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.305Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.305Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] If you don't want 'rest_framework.locale.nb.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.305Z] already explicitly excluding 'rest_framework.locale.nb.LC_MESSAGES' via
[2024-11-23T19:59:49.305Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.305Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.305Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.305Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.305Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.305Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z] check.warn(importable)
[2024-11-23T19:59:49.305Z] /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-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] # Package would be ignored #
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] Python recognizes 'rest_framework.locale.ne_NP.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.305Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.305Z] package, please make sure that 'rest_framework.locale.ne_NP.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.305Z] to the `packages` configuration field.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.305Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.305Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] If you don't want 'rest_framework.locale.ne_NP.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.305Z] already explicitly excluding 'rest_framework.locale.ne_NP.LC_MESSAGES' via
[2024-11-23T19:59:49.305Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.305Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.305Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.305Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.305Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.305Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z] check.warn(importable)
[2024-11-23T19:59:49.305Z] /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-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] # Package would be ignored #
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] Python recognizes 'rest_framework.locale.nl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.305Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.305Z] package, please make sure that 'rest_framework.locale.nl.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.305Z] to the `packages` configuration field.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.305Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.305Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] If you don't want 'rest_framework.locale.nl.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.305Z] already explicitly excluding 'rest_framework.locale.nl.LC_MESSAGES' via
[2024-11-23T19:59:49.305Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.305Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.305Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.305Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.305Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.305Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z] check.warn(importable)
[2024-11-23T19:59:49.305Z] /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-23T19:59:49.305Z] !!
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] # Package would be ignored #
[2024-11-23T19:59:49.305Z] ############################
[2024-11-23T19:59:49.305Z] Python recognizes 'rest_framework.locale.nn.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.305Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.305Z] package, please make sure that 'rest_framework.locale.nn.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.305Z] to the `packages` configuration field.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.305Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.305Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] If you don't want 'rest_framework.locale.nn.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.305Z] already explicitly excluding 'rest_framework.locale.nn.LC_MESSAGES' via
[2024-11-23T19:59:49.305Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.305Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.305Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.305Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.305Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.305Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.305Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.305Z] ********************************************************************************
[2024-11-23T19:59:49.305Z]
[2024-11-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z] check.warn(importable)
[2024-11-23T19:59:49.306Z] /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-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] # Package would be ignored #
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] Python recognizes 'rest_framework.locale.no.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.306Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.306Z] package, please make sure that 'rest_framework.locale.no.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.306Z] to the `packages` configuration field.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.306Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.306Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] If you don't want 'rest_framework.locale.no.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.306Z] already explicitly excluding 'rest_framework.locale.no.LC_MESSAGES' via
[2024-11-23T19:59:49.306Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.306Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.306Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.306Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.306Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.306Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z] check.warn(importable)
[2024-11-23T19:59:49.306Z] /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-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] # Package would be ignored #
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] Python recognizes 'rest_framework.locale.pl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.306Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.306Z] package, please make sure that 'rest_framework.locale.pl.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.306Z] to the `packages` configuration field.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.306Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.306Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] If you don't want 'rest_framework.locale.pl.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.306Z] already explicitly excluding 'rest_framework.locale.pl.LC_MESSAGES' via
[2024-11-23T19:59:49.306Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.306Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.306Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.306Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.306Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.306Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z] check.warn(importable)
[2024-11-23T19:59:49.306Z] /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-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] # Package would be ignored #
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] Python recognizes 'rest_framework.locale.pt.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.306Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.306Z] package, please make sure that 'rest_framework.locale.pt.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.306Z] to the `packages` configuration field.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.306Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.306Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] If you don't want 'rest_framework.locale.pt.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.306Z] already explicitly excluding 'rest_framework.locale.pt.LC_MESSAGES' via
[2024-11-23T19:59:49.306Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.306Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.306Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.306Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.306Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.306Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z] check.warn(importable)
[2024-11-23T19:59:49.306Z] /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-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] # Package would be ignored #
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] Python recognizes 'rest_framework.locale.pt_BR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.306Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.306Z] package, please make sure that 'rest_framework.locale.pt_BR.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.306Z] to the `packages` configuration field.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.306Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.306Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] If you don't want 'rest_framework.locale.pt_BR.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.306Z] already explicitly excluding 'rest_framework.locale.pt_BR.LC_MESSAGES' via
[2024-11-23T19:59:49.306Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.306Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.306Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.306Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.306Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.306Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z] check.warn(importable)
[2024-11-23T19:59:49.306Z] /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-23T19:59:49.306Z] !!
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] ********************************************************************************
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] # Package would be ignored #
[2024-11-23T19:59:49.306Z] ############################
[2024-11-23T19:59:49.306Z] Python recognizes 'rest_framework.locale.pt_PT.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.306Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.306Z] package, please make sure that 'rest_framework.locale.pt_PT.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.306Z] to the `packages` configuration field.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.306Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.306Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] If you don't want 'rest_framework.locale.pt_PT.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.306Z] already explicitly excluding 'rest_framework.locale.pt_PT.LC_MESSAGES' via
[2024-11-23T19:59:49.306Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.306Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.306Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z]
[2024-11-23T19:59:49.306Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.306Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.306Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.307Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z] check.warn(importable)
[2024-11-23T19:59:49.307Z] /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-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] # Package would be ignored #
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] Python recognizes 'rest_framework.locale.ro.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.307Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.307Z] package, please make sure that 'rest_framework.locale.ro.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.307Z] to the `packages` configuration field.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.307Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.307Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] If you don't want 'rest_framework.locale.ro.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.307Z] already explicitly excluding 'rest_framework.locale.ro.LC_MESSAGES' via
[2024-11-23T19:59:49.307Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.307Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.307Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.307Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.307Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.307Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z] check.warn(importable)
[2024-11-23T19:59:49.307Z] /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-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] # Package would be ignored #
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] Python recognizes 'rest_framework.locale.ru.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.307Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.307Z] package, please make sure that 'rest_framework.locale.ru.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.307Z] to the `packages` configuration field.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.307Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.307Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] If you don't want 'rest_framework.locale.ru.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.307Z] already explicitly excluding 'rest_framework.locale.ru.LC_MESSAGES' via
[2024-11-23T19:59:49.307Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.307Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.307Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.307Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.307Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.307Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z] check.warn(importable)
[2024-11-23T19:59:49.307Z] /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-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] # Package would be ignored #
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] Python recognizes 'rest_framework.locale.ru_RU.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.307Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.307Z] package, please make sure that 'rest_framework.locale.ru_RU.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.307Z] to the `packages` configuration field.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.307Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.307Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] If you don't want 'rest_framework.locale.ru_RU.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.307Z] already explicitly excluding 'rest_framework.locale.ru_RU.LC_MESSAGES' via
[2024-11-23T19:59:49.307Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.307Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.307Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.307Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.307Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.307Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z] check.warn(importable)
[2024-11-23T19:59:49.307Z] /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-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] # Package would be ignored #
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] Python recognizes 'rest_framework.locale.sk.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.307Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.307Z] package, please make sure that 'rest_framework.locale.sk.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.307Z] to the `packages` configuration field.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.307Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.307Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] If you don't want 'rest_framework.locale.sk.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.307Z] already explicitly excluding 'rest_framework.locale.sk.LC_MESSAGES' via
[2024-11-23T19:59:49.307Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.307Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.307Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.307Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.307Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.307Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z] check.warn(importable)
[2024-11-23T19:59:49.307Z] /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-23T19:59:49.307Z] !!
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] ********************************************************************************
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] # Package would be ignored #
[2024-11-23T19:59:49.307Z] ############################
[2024-11-23T19:59:49.307Z] Python recognizes 'rest_framework.locale.sl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.307Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.307Z] package, please make sure that 'rest_framework.locale.sl.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.307Z] to the `packages` configuration field.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.307Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.307Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] If you don't want 'rest_framework.locale.sl.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.307Z] already explicitly excluding 'rest_framework.locale.sl.LC_MESSAGES' via
[2024-11-23T19:59:49.307Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.307Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.307Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z]
[2024-11-23T19:59:49.307Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.307Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.307Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.308Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z] check.warn(importable)
[2024-11-23T19:59:49.308Z] /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-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] # Package would be ignored #
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] Python recognizes 'rest_framework.locale.sv.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.308Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.308Z] package, please make sure that 'rest_framework.locale.sv.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.308Z] to the `packages` configuration field.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.308Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.308Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] If you don't want 'rest_framework.locale.sv.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.308Z] already explicitly excluding 'rest_framework.locale.sv.LC_MESSAGES' via
[2024-11-23T19:59:49.308Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.308Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.308Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.308Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.308Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.308Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z] check.warn(importable)
[2024-11-23T19:59:49.308Z] /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-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] # Package would be ignored #
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] Python recognizes 'rest_framework.locale.th.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.308Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.308Z] package, please make sure that 'rest_framework.locale.th.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.308Z] to the `packages` configuration field.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.308Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.308Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] If you don't want 'rest_framework.locale.th.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.308Z] already explicitly excluding 'rest_framework.locale.th.LC_MESSAGES' via
[2024-11-23T19:59:49.308Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.308Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.308Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.308Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.308Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.308Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z] check.warn(importable)
[2024-11-23T19:59:49.308Z] /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-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] # Package would be ignored #
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] Python recognizes 'rest_framework.locale.tr.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.308Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.308Z] package, please make sure that 'rest_framework.locale.tr.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.308Z] to the `packages` configuration field.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.308Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.308Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] If you don't want 'rest_framework.locale.tr.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.308Z] already explicitly excluding 'rest_framework.locale.tr.LC_MESSAGES' via
[2024-11-23T19:59:49.308Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.308Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.308Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.308Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.308Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.308Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z] check.warn(importable)
[2024-11-23T19:59:49.308Z] /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-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] # Package would be ignored #
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] Python recognizes 'rest_framework.locale.tr_TR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.308Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.308Z] package, please make sure that 'rest_framework.locale.tr_TR.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.308Z] to the `packages` configuration field.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.308Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.308Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] If you don't want 'rest_framework.locale.tr_TR.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.308Z] already explicitly excluding 'rest_framework.locale.tr_TR.LC_MESSAGES' via
[2024-11-23T19:59:49.308Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.308Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.308Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.308Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.308Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.308Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z] check.warn(importable)
[2024-11-23T19:59:49.308Z] /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-23T19:59:49.308Z] !!
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] ********************************************************************************
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] # Package would be ignored #
[2024-11-23T19:59:49.308Z] ############################
[2024-11-23T19:59:49.308Z] Python recognizes 'rest_framework.locale.uk.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.308Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.308Z] package, please make sure that 'rest_framework.locale.uk.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.308Z] to the `packages` configuration field.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.308Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.308Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] If you don't want 'rest_framework.locale.uk.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.308Z] already explicitly excluding 'rest_framework.locale.uk.LC_MESSAGES' via
[2024-11-23T19:59:49.308Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.308Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.308Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z]
[2024-11-23T19:59:49.308Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.309Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.309Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.309Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z] check.warn(importable)
[2024-11-23T19:59:49.309Z] /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-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] # Package would be ignored #
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] Python recognizes 'rest_framework.locale.vi.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.309Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.309Z] package, please make sure that 'rest_framework.locale.vi.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.309Z] to the `packages` configuration field.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.309Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.309Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] If you don't want 'rest_framework.locale.vi.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.309Z] already explicitly excluding 'rest_framework.locale.vi.LC_MESSAGES' via
[2024-11-23T19:59:49.309Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.309Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.309Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.309Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.309Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.309Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z] check.warn(importable)
[2024-11-23T19:59:49.309Z] /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-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] # Package would be ignored #
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] Python recognizes 'rest_framework.locale.zh_CN.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.309Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.309Z] package, please make sure that 'rest_framework.locale.zh_CN.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.309Z] to the `packages` configuration field.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.309Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.309Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] If you don't want 'rest_framework.locale.zh_CN.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.309Z] already explicitly excluding 'rest_framework.locale.zh_CN.LC_MESSAGES' via
[2024-11-23T19:59:49.309Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.309Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.309Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.309Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.309Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.309Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z] check.warn(importable)
[2024-11-23T19:59:49.309Z] /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-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] # Package would be ignored #
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] Python recognizes 'rest_framework.locale.zh_Hans.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.309Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.309Z] package, please make sure that 'rest_framework.locale.zh_Hans.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.309Z] to the `packages` configuration field.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.309Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.309Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] If you don't want 'rest_framework.locale.zh_Hans.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.309Z] already explicitly excluding 'rest_framework.locale.zh_Hans.LC_MESSAGES' via
[2024-11-23T19:59:49.309Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.309Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.309Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.309Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.309Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.309Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z] check.warn(importable)
[2024-11-23T19:59:49.309Z] /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-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] # Package would be ignored #
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] Python recognizes 'rest_framework.locale.zh_Hant.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.309Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.309Z] package, please make sure that 'rest_framework.locale.zh_Hant.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.309Z] to the `packages` configuration field.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.309Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.309Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] If you don't want 'rest_framework.locale.zh_Hant.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.309Z] already explicitly excluding 'rest_framework.locale.zh_Hant.LC_MESSAGES' via
[2024-11-23T19:59:49.309Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.309Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.309Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.309Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.309Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.309Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z] check.warn(importable)
[2024-11-23T19:59:49.309Z] /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-23T19:59:49.309Z] !!
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] ********************************************************************************
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] # Package would be ignored #
[2024-11-23T19:59:49.309Z] ############################
[2024-11-23T19:59:49.309Z] Python recognizes 'rest_framework.locale.zh_TW.LC_MESSAGES' as an importable package[^1],
[2024-11-23T19:59:49.309Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.309Z] package, please make sure that 'rest_framework.locale.zh_TW.LC_MESSAGES' is explicitly added
[2024-11-23T19:59:49.309Z] to the `packages` configuration field.
[2024-11-23T19:59:49.309Z]
[2024-11-23T19:59:49.309Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.310Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.310Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] If you don't want 'rest_framework.locale.zh_TW.LC_MESSAGES' to be distributed and are
[2024-11-23T19:59:49.310Z] already explicitly excluding 'rest_framework.locale.zh_TW.LC_MESSAGES' via
[2024-11-23T19:59:49.310Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.310Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.310Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.310Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.310Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.310Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z] check.warn(importable)
[2024-11-23T19:59:49.310Z] /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-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] # Package would be ignored #
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] Python recognizes 'rest_framework.static.rest_framework.css' as an importable package[^1],
[2024-11-23T19:59:49.310Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.310Z] package, please make sure that 'rest_framework.static.rest_framework.css' is explicitly added
[2024-11-23T19:59:49.310Z] to the `packages` configuration field.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.310Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.310Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] If you don't want 'rest_framework.static.rest_framework.css' to be distributed and are
[2024-11-23T19:59:49.310Z] already explicitly excluding 'rest_framework.static.rest_framework.css' via
[2024-11-23T19:59:49.310Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.310Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.310Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.310Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.310Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.310Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z] check.warn(importable)
[2024-11-23T19:59:49.310Z] /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-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] # Package would be ignored #
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] Python recognizes 'rest_framework.static.rest_framework.docs.css' as an importable package[^1],
[2024-11-23T19:59:49.310Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.310Z] package, please make sure that 'rest_framework.static.rest_framework.docs.css' is explicitly added
[2024-11-23T19:59:49.310Z] to the `packages` configuration field.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.310Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.310Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] If you don't want 'rest_framework.static.rest_framework.docs.css' to be distributed and are
[2024-11-23T19:59:49.310Z] already explicitly excluding 'rest_framework.static.rest_framework.docs.css' via
[2024-11-23T19:59:49.310Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.310Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.310Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.310Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.310Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.310Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z] check.warn(importable)
[2024-11-23T19:59:49.310Z] /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-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] # Package would be ignored #
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] Python recognizes 'rest_framework.static.rest_framework.docs.img' as an importable package[^1],
[2024-11-23T19:59:49.310Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.310Z] package, please make sure that 'rest_framework.static.rest_framework.docs.img' is explicitly added
[2024-11-23T19:59:49.310Z] to the `packages` configuration field.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.310Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.310Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] If you don't want 'rest_framework.static.rest_framework.docs.img' to be distributed and are
[2024-11-23T19:59:49.310Z] already explicitly excluding 'rest_framework.static.rest_framework.docs.img' via
[2024-11-23T19:59:49.310Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.310Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.310Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.310Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.310Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.310Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z] check.warn(importable)
[2024-11-23T19:59:49.310Z] /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-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] # Package would be ignored #
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] Python recognizes 'rest_framework.static.rest_framework.docs.js' as an importable package[^1],
[2024-11-23T19:59:49.310Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.310Z] package, please make sure that 'rest_framework.static.rest_framework.docs.js' is explicitly added
[2024-11-23T19:59:49.310Z] to the `packages` configuration field.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.310Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.310Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] If you don't want 'rest_framework.static.rest_framework.docs.js' to be distributed and are
[2024-11-23T19:59:49.310Z] already explicitly excluding 'rest_framework.static.rest_framework.docs.js' via
[2024-11-23T19:59:49.310Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.310Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.310Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.310Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.310Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.310Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z] check.warn(importable)
[2024-11-23T19:59:49.310Z] /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-23T19:59:49.310Z] !!
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] ********************************************************************************
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] # Package would be ignored #
[2024-11-23T19:59:49.310Z] ############################
[2024-11-23T19:59:49.310Z] Python recognizes 'rest_framework.static.rest_framework.fonts' as an importable package[^1],
[2024-11-23T19:59:49.310Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.310Z]
[2024-11-23T19:59:49.310Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.310Z] package, please make sure that 'rest_framework.static.rest_framework.fonts' is explicitly added
[2024-11-23T19:59:49.310Z] to the `packages` configuration field.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.311Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.311Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] If you don't want 'rest_framework.static.rest_framework.fonts' to be distributed and are
[2024-11-23T19:59:49.311Z] already explicitly excluding 'rest_framework.static.rest_framework.fonts' via
[2024-11-23T19:59:49.311Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.311Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.311Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.311Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.311Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.311Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z] check.warn(importable)
[2024-11-23T19:59:49.311Z] /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-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] # Package would be ignored #
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] Python recognizes 'rest_framework.static.rest_framework.img' as an importable package[^1],
[2024-11-23T19:59:49.311Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.311Z] package, please make sure that 'rest_framework.static.rest_framework.img' is explicitly added
[2024-11-23T19:59:49.311Z] to the `packages` configuration field.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.311Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.311Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] If you don't want 'rest_framework.static.rest_framework.img' to be distributed and are
[2024-11-23T19:59:49.311Z] already explicitly excluding 'rest_framework.static.rest_framework.img' via
[2024-11-23T19:59:49.311Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.311Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.311Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.311Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.311Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.311Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z] check.warn(importable)
[2024-11-23T19:59:49.311Z] /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-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] # Package would be ignored #
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] Python recognizes 'rest_framework.static.rest_framework.js' as an importable package[^1],
[2024-11-23T19:59:49.311Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.311Z] package, please make sure that 'rest_framework.static.rest_framework.js' is explicitly added
[2024-11-23T19:59:49.311Z] to the `packages` configuration field.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.311Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.311Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] If you don't want 'rest_framework.static.rest_framework.js' to be distributed and are
[2024-11-23T19:59:49.311Z] already explicitly excluding 'rest_framework.static.rest_framework.js' via
[2024-11-23T19:59:49.311Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.311Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.311Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.311Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.311Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.311Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z] check.warn(importable)
[2024-11-23T19:59:49.311Z] /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-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] # Package would be ignored #
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] Python recognizes 'rest_framework.templates.rest_framework' as an importable package[^1],
[2024-11-23T19:59:49.311Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.311Z] package, please make sure that 'rest_framework.templates.rest_framework' is explicitly added
[2024-11-23T19:59:49.311Z] to the `packages` configuration field.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.311Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.311Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] If you don't want 'rest_framework.templates.rest_framework' to be distributed and are
[2024-11-23T19:59:49.311Z] already explicitly excluding 'rest_framework.templates.rest_framework' via
[2024-11-23T19:59:49.311Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.311Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.311Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.311Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.311Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.311Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z] check.warn(importable)
[2024-11-23T19:59:49.311Z] /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-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] # Package would be ignored #
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] Python recognizes 'rest_framework.templates.rest_framework.admin' as an importable package[^1],
[2024-11-23T19:59:49.311Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.311Z] package, please make sure that 'rest_framework.templates.rest_framework.admin' is explicitly added
[2024-11-23T19:59:49.311Z] to the `packages` configuration field.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.311Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.311Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] If you don't want 'rest_framework.templates.rest_framework.admin' to be distributed and are
[2024-11-23T19:59:49.311Z] already explicitly excluding 'rest_framework.templates.rest_framework.admin' via
[2024-11-23T19:59:49.311Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.311Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.311Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.311Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.311Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.311Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z] check.warn(importable)
[2024-11-23T19:59:49.311Z] /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-23T19:59:49.311Z] !!
[2024-11-23T19:59:49.311Z]
[2024-11-23T19:59:49.311Z] ********************************************************************************
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] # Package would be ignored #
[2024-11-23T19:59:49.311Z] ############################
[2024-11-23T19:59:49.311Z] Python recognizes 'rest_framework.templates.rest_framework.docs' as an importable package[^1],
[2024-11-23T19:59:49.312Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.312Z] package, please make sure that 'rest_framework.templates.rest_framework.docs' is explicitly added
[2024-11-23T19:59:49.312Z] to the `packages` configuration field.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.312Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.312Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] If you don't want 'rest_framework.templates.rest_framework.docs' to be distributed and are
[2024-11-23T19:59:49.312Z] already explicitly excluding 'rest_framework.templates.rest_framework.docs' via
[2024-11-23T19:59:49.312Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.312Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.312Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.312Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.312Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.312Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z] check.warn(importable)
[2024-11-23T19:59:49.312Z] /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-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] # Package would be ignored #
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] Python recognizes 'rest_framework.templates.rest_framework.docs.auth' as an importable package[^1],
[2024-11-23T19:59:49.312Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.312Z] package, please make sure that 'rest_framework.templates.rest_framework.docs.auth' is explicitly added
[2024-11-23T19:59:49.312Z] to the `packages` configuration field.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.312Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.312Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] If you don't want 'rest_framework.templates.rest_framework.docs.auth' to be distributed and are
[2024-11-23T19:59:49.312Z] already explicitly excluding 'rest_framework.templates.rest_framework.docs.auth' via
[2024-11-23T19:59:49.312Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.312Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.312Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.312Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.312Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.312Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z] check.warn(importable)
[2024-11-23T19:59:49.312Z] /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-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] # Package would be ignored #
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] Python recognizes 'rest_framework.templates.rest_framework.docs.langs' as an importable package[^1],
[2024-11-23T19:59:49.312Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.312Z] package, please make sure that 'rest_framework.templates.rest_framework.docs.langs' is explicitly added
[2024-11-23T19:59:49.312Z] to the `packages` configuration field.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.312Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.312Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] If you don't want 'rest_framework.templates.rest_framework.docs.langs' to be distributed and are
[2024-11-23T19:59:49.312Z] already explicitly excluding 'rest_framework.templates.rest_framework.docs.langs' via
[2024-11-23T19:59:49.312Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.312Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.312Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.312Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.312Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.312Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z] check.warn(importable)
[2024-11-23T19:59:49.312Z] /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-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] # Package would be ignored #
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] Python recognizes 'rest_framework.templates.rest_framework.filters' as an importable package[^1],
[2024-11-23T19:59:49.312Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.312Z] package, please make sure that 'rest_framework.templates.rest_framework.filters' is explicitly added
[2024-11-23T19:59:49.312Z] to the `packages` configuration field.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.312Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.312Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] If you don't want 'rest_framework.templates.rest_framework.filters' to be distributed and are
[2024-11-23T19:59:49.312Z] already explicitly excluding 'rest_framework.templates.rest_framework.filters' via
[2024-11-23T19:59:49.312Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.312Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.312Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.312Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.312Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.312Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z] check.warn(importable)
[2024-11-23T19:59:49.312Z] /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-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] # Package would be ignored #
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.312Z] Python recognizes 'rest_framework.templates.rest_framework.horizontal' as an importable package[^1],
[2024-11-23T19:59:49.312Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.312Z] package, please make sure that 'rest_framework.templates.rest_framework.horizontal' is explicitly added
[2024-11-23T19:59:49.312Z] to the `packages` configuration field.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.312Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.312Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] If you don't want 'rest_framework.templates.rest_framework.horizontal' to be distributed and are
[2024-11-23T19:59:49.312Z] already explicitly excluding 'rest_framework.templates.rest_framework.horizontal' via
[2024-11-23T19:59:49.312Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.312Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.312Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.312Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.312Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.312Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z] check.warn(importable)
[2024-11-23T19:59:49.312Z] /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-23T19:59:49.312Z] !!
[2024-11-23T19:59:49.312Z]
[2024-11-23T19:59:49.312Z] ********************************************************************************
[2024-11-23T19:59:49.312Z] ############################
[2024-11-23T19:59:49.313Z] # Package would be ignored #
[2024-11-23T19:59:49.313Z] ############################
[2024-11-23T19:59:49.313Z] Python recognizes 'rest_framework.templates.rest_framework.inline' as an importable package[^1],
[2024-11-23T19:59:49.313Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.313Z] package, please make sure that 'rest_framework.templates.rest_framework.inline' is explicitly added
[2024-11-23T19:59:49.313Z] to the `packages` configuration field.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.313Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.313Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] If you don't want 'rest_framework.templates.rest_framework.inline' to be distributed and are
[2024-11-23T19:59:49.313Z] already explicitly excluding 'rest_framework.templates.rest_framework.inline' via
[2024-11-23T19:59:49.313Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.313Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.313Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.313Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.313Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.313Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.313Z] ********************************************************************************
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] !!
[2024-11-23T19:59:49.313Z] check.warn(importable)
[2024-11-23T19:59:49.313Z] /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-23T19:59:49.313Z] !!
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] ********************************************************************************
[2024-11-23T19:59:49.313Z] ############################
[2024-11-23T19:59:49.313Z] # Package would be ignored #
[2024-11-23T19:59:49.313Z] ############################
[2024-11-23T19:59:49.313Z] Python recognizes 'rest_framework.templates.rest_framework.pagination' as an importable package[^1],
[2024-11-23T19:59:49.313Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.313Z] package, please make sure that 'rest_framework.templates.rest_framework.pagination' is explicitly added
[2024-11-23T19:59:49.313Z] to the `packages` configuration field.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.313Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.313Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] If you don't want 'rest_framework.templates.rest_framework.pagination' to be distributed and are
[2024-11-23T19:59:49.313Z] already explicitly excluding 'rest_framework.templates.rest_framework.pagination' via
[2024-11-23T19:59:49.313Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.313Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.313Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.313Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.313Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.313Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.313Z] ********************************************************************************
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] !!
[2024-11-23T19:59:49.313Z] check.warn(importable)
[2024-11-23T19:59:49.313Z] /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-23T19:59:49.313Z] !!
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] ********************************************************************************
[2024-11-23T19:59:49.313Z] ############################
[2024-11-23T19:59:49.313Z] # Package would be ignored #
[2024-11-23T19:59:49.313Z] ############################
[2024-11-23T19:59:49.313Z] Python recognizes 'rest_framework.templates.rest_framework.vertical' as an importable package[^1],
[2024-11-23T19:59:49.313Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T19:59:49.313Z] package, please make sure that 'rest_framework.templates.rest_framework.vertical' is explicitly added
[2024-11-23T19:59:49.313Z] to the `packages` configuration field.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T19:59:49.313Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T19:59:49.313Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] If you don't want 'rest_framework.templates.rest_framework.vertical' to be distributed and are
[2024-11-23T19:59:49.313Z] already explicitly excluding 'rest_framework.templates.rest_framework.vertical' via
[2024-11-23T19:59:49.313Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T19:59:49.313Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T19:59:49.313Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T19:59:49.313Z] even if it does not contain any `.py` files.
[2024-11-23T19:59:49.313Z] On the other hand, currently there is no concept of package data
[2024-11-23T19:59:49.313Z] directory, all directories are treated like packages.
[2024-11-23T19:59:49.313Z] ********************************************************************************
[2024-11-23T19:59:49.313Z]
[2024-11-23T19:59:49.313Z] !!
[2024-11-23T19:59:49.313Z] check.warn(importable)
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/ach/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/ar/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/az/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/az/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/az/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/be/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/be/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/be/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/bg/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/ca/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/ca_ES/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/cs/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/da/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/da/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/da/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/de/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/de/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/de/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/el/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/el/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/el/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/el_GR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/en/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/en/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/en_AU/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/en_CA/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/en_US/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/es/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/es/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/es/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/et/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/et/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/et/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/fa/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/fa_IR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/fi/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/fr/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/fr_CA/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/gl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T19:59:49.313Z] copying rest_framework/locale/gl_ES/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T19:59:49.313Z] creating build/lib/rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/he_IL/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/hu/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/hy/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/id/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/id/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/id/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/it/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/it/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/it/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/ja/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/ko_KR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/lt/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/lv/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/mk/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/nb/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/ne_NP/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/nl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/nn/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/no/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/no/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/no/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/pl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/pt/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/pt_BR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/pt_PT/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/ro/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/ru/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/ru_RU/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/sk/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/sl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/sv/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/th/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/th/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/th/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/tr/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/tr_TR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/uk/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/vi/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/zh_CN/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/zh_Hans/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/zh_Hant/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T19:59:49.314Z] copying rest_framework/locale/zh_TW/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/bootstrap-theme.min.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/bootstrap-theme.min.css.map -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/bootstrap-tweaks.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/bootstrap.min.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/bootstrap.min.css.map -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/default.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/font-awesome-4.0.3.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/css/prettify.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/css/base.css -> build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/css/highlight.css -> build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/css/jquery.json-view.min.css -> build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/docs/img
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/img/favicon.ico -> build/lib/rest_framework/static/rest_framework/docs/img
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/img/grid.png -> build/lib/rest_framework/static/rest_framework/docs/img
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/js/api.js -> build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/js/highlight.pack.js -> build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/docs/js/jquery.json-view.min.js -> build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.eot -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.svg -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.ttf -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.woff -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.eot -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.svg -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.ttf -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff2 -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/img
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/img/glyphicons-halflings-white.png -> build/lib/rest_framework/static/rest_framework/img
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/img/glyphicons-halflings.png -> build/lib/rest_framework/static/rest_framework/img
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/img/grid.png -> build/lib/rest_framework/static/rest_framework/img
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/ajax-form.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/bootstrap.min.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/coreapi-0.1.1.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/csrf.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/default.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/jquery-3.7.1.min.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/load-ajax-form.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] copying rest_framework/static/rest_framework/js/prettify-min.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/admin.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/api.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/base.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/login.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/login_base.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/raw_data_form.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/schema.js -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/admin/detail.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/admin/dict_value.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/admin/list.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/admin/list_value.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/admin/simple_list_value.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/document.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/error.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/index.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/interact.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/link.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/sidebar.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.314Z] creating build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T19:59:49.314Z] copying rest_framework/templates/rest_framework/docs/auth/basic.html -> build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/auth/session.html -> build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/auth/token.html -> build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T19:59:49.315Z] creating build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/langs/javascript-intro.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/langs/javascript.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/langs/python-intro.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/langs/python.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/langs/shell-intro.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/docs/langs/shell.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.315Z] creating build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/filters/base.html -> build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/filters/ordering.html -> build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/filters/search.html -> build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T19:59:49.315Z] creating build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/checkbox.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/checkbox_multiple.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/dict_field.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/fieldset.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/form.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/input.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/list_field.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/list_fieldset.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/radio.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/select.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/select_multiple.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/horizontal/textarea.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.315Z] creating build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/checkbox.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/checkbox_multiple.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/dict_field.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/fieldset.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/form.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/input.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/list_field.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/list_fieldset.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/radio.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/select.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/select_multiple.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/inline/textarea.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.315Z] creating build/lib/rest_framework/templates/rest_framework/pagination
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/pagination/numbers.html -> build/lib/rest_framework/templates/rest_framework/pagination
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/pagination/previous_and_next.html -> build/lib/rest_framework/templates/rest_framework/pagination
[2024-11-23T19:59:49.315Z] creating build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/checkbox.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/checkbox_multiple.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/dict_field.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/fieldset.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/form.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/input.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/list_field.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/list_fieldset.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/radio.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/select.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/select_multiple.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] copying rest_framework/templates/rest_framework/vertical/textarea.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.315Z] installing to build/bdist.linux-x86_64/wheel
[2024-11-23T19:59:49.315Z] running install
[2024-11-23T19:59:49.315Z] running install_lib
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/encoders.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/urls.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/formatting.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/field_mapping.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/breadcrumbs.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/json.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/timezone.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/mediatypes.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/serializer_helpers.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/model_meta.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/html.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/humanize_datetime.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/utils/representation.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/models.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/apps.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/views.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/serializers.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken/management
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/management/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/management
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken/management/commands
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/management/commands/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/management/commands
[2024-11-23T19:59:49.315Z] 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-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken/migrations
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/migrations/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/migrations/0001_initial.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/migrations/0002_auto_20160226_1747.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/migrations/0003_tokenproxy.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authtoken/admin.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/permissions.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/routers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/urls.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/apps.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/negotiation.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/parsers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/relations.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/metadata.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/views.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/versioning.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/serializers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/authentication.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/management
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/management/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/management
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/management/commands
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/management/commands/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/management/commands
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/management/commands/generateschema.py -> build/bdist.linux-x86_64/wheel/./rest_framework/management/commands
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/status.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/filters.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/fields.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/test.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/documentation.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] copying build/lib/rest_framework/exceptions.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T19:59:49.315Z] 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-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt
[2024-11-23T19:59:49.315Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/uk
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_US
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr_TR
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/cs
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pl
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nl
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_CA
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru_RU
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fi
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/bg
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_BR
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nb
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sv
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/id
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/id/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/de
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/de/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/no
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/no/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/az
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/az/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_TW
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/da
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/da/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el_GR
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lt
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/it
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/it/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl_ES
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/he_IL
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/th
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/th/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa_IR
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lv
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hy
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/et
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/et/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_AU
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ar
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/vi
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca_ES
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ach
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nn
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ro
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_PT
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/mk
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el/LC_MESSAGES
[2024-11-23T19:59:49.316Z] 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-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hant
[2024-11-23T19:59:49.316Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_CN
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sk
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/be
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/be/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ja
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr_CA
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sl
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ne_NP
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ko_KR
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/es
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/es/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hans
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hu
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] copying build/lib/rest_framework/compat.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/renderers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/throttling.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templatetags
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/templatetags/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/templatetags
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/templatetags/rest_framework.py -> build/bdist.linux-x86_64/wheel/./rest_framework/templatetags
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/pagination.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/settings.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/views.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/generators.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/coreapi.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/utils.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/inspectors.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/schemas/openapi.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/response.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/validators.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/decorators.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/admin
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] copying build/lib/rest_framework/templates/rest_framework/api.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/pagination
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] copying build/lib/rest_framework/templates/rest_framework/base.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T19:59:49.317Z] copying build/lib/rest_framework/templates/rest_framework/login_base.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/horizontal
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/docs
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] copying build/lib/rest_framework/templates/rest_framework/admin.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T19:59:49.317Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/vertical
[2024-11-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.317Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] copying build/lib/rest_framework/templates/rest_framework/schema.js -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T19:59:49.318Z] copying build/lib/rest_framework/templates/rest_framework/login.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/inline
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/filters
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] copying build/lib/rest_framework/viewsets.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] copying build/lib/rest_framework/request.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static
[2024-11-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework
[2024-11-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/css
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/img
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs
[2024-11-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs/css
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs/img
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs/js
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/fonts
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/js
[2024-11-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] 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-23T19:59:49.318Z] copying build/lib/rest_framework/mixins.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] copying build/lib/rest_framework/checks.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] copying build/lib/rest_framework/urlpatterns.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] copying build/lib/rest_framework/reverse.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] copying build/lib/rest_framework/generics.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T19:59:49.318Z] running install_egg_info
[2024-11-23T19:59:49.318Z] Copying djangorestframework.egg-info to build/bdist.linux-x86_64/wheel/./djangorestframework-3.15.2-py3.13.egg-info
[2024-11-23T19:59:49.318Z] running install_scripts
[2024-11-23T19:59:49.318Z] creating build/bdist.linux-x86_64/wheel/djangorestframework-3.15.2.dist-info/WHEEL
[2024-11-23T19:59:49.318Z] creating '/build/python-django-rest-framework/src/django-rest-framework-3.15.2/dist/.tmp-5gm39gd8/djangorestframework-3.15.2-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
[2024-11-23T19:59:49.318Z] adding 'rest_framework/__init__.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/apps.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authentication.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/checks.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/compat.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/decorators.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/documentation.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/exceptions.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/fields.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/filters.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/generics.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/metadata.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/mixins.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/negotiation.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/pagination.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/parsers.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/permissions.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/relations.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/renderers.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/request.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/response.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/reverse.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/routers.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/serializers.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/settings.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/status.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/test.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/throttling.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/urlpatterns.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/urls.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/validators.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/versioning.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/views.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/viewsets.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/__init__.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/admin.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/apps.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/models.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/serializers.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/views.py'
[2024-11-23T19:59:49.318Z] adding 'rest_framework/authtoken/management/__init__.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/management/commands/__init__.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/management/commands/drf_create_token.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/migrations/0001_initial.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/migrations/0002_auto_20160226_1747.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/migrations/0003_tokenproxy.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py'
[2024-11-23T19:59:49.319Z] adding 'rest_framework/authtoken/migrations/__init__.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ach/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ar/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/az/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/be/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/bg/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ca/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ca_ES/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/cs/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/da/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/de/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/el/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/el_GR/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/en/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/en_AU/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/en_CA/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/en_US/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/es/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/et/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/fa/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/fa_IR/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/fi/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/fr/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/fr_CA/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/gl/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/gl_ES/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/he_IL/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/hu/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/hy/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/id/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/it/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ja/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ko_KR/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/lt/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/lv/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/mk/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/nb/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ne_NP/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/nl/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/nn/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/no/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/pl/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/pt/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/pt_BR/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/pt_PT/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ro/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ru/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/ru_RU/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/sk/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/sl/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/sv/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/th/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/tr/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/tr_TR/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/uk/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/vi/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/zh_CN/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/zh_Hans/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/zh_Hant/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/locale/zh_TW/LC_MESSAGES/django.mo'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/management/__init__.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/management/commands/__init__.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/management/commands/generateschema.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/__init__.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/coreapi.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/generators.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/inspectors.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/openapi.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/utils.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/schemas/views.py'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/bootstrap-theme.min.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/bootstrap-theme.min.css.map'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/bootstrap-tweaks.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/bootstrap.min.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/bootstrap.min.css.map'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/default.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/font-awesome-4.0.3.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/css/prettify.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/css/base.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/css/highlight.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/css/jquery.json-view.min.css'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/img/favicon.ico'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/img/grid.png'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/js/api.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/js/highlight.pack.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/docs/js/jquery.json-view.min.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.eot'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.svg'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.ttf'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.woff'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.eot'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.svg'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.ttf'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff2'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/img/glyphicons-halflings-white.png'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/img/glyphicons-halflings.png'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/img/grid.png'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/ajax-form.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/bootstrap.min.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/coreapi-0.1.1.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/csrf.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/default.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/jquery-3.7.1.min.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/load-ajax-form.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/static/rest_framework/js/prettify-min.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/admin.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/api.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/base.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/login.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/login_base.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/raw_data_form.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/schema.js'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/admin/detail.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/admin/dict_value.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/admin/list.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/admin/list_value.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/admin/simple_list_value.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/document.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/error.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/index.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/interact.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/link.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/sidebar.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/auth/basic.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/auth/session.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/auth/token.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/langs/javascript-intro.html'
[2024-11-23T19:59:49.569Z] adding 'rest_framework/templates/rest_framework/docs/langs/javascript.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/docs/langs/python-intro.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/docs/langs/python.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/docs/langs/shell-intro.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/docs/langs/shell.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/filters/base.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/filters/ordering.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/filters/search.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/checkbox.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/checkbox_multiple.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/dict_field.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/fieldset.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/form.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/input.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/list_field.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/list_fieldset.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/radio.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/select.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/select_multiple.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/horizontal/textarea.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/checkbox.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/checkbox_multiple.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/dict_field.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/fieldset.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/form.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/input.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/list_field.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/list_fieldset.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/radio.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/select.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/select_multiple.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/inline/textarea.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/pagination/numbers.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/pagination/previous_and_next.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/checkbox.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/checkbox_multiple.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/dict_field.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/fieldset.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/form.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/input.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/list_field.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/list_fieldset.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/radio.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/select.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/select_multiple.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templates/rest_framework/vertical/textarea.html'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templatetags/__init__.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/templatetags/rest_framework.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/__init__.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/breadcrumbs.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/encoders.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/field_mapping.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/formatting.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/html.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/humanize_datetime.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/json.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/mediatypes.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/model_meta.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/representation.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/serializer_helpers.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/timezone.py'
[2024-11-23T19:59:49.570Z] adding 'rest_framework/utils/urls.py'
[2024-11-23T19:59:49.570Z] adding 'djangorestframework-3.15.2.dist-info/LICENSE.md'
[2024-11-23T19:59:49.570Z] adding 'djangorestframework-3.15.2.dist-info/METADATA'
[2024-11-23T19:59:49.570Z] adding 'djangorestframework-3.15.2.dist-info/WHEEL'
[2024-11-23T19:59:49.570Z] adding 'djangorestframework-3.15.2.dist-info/top_level.txt'
[2024-11-23T19:59:49.570Z] adding 'djangorestframework-3.15.2.dist-info/RECORD'
[2024-11-23T19:59:49.570Z] removing build/bdist.linux-x86_64/wheel
[2024-11-23T19:59:49.570Z] Successfully built djangorestframework-3.15.2-py3-none-any.whl
[2024-11-23T19:59:49.570Z] ==> Starting check()...
[2024-11-23T19:59:50.120Z] ============================= test session starts ==============================
[2024-11-23T19:59:50.120Z] platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-23T19:59:50.120Z] cachedir: .pytest_cache
[2024-11-23T19:59:50.120Z] rootdir: /build/python-django-rest-framework/src/django-rest-framework-3.15.2
[2024-11-23T19:59:50.120Z] configfile: setup.cfg
[2024-11-23T19:59:50.120Z] testpaths: tests
[2024-11-23T19:59:53.348Z] collecting ... collected 1544 items / 1 deselected / 1543 selected
[2024-11-23T19:59:53.348Z]
[2024-11-23T19:59:53.348Z] tests/authentication/test_authentication.py::BasicAuthTests::test_decoding_of_utf8_credentials FAILED [ 0%]
[2024-11-23T19:59:53.348Z] tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_are_missing FAILED [ 0%]
[2024-11-23T19:59:53.598Z] tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_contain_spaces FAILED [ 0%]
[2024-11-23T19:59:53.848Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_failing_basic_auth FAILED [ 0%]
[2024-11-23T19:59:54.098Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_passing_basic_auth FAILED [ 0%]
[2024-11-23T19:59:54.098Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_failing_basic_auth FAILED [ 0%]
[2024-11-23T19:59:54.349Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_passing_basic_auth FAILED [ 0%]
[2024-11-23T19:59:54.599Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_without_password_failing_basic_auth FAILED [ 0%]
[2024-11-23T19:59:54.849Z] tests/authentication/test_authentication.py::BasicAuthTests::test_regression_handle_bad_base64_basic_auth_header FAILED [ 0%]
[2024-11-23T19:59:55.099Z] tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get FAILED [ 0%]
[2024-11-23T19:59:55.350Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing FAILED [ 0%]
[2024-11-23T19:59:55.600Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing_csrf FAILED [ 0%]
[2024-11-23T19:59:55.850Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing FAILED [ 0%]
[2024-11-23T19:59:56.101Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing_csrf FAILED [ 0%]
[2024-11-23T19:59:56.351Z] tests/authentication/test_authentication.py::SessionAuthTests::test_put_form_session_auth_passing FAILED [ 0%]
[2024-11-23T19:59:56.351Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 1%]
[2024-11-23T19:59:56.601Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 1%]
[2024-11-23T19:59:56.851Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 1%]
[2024-11-23T19:59:57.102Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 1%]
[2024-11-23T19:59:57.352Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 1%]
[2024-11-23T19:59:57.602Z] tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_accessible_as_classmethod FAILED [ 1%]
[2024-11-23T19:59:57.852Z] tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_returns_string FAILED [ 1%]
[2024-11-23T19:59:58.103Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_failing_token_auth FAILED [ 1%]
[2024-11-23T19:59:58.353Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_passing_token_auth FAILED [ 1%]
[2024-11-23T19:59:58.603Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_failing_token_auth FAILED [ 1%]
[2024-11-23T19:59:58.853Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_makes_one_db_query FAILED [ 1%]
[2024-11-23T19:59:58.853Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_passing_token_auth FAILED [ 1%]
[2024-11-23T19:59:59.404Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_has_auto_assigned_key_if_none_provided FAILED [ 1%]
[2024-11-23T19:59:59.404Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_form FAILED [ 1%]
[2024-11-23T19:59:59.654Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json FAILED [ 1%]
[2024-11-23T19:59:59.904Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_bad_creds FAILED [ 2%]
[2024-11-23T20:00:00.155Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_missing_fields FAILED [ 2%]
[2024-11-23T20:00:00.405Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 2%]
[2024-11-23T20:00:00.655Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 2%]
[2024-11-23T20:00:00.906Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 2%]
[2024-11-23T20:00:00.906Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 2%]
[2024-11-23T20:00:01.156Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 2%]
[2024-11-23T20:00:01.406Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_failing_token_auth FAILED [ 2%]
[2024-11-23T20:00:01.657Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_passing_token_auth FAILED [ 2%]
[2024-11-23T20:00:01.907Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_failing_token_auth FAILED [ 2%]
[2024-11-23T20:00:02.157Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_makes_one_db_query FAILED [ 2%]
[2024-11-23T20:00:02.408Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_passing_token_auth FAILED [ 2%]
[2024-11-23T20:00:02.658Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 2%]
[2024-11-23T20:00:02.908Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 2%]
[2024-11-23T20:00:02.908Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 2%]
[2024-11-23T20:00:03.159Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 2%]
[2024-11-23T20:00:03.709Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 3%]
[2024-11-23T20:00:03.709Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_failing_token_auth FAILED [ 3%]
[2024-11-23T20:00:03.960Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_passing_token_auth FAILED [ 3%]
[2024-11-23T20:00:04.210Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_failing_token_auth FAILED [ 3%]
[2024-11-23T20:00:04.460Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_makes_one_db_query FAILED [ 3%]
[2024-11-23T20:00:04.711Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_passing_token_auth FAILED [ 3%]
[2024-11-23T20:00:04.711Z] tests/authentication/test_authentication.py::IncorrectCredentialsTests::test_incorrect_credentials PASSED [ 3%]
[2024-11-23T20:00:04.711Z] tests/authentication/test_authentication.py::FailingAuthAccessedInRenderer::test_failing_auth_accessed_in_renderer PASSED [ 3%]
[2024-11-23T20:00:04.711Z] tests/authentication/test_authentication.py::NoAuthenticationClassesTests::test_permission_message_with_no_authentication_classes PASSED [ 3%]
[2024-11-23T20:00:04.711Z] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_base_authentication_abstract_method PASSED [ 3%]
[2024-11-23T20:00:04.711Z] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_active PASSED [ 3%]
[2024-11-23T20:00:04.961Z] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_found FAILED [ 3%]
[2024-11-23T20:00:04.961Z] tests/authentication/test_authentication.py::RemoteUserAuthenticationUnitTests::test_remote_user_works FAILED [ 3%]
[2024-11-23T20:00:05.211Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_raises_typeerror_when_anonymous_user_in_queryset_filter FAILED [ 3%]
[2024-11-23T20:00:05.211Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_raises_typeerror_when_anonymous_user_in_queryset_filter ERROR [ 3%]
[2024-11-23T20:00:05.462Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user FAILED [ 3%]
[2024-11-23T20:00:05.462Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user ERROR [ 3%]
[2024-11-23T20:00:05.712Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_dropdown_contains_logout_form FAILED [ 4%]
[2024-11-23T20:00:05.962Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_login_shown_when_logged_out FAILED [ 4%]
[2024-11-23T20:00:06.213Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_logout_shown_when_logged_in FAILED [ 4%]
[2024-11-23T20:00:06.463Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_name_shown_when_logged_in FAILED [ 4%]
[2024-11-23T20:00:06.713Z] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_in FAILED [ 4%]
[2024-11-23T20:00:06.713Z] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_out FAILED [ 4%]
[2024-11-23T20:00:06.964Z] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_name_shown_when_logged_in FAILED [ 4%]
[2024-11-23T20:00:06.964Z] tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login FAILED [ 4%]
[2024-11-23T20:00:07.214Z] tests/browsable_api/test_form_rendering.py::TestPostingListData::test_browsable_api PASSED [ 4%]
[2024-11-23T20:00:07.214Z] tests/browsable_api/test_form_rendering.py::TestPostingListData::test_json_response PASSED [ 4%]
[2024-11-23T20:00:07.464Z] tests/browsable_api/test_form_rendering.py::TestManyPostView::test_post_many_post_view FAILED [ 4%]
[2024-11-23T20:00:07.464Z] tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_fk FAILED [ 4%]
[2024-11-23T20:00:07.715Z] tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_relation FAILED [ 4%]
[2024-11-23T20:00:07.715Z] tests/importable/test_installed.py::test_installed PASSED [ 4%]
[2024-11-23T20:00:07.715Z] tests/importable/test_installed.py::test_compat PASSED [ 4%]
[2024-11-23T20:00:07.715Z] tests/importable/test_installed.py::test_serializer_fields_initialization PASSED [ 4%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestRouterGeneratedSchema::test_anonymous_request SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestRouterGeneratedSchema::test_authenticated_request SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGenerator::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorDjango2::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorNotAtRoot::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithMethodLimitedViewSets::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithRestrictedViewSets::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithForeignKey::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithManyToMany::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorActionKeysViewSets::test_action_not_coerced_for_get_and_head SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::Test4605Regression::test_4605_regression SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_apiview_schema_descriptor PASSED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_field_to_schema SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_get_link_requires_instance PASSED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_get_manual_fields SKIPPED [ 5%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_set_custom_inspector_class_on_view PASSED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_set_custom_inspector_class_via_settings PASSED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_update_fields SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_view_with_manual_schema SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_viewset_action_with_null_schema SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_viewset_action_with_schema SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::test_docstring_is_not_stripped_by_get_description PASSED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_endpoint_enumerator_excludes_correctly SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_schema_generator_excludes_correctly SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_should_include_endpoint_excludes_correctly SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_from_router SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_manually_routing_generic_view SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_manually_routing_nested_routes SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_url_under_same_key_not_replaced SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_url_under_same_key_not_replaced_another SKIPPED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::test_is_list_view_recognises_retrieve_view_subclasses PASSED [ 6%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::test_head_and_options_methods_are_excluded PASSED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::test_schema_handles_exception SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_coreapi.py::test_coreapi_deprecation SKIPPED (coreapi
[2024-11-23T20:00:07.715Z] is not installed) [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_get_schema_view.py::GetSchemaViewTests::test_coreapi SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_get_schema_view.py::GetSchemaViewTests::test_openapi PASSED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_accepts_custom_schema_generator SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_command_detects_schema_generation_mode SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_coreapi_renders_default_schema_with_custom_title_url_and_description SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_coreapi_renders_openapi_json_schema SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_corejson_schema SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_default_schema_with_custom_title_url_and_description SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_openapi_json_schema SKIPPED [ 7%]
[2024-11-23T20:00:07.715Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_writes_schema_to_file_on_parameter SKIPPED [ 7%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestBasics::test_filters PASSED [ 7%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestBasics::test_pagination PASSED [ 7%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestFieldMapping::test_boolean_default_field PASSED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestFieldMapping::test_custom_field_name PASSED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestFieldMapping::test_lazy_string_field PASSED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestFieldMapping::test_list_field_mapping PASSED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestFieldMapping::test_nullable_fields PASSED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestFieldMapping::test_primary_key_related_field PASSED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_auto_generated_apiview_tags SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_delete_response_body_generation SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_different_request_response_objects SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_duplicate_operation_id SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_empty_required SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_empty_required_with_patch_method SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_invalid_serializer_class_name SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_list_response_body_generation SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_openapi_yaml_rendering_without_aliases SKIPPED [ 8%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_openapi_yaml_safestring_render SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_custom_name SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_custom_operation_id_base SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_generation SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_override_base SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_override_get SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_plural SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_viewset SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_overridden_get_tags_method SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_overridden_tags SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_paginated_list_response_body_generation SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_parser_mapping SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_path_with_id_parameter SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_path_without_parameters SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_renderer_mapping SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_repeat_operation_ids SKIPPED [ 9%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_request_body SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_generation SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_nested_serializer SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_partial_serializer SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_retrieve_response_body_generation SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_callable_default SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_datefield SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_filefield SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_hstorefield SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_validators SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_authtoken_serializer SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_component_name SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_component_should_not_be_generated_for_delete_method SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_duplicate_component_name SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_mount_url_prefixed_to_paths SKIPPED [ 10%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_override_settings SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_paths_construction SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_prefixed_paths_construction SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_construction SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_information SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_information_empty SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_timedelta_to_yaml_with_validator SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_to_json SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_to_yaml SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_with_no_paths SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/schemas/test_openapi.py::TestGenerator::test_serializer_model SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_api_client SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_body_params SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_download_response SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_form_params SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding SKIPPED [ 11%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_in_body SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_multiple_values SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_no_file SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_string_file_content SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_path_params SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_query_params SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_query_params_with_multiple_values SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_raw_upload SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_raw_upload_explicit_content_type SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_raw_upload_string_file_content SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_session_headers SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_text_response SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding_in_body SKIPPED [ 12%]
[2024-11-23T20:00:07.966Z] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding_multiple_values SKIPPED [ 12%]
[2024-11-23T20:00:08.217Z] tests/test_atomic_requests.py::DBTransactionTests::test_no_exception_commit_transaction FAILED [ 13%]
[2024-11-23T20:00:08.217Z] tests/test_atomic_requests.py::DBTransactionErrorTests::test_generic_exception_delegate_transaction_management FAILED [ 13%]
[2024-11-23T20:00:08.467Z] tests/test_atomic_requests.py::DBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED [ 13%]
[2024-11-23T20:00:08.718Z] tests/test_atomic_requests.py::MultiDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED [ 13%]
[2024-11-23T20:00:08.718Z] tests/test_atomic_requests.py::NonAtomicDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction_non_atomic_view FAILED [ 13%]
[2024-11-23T20:00:08.968Z] tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps FAILED [ 13%]
[2024-11-23T20:00:09.218Z] tests/test_authtoken.py::AuthTokenTests::test_model_admin_displayed_fields FAILED [ 13%]
[2024-11-23T20:00:09.468Z] tests/test_authtoken.py::AuthTokenTests::test_token_string_representation FAILED [ 13%]
[2024-11-23T20:00:09.468Z] tests/test_authtoken.py::AuthTokenTests::test_validate_raise_error_if_no_credentials_provided FAILED [ 13%]
[2024-11-23T20:00:09.719Z] tests/test_authtoken.py::AuthTokenTests::test_whitespace_in_password FAILED [ 13%]
[2024-11-23T20:00:09.969Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token FAILED [ 13%]
[2024-11-23T20:00:10.219Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token_invalid_user FAILED [ 13%]
[2024-11-23T20:00:10.469Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_do_not_reset_user_token FAILED [ 13%]
[2024-11-23T20:00:10.720Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_output FAILED [ 13%]
[2024-11-23T20:00:10.970Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_raising_error_for_invalid_user FAILED [ 13%]
[2024-11-23T20:00:10.970Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_reset_user_token FAILED [ 13%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestSimpleBoundField::test_empty_bound_field PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestSimpleBoundField::test_populated_bound_field PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestSimpleBoundField::test_error_bound_field PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestSimpleBoundField::test_delete_field PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestSimpleBoundField::test_as_form_fields PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestSimpleBoundField::test_rendering_boolean_field PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestNestedBoundField::test_nested_empty_bound_field PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestNestedBoundField::test_as_form_fields PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestNestedBoundField::test_rendering_nested_fields_with_none_value PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestNestedBoundField::test_rendering_nested_fields_with_not_mappable_value PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_bound_fields.py::TestJSONBoundField::test_as_form_fields PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_api_view_incorrect PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_api_view_incorrect_arguments PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_authentication_classes PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_calling_method PASSED [ 14%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_calling_patch_method PASSED [ 15%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_calling_put_method PASSED [ 15%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_parser_classes PASSED [ 15%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_permission_classes PASSED [ 15%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_renderer_classes PASSED [ 15%]
[2024-11-23T20:00:10.970Z] tests/test_decorators.py::DecoratorTestCase::test_schema PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::DecoratorTestCase::test_throttle_classes PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_defaults PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_detail_required PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_already_mapped PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_http_method PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_http_methods PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_overwrite PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_decorators.py::ActionDecoratorTestCase::test_view_name_kwargs PASSED [ 15%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_markdown SKIPPED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_allows_empty_description PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_can_be_empty PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_can_be_promise PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_uses_description_attribute PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_uses_docstring PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_preferences_name_over_suffix PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_class_name PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_name_attribute PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_suffix_attribute PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_description.py::test_dedent_tabs PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_coreapi_raises_error SKIPPED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_date PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_datetime PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_decimal PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_empty_returnlist PASSED [ 16%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_object_with_tolist PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_time PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_time_tz PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_timedelta PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_encoders.py::JSONEncoderTests::test_encode_uuid PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ExceptionTestCase::test_get_error_details PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ExceptionTestCase::test_get_full_details_with_throttling PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ErrorDetailTests::test_eq PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ErrorDetailTests::test_hash PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ErrorDetailTests::test_ne PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ErrorDetailTests::test_repr PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::ErrorDetailTests::test_str PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::TranslationTests::test_message PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::test_server_error PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_exceptions.py::test_bad_request PASSED [ 17%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_method PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_function PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[True] PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[None] PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[str] PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[bytes] PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[123] PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[1.23] PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_4602_regression PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_builtin_function PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestIsSimpleCallable::test_type_annotation PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_required PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_not_required PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_disallow_null PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_allow_null PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_disallow_blank PASSED [ 18%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_allow_blank PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestEmpty::test_default PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestSource::test_source PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestSource::test_redundant_source PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestSource::test_callable_source PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestSource::test_callable_source_raises PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestSource::test_builtin_callable_source_raises PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestReadOnly::test_writable_fields PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestReadOnly::test_validate_read_only PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestReadOnly::test_serialize_read_only PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestWriteOnly::test_validate_write_only PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestWriteOnly::test_serialize_write_only PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestInitial::test_initial PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestInitialWithCallable::test_initial_should_accept_callable PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestLabel::test_label PASSED [ 19%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestInvalidErrorKey::test_invalid_error_key PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_not_required PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_allow_null PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_allow_null_with_default PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_with_default PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_without_default PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_without_default_not_required PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_integerfield PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_uuidfield_with_default PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_uuidfield_with_optional PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_allow_null PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_datefield_allow_null PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_allow_null_allow_blank PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_required_false PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input PASSED [ 20%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_only_one_input PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_no_values_uses_default PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_supports_indexed_keys PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_no_values_no_default_and_not_required PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_posts_key_but_no_values PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_provided PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_not_provided_on_update PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_callable_sets_context PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::Test5087Regression::test_parent_binding PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestTyping::test_field_is_subscriptable PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanField::test_valid_inputs PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanField::test_invalid_inputs PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanField::test_outputs PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestBooleanField::test_disallow_unhashable_collection_types PASSED [ 21%]
[2024-11-23T20:00:11.221Z] tests/test_fields.py::TestNullableBooleanField::test_valid_inputs PASSED [ 21%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNullableBooleanField::test_invalid_inputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNullableBooleanField::test_outputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNullableBooleanField::test_disallow_unhashable_collection_types PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_valid_inputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_invalid_inputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_outputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_trim_whitespace_default PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_trim_whitespace_disabled PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_disallow_blank_with_trim_whitespace PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_null_bytes PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_surrogate_characters PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCharField::test_iterable_validators PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestEmailField::test_valid_inputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestEmailField::test_invalid_inputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestEmailField::test_outputs PASSED [ 22%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestRegexField::test_valid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestRegexField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestRegexField::test_outputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestiCompiledRegexField::test_valid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestiCompiledRegexField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestiCompiledRegexField::test_outputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestSlugField::test_valid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestSlugField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestSlugField::test_outputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestSlugField::test_allow_unicode_true PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestURLField::test_valid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestURLField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestURLField::test_outputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestUUIDField::test_valid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestUUIDField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestUUIDField::test_outputs PASSED [ 23%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestUUIDField::test_formats PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPAddressField::test_valid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPAddressField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPAddressField::test_outputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPv4AddressField::test_valid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPv4AddressField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPv4AddressField::test_outputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPv6AddressField::test_valid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPv6AddressField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIPv6AddressField::test_outputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFilePathField::test_valid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFilePathField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFilePathField::test_outputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIntegerField::test_valid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIntegerField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestIntegerField::test_outputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxIntegerField::test_valid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxIntegerField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxIntegerField::test_outputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFloatField::test_valid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFloatField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFloatField::test_outputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxFloatField::test_valid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxFloatField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxFloatField::test_outputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestFloatFieldOverFlowError::test_overflow_error_float_field PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDecimalField::test_valid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDecimalField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDecimalField::test_outputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowNullDecimalField::test_valid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowNullDecimalField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowNullDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_invalid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxDecimalField::test_invalid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestMinMaxDecimalField::test_warning_when_not_decimal_types PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_valid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_invalid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_outputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_invalid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoStringCoercionDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoStringCoercionDecimalField::test_invalid_inputs PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoStringCoercionDecimalField::test_outputs PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestLocalizedDecimalField::test_localize_forces_coerce_to_string PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestLocalizedDecimalField::test_to_internal_value PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestLocalizedDecimalField::test_to_representation PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestQuantizedValueForDecimal::test_int_quantized_value_for_decimal PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestQuantizedValueForDecimal::test_part_precision_string_quantized_value_for_decimal PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestQuantizedValueForDecimal::test_string_quantized_value_for_decimal PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNormalizedOutputValueDecimalField::test_non_normalize_output PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNormalizedOutputValueDecimalField::test_normalize_coeherce_to_string PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNormalizedOutputValueDecimalField::test_normalize_output PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoDecimalPlaces::test_valid_inputs PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoDecimalPlaces::test_invalid_inputs PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoDecimalPlaces::test_outputs PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestRoundingDecimalField::test_invalid_rounding PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestRoundingDecimalField::test_valid_rounding PASSED [ 27%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDateField::test_outputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomInputFormatDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomInputFormatDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomInputFormatDateField::test_outputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomOutputFormatDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomOutputFormatDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomOutputFormatDateField::test_outputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoOutputFormatDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoOutputFormatDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoOutputFormatDateField::test_outputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDateTimeField::test_valid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDateTimeField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestDateTimeField::test_outputs PASSED [ 28%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNaiveDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNaiveDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestNaiveDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestTZWithDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.222Z] tests/test_fields.py::TestTZWithDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestTZWithDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestDefaultTZDateTimeField::test_current_timezone PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestDefaultTZDateTimeField::test_default_timezone PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomTimezoneForDateTimeField::test_should_render_date_time_in_default_timezone PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestPytzNaiveDayLightSavingTimeTimeZoneDateTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestPytzNaiveDayLightSavingTimeTimeZoneDateTimeField::test_outputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_outputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestTimeField::test_outputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomInputFormatTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomInputFormatTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomInputFormatTimeField::test_outputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomOutputFormatTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomOutputFormatTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestCustomOutputFormatTimeField::test_outputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNoOutputFormatTimeField::test_valid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNoOutputFormatTimeField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNoOutputFormatTimeField::test_outputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMinMaxDurationField::test_valid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMinMaxDurationField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMinMaxDurationField::test_outputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestDurationField::test_valid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestDurationField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestDurationField::test_outputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_valid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_outputs PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_allow_blank PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_allow_null PASSED [ 31%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_iter_options PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_edit_choices PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_enum_integer_choices PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_integer_choices PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceField::test_text_choices PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithType::test_valid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithType::test_invalid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithType::test_outputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithListChoices::test_valid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithListChoices::test_invalid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithListChoices::test_outputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_valid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_invalid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_outputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_valid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_invalid_inputs PASSED [ 32%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_outputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMultipleChoiceField::test_valid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMultipleChoiceField::test_invalid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMultipleChoiceField::test_outputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestMultipleChoiceField::test_against_partial_and_full_updates PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestEmptyMultipleChoiceField::test_valid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestEmptyMultipleChoiceField::test_invalid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestEmptyMultipleChoiceField::test_outputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestFileField::test_valid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestFileField::test_invalid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestFileField::test_outputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestFieldFieldWithName::test_valid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestFieldFieldWithName::test_invalid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestFieldFieldWithName::test_outputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestInvalidImageField::test_valid_inputs PASSED [ 33%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestInvalidImageField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestInvalidImageField::test_outputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestValidImageField::test_valid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestValidImageField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestValidImageField::test_outputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestListField::test_valid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestListField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestListField::test_outputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestListField::test_no_source_on_child PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestListField::test_collection_types_are_invalid_input PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestListField::test_constructor_misuse_raises PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNestedListField::test_valid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNestedListField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T20:00:11.473Z] tests/test_fields.py::TestNestedListField::test_outputs PASSED [ 34%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_invalid_inputs FAILED [ 34%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_outputs PASSED [ 34%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_valid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestEmptyListField::test_valid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestEmptyListField::test_invalid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestEmptyListField::test_outputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestListFieldLengthLimit::test_valid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestListFieldLengthLimit::test_invalid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestListFieldLengthLimit::test_outputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestUnvalidatedListField::test_valid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestUnvalidatedListField::test_invalid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestUnvalidatedListField::test_outputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictField::test_valid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictField::test_invalid_inputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictField::test_outputs PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictField::test_no_source_on_child PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictField::test_allow_null PASSED [ 35%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictField::test_allow_empty_disallowed PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestNestedDictField::test_valid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestNestedDictField::test_invalid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestNestedDictField::test_outputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictFieldWithNullChild::test_valid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictFieldWithNullChild::test_invalid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestDictFieldWithNullChild::test_outputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestUnvalidatedDictField::test_valid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestUnvalidatedDictField::test_invalid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestUnvalidatedDictField::test_outputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestHStoreField::test_valid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestHStoreField::test_invalid_inputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestHStoreField::test_outputs PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestHStoreField::test_child_is_charfield PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestHStoreField::test_no_source_on_child PASSED [ 36%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestHStoreField::test_allow_null PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestJSONField::test_valid_inputs PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestJSONField::test_invalid_inputs PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestJSONField::test_outputs PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestJSONField::test_html_input_as_json_string PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestBinaryJSONField::test_valid_inputs PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestBinaryJSONField::test_invalid_inputs PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestBinaryJSONField::test_outputs PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestFileFieldContext::test_fully_qualified_when_request_in_context PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestFilePathFieldRequired::test_required_passed_to_both_django_file_path_field_and_base PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestSerializerMethodField::test_serializer_method_field PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestSerializerMethodField::test_redundant_method_name PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestModelField::test_max_length_init PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg[False] PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg[True] PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg_including_percent[False] PASSED [ 37%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg_including_percent[True] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[False-None] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[False-exc_code] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[True-None] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[True-exc_code] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict_list_same_code[None] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict_list_same_code[exc_code] PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_filters.py::SearchSplitTests::test_keep_quoted_togheter_regardless_of_commas PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_filters.py::SearchSplitTests::test_splits_by_comma PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_filters.py::SearchSplitTests::test_splits_quotes_followed_by_comma_and_sentence PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_filters.py::SearchSplitTests::test_strips_commas_around_quoted PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_filters.py::BaseFilterTests::test_filter_queryset_raises_error PASSED [ 38%]
[2024-11-23T20:00:11.724Z] tests/test_filters.py::BaseFilterTests::test_get_schema_fields_checks_for_coreapi SKIPPED [ 38%]
[2024-11-23T20:00:11.974Z] tests/test_filters.py::SearchFilterTests::test_exact_search ERROR [ 38%]
[2024-11-23T20:00:12.225Z] tests/test_filters.py::SearchFilterTests::test_regexp_search ERROR [ 38%]
[2024-11-23T20:00:12.475Z] tests/test_filters.py::SearchFilterTests::test_search ERROR [ 39%]
[2024-11-23T20:00:12.725Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_additional_transforms ERROR [ 39%]
[2024-11-23T20:00:12.725Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_custom_lookup ERROR [ 39%]
[2024-11-23T20:00:12.976Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_escapes ERROR [ 39%]
[2024-11-23T20:00:13.226Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_multiple_words ERROR [ 39%]
[2024-11-23T20:00:13.476Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_null_characters ERROR [ 39%]
[2024-11-23T20:00:13.726Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_quotes ERROR [ 39%]
[2024-11-23T20:00:13.977Z] tests/test_filters.py::SearchFilterTests::test_search_returns_same_queryset_if_no_search_fields_or_terms_provided ERROR [ 39%]
[2024-11-23T20:00:14.227Z] tests/test_filters.py::SearchFilterTests::test_search_with_filter_subclass ERROR [ 39%]
[2024-11-23T20:00:14.477Z] tests/test_filters.py::SearchFilterTests::test_search_with_nonstandard_search_param ERROR [ 39%]
[2024-11-23T20:00:14.477Z] tests/test_filters.py::SearchFilterTests::test_startswith_search ERROR [ 39%]
[2024-11-23T20:00:14.477Z] tests/test_filters.py::SearchFilterFkTests::test_custom_lookup_to_related_model PASSED [ 39%]
[2024-11-23T20:00:14.477Z] tests/test_filters.py::SearchFilterFkTests::test_must_call_distinct PASSED [ 39%]
[2024-11-23T20:00:14.477Z] tests/test_filters.py::SearchFilterFkTests::test_must_call_distinct_restores_meta_for_each_field PASSED [ 39%]
[2024-11-23T20:00:14.727Z] tests/test_filters.py::SearchFilterM2MTests::test_m2m_search FAILED [ 39%]
[2024-11-23T20:00:14.978Z] tests/test_filters.py::SearchFilterM2MTests::test_must_call_distinct FAILED [ 39%]
[2024-11-23T20:00:15.228Z] tests/test_filters.py::SearchFilterToManyTests::test_multiple_filter_conditions ERROR [ 40%]
[2024-11-23T20:00:15.478Z] tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_must_call_distinct_subsequent_m2m_fields ERROR [ 40%]
[2024-11-23T20:00:15.728Z] tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_search_in_annotated_field ERROR [ 40%]
[2024-11-23T20:00:15.979Z] tests/test_filters.py::OrderingFilterTests::test_default_ordering FAILED [ 40%]
[2024-11-23T20:00:16.229Z] tests/test_filters.py::OrderingFilterTests::test_default_ordering_using_string FAILED [ 40%]
[2024-11-23T20:00:16.479Z] tests/test_filters.py::OrderingFilterTests::test_get_template_context FAILED [ 40%]
[2024-11-23T20:00:16.730Z] tests/test_filters.py::OrderingFilterTests::test_incorrectfield_ordering FAILED [ 40%]
[2024-11-23T20:00:16.980Z] tests/test_filters.py::OrderingFilterTests::test_incorrecturl_extrahyphens_ordering FAILED [ 40%]
[2024-11-23T20:00:16.980Z] tests/test_filters.py::OrderingFilterTests::test_ordering FAILED [ 40%]
[2024-11-23T20:00:17.230Z] tests/test_filters.py::OrderingFilterTests::test_ordering_by_aggregate_field FAILED [ 40%]
[2024-11-23T20:00:17.481Z] tests/test_filters.py::OrderingFilterTests::test_ordering_by_dotted_source FAILED [ 40%]
[2024-11-23T20:00:17.731Z] tests/test_filters.py::OrderingFilterTests::test_ordering_with_improper_configuration FAILED [ 40%]
[2024-11-23T20:00:17.981Z] tests/test_filters.py::OrderingFilterTests::test_ordering_with_nonstandard_ordering_param FAILED [ 40%]
[2024-11-23T20:00:18.231Z] tests/test_filters.py::OrderingFilterTests::test_ordering_with_overridden_get_serializer_class FAILED [ 40%]
[2024-11-23T20:00:18.481Z] tests/test_filters.py::OrderingFilterTests::test_ordering_without_ordering_fields FAILED [ 40%]
[2024-11-23T20:00:18.732Z] tests/test_filters.py::OrderingFilterTests::test_reverse_ordering FAILED [ 41%]
[2024-11-23T20:00:18.982Z] tests/test_filters.py::SensitiveOrderingFilterTests::test_cannot_order_by_non_serializer_fields FAILED [ 41%]
[2024-11-23T20:00:18.982Z] tests/test_filters.py::SensitiveOrderingFilterTests::test_order_by_serializer_fields FAILED [ 41%]
[2024-11-23T20:00:19.232Z] tests/test_generics.py::TestRootView::test_delete_root_view FAILED [ 41%]
[2024-11-23T20:00:19.483Z] tests/test_generics.py::TestRootView::test_get_root_view FAILED [ 41%]
[2024-11-23T20:00:19.733Z] tests/test_generics.py::TestRootView::test_head_root_view FAILED [ 41%]
[2024-11-23T20:00:19.983Z] tests/test_generics.py::TestRootView::test_post_cannot_set_id FAILED [ 41%]
[2024-11-23T20:00:20.233Z] tests/test_generics.py::TestRootView::test_post_error_root_view FAILED [ 41%]
[2024-11-23T20:00:20.484Z] tests/test_generics.py::TestRootView::test_post_root_view FAILED [ 41%]
[2024-11-23T20:00:20.484Z] tests/test_generics.py::TestRootView::test_put_root_view FAILED [ 41%]
[2024-11-23T20:00:20.734Z] tests/test_generics.py::TestInstanceView::test_delete_instance_view FAILED [ 41%]
[2024-11-23T20:00:20.984Z] tests/test_generics.py::TestInstanceView::test_get_instance_view FAILED [ 41%]
[2024-11-23T20:00:21.234Z] tests/test_generics.py::TestInstanceView::test_get_instance_view_incorrect_arg FAILED [ 41%]
[2024-11-23T20:00:21.485Z] tests/test_generics.py::TestInstanceView::test_patch_cannot_create_an_object FAILED [ 41%]
[2024-11-23T20:00:21.735Z] tests/test_generics.py::TestInstanceView::test_patch_instance_view FAILED [ 41%]
[2024-11-23T20:00:21.735Z] tests/test_generics.py::TestInstanceView::test_post_instance_view FAILED [ 41%]
[2024-11-23T20:00:21.985Z] tests/test_generics.py::TestInstanceView::test_put_cannot_set_id FAILED [ 42%]
[2024-11-23T20:00:22.236Z] tests/test_generics.py::TestInstanceView::test_put_error_instance_view FAILED [ 42%]
[2024-11-23T20:00:22.494Z] tests/test_generics.py::TestInstanceView::test_put_instance_view FAILED [ 42%]
[2024-11-23T20:00:22.745Z] tests/test_generics.py::TestInstanceView::test_put_to_deleted_instance FAILED [ 42%]
[2024-11-23T20:00:22.995Z] tests/test_generics.py::TestInstanceView::test_put_to_filtered_out_instance FAILED [ 42%]
[2024-11-23T20:00:23.245Z] tests/test_generics.py::TestOverriddenGetObject::test_overridden_get_object_view FAILED [ 42%]
[2024-11-23T20:00:23.496Z] tests/test_generics.py::TestCreateModelWithAutoNowAddField::test_create_model_with_auto_now_add_field FAILED [ 42%]
[2024-11-23T20:00:23.746Z] tests/test_generics.py::TestM2MBrowsableAPI::test_m2m_in_browsable_api FAILED [ 42%]
[2024-11-23T20:00:23.996Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_dynamic_serializer_form_in_browsable_api FAILED [ 42%]
[2024-11-23T20:00:24.246Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_filters_out_name_with_filter_backend FAILED [ 42%]
[2024-11-23T20:00:24.497Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it FAILED [ 42%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_by_name_with_filter_backend FAILED [ 42%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_out_all_models_with_exclusive_filter_backend FAILED [ 42%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::TestGuardedQueryset::test_guarded_queryset PASSED [ 42%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_create_api_view_post PASSED [ 42%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_destroy_api_view_delete PASSED [ 43%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_retrieve_destroy_api_view_delete PASSED [ 43%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_retrieve_destroy_api_view_get PASSED [ 43%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_get PASSED [ 43%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_patch PASSED [ 43%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_put PASSED [ 43%]
[2024-11-23T20:00:24.747Z] tests/test_generics.py::ApiViewsTests::test_update_api_view_partial_update PASSED [ 43%]
[2024-11-23T20:00:24.998Z] tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_invalid_string_for_uuid FAILED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_valid_uuid FAILED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_generics.py::TestSerializer::test_given_context_not_overridden PASSED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_generics.py::TestSerializer::test_serializer_class_not_provided PASSED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_generics.py::TestTyping::test_genericview_is_subscriptable PASSED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_generics.py::TestTyping::test_instanceview_is_subscriptable PASSED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_generics.py::TestTyping::test_listview_is_subscriptable PASSED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_raises_error_if_no_template_found PASSED [ 43%]
[2024-11-23T20:00:25.248Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_returns_own_template_name PASSED [ 44%]
[2024-11-23T20:00:25.248Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_returns_view_template_name PASSED [ 44%]
[2024-11-23T20:00:25.248Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view FAILED [ 44%]
[2024-11-23T20:00:25.248Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view FAILED [ 44%]
[2024-11-23T20:00:25.498Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_simple_html_view FAILED [ 44%]
[2024-11-23T20:00:25.498Z] tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template FAILED [ 44%]
[2024-11-23T20:00:25.498Z] tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template FAILED [ 44%]
[2024-11-23T20:00:25.749Z] tests/test_lazy_hyperlinks.py::TestLazyHyperlinkNames::test_lazy_hyperlink_names FAILED [ 44%]
[2024-11-23T20:00:25.749Z] tests/test_metadata.py::TestMetadata::test_determine_metadata_abstract_method_raises_proper_error PASSED [ 44%]
[2024-11-23T20:00:25.749Z] tests/test_metadata.py::TestMetadata::test_metadata PASSED [ 44%]
[2024-11-23T20:00:25.749Z] tests/test_metadata.py::TestMetadata::test_none_metadata PASSED [ 44%]
[2024-11-23T20:00:25.749Z] tests/test_metadata.py::TestMetadata::test_actions PASSED [ 44%]
[2024-11-23T20:00:25.749Z] tests/test_metadata.py::TestMetadata::test_global_permissions PASSED [ 44%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestMetadata::test_object_permissions PASSED [ 44%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestMetadata::test_bug_2455_clone_request PASSED [ 44%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestMetadata::test_bug_2477_clone_request PASSED [ 44%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestMetadata::test_dont_show_hidden_fields PASSED [ 45%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestMetadata::test_list_serializer_metadata_returns_info_about_fields_of_child_serializer PASSED [ 45%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_decimal_field_info_type PASSED [ 45%]
[2024-11-23T20:00:25.750Z] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_null_boolean_field_info_type PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_related_field_choices FAILED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_metadata.py::TestModelSerializerMetadata::test_read_only_primary_key_related_field PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_middleware.py::TestMiddleware::test_middleware_can_access_request_post_when_processing_response PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_middleware.py::TestMiddleware::test_middleware_can_access_user_when_processing_response FAILED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_class_based_view PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_function_based_view PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_viewset_list PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_viewset_list_action PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestModelSerializer::test_abstract_model PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestModelSerializer::test_create_method PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_choices_with_nonstandard_args PASSED [ 45%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_extra_field_kwargs PASSED [ 46%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_extra_field_kwargs_required PASSED [ 46%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_field_options PASSED [ 46%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_invalid_field PASSED [ 46%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_method_field PASSED [ 46%]
[2024-11-23T20:00:26.000Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_missing_field PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_missing_superclass_field PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_nullable_boolean_field_choices PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_pk_fields PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_regular_fields PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestDurationFieldMapping::test_duration_field PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestDurationFieldMapping::test_duration_field_with_validators PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestGenericIPAddressFieldValidation::test_ip_address_validation PASSED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_array_field SKIPPED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_hstore_field SKIPPED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_json_field SKIPPED [ 46%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestDjangoJSONFieldMapping::test_json_field PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_hyperlinked_relations PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_hyperlinked_relations PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_hyperlinked_relations_starred_source PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_relations PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_unique_together_relations PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_relations PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_foreign_key PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_many_to_many PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_one_to_one PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_through PASSED [ 47%]
[2024-11-23T20:00:26.250Z] tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_custom_display_value FAILED [ 47%]
[2024-11-23T20:00:26.501Z] tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_default_display_value FAILED [ 47%]
[2024-11-23T20:00:26.751Z] tests/test_model_serializer.py::TestIntegration::test_pk_create FAILED [ 47%]
[2024-11-23T20:00:27.001Z] tests/test_model_serializer.py::TestIntegration::test_pk_retrival FAILED [ 47%]
[2024-11-23T20:00:27.252Z] tests/test_model_serializer.py::TestIntegration::test_pk_update FAILED [ 48%]
[2024-11-23T20:00:27.502Z] tests/test_model_serializer.py::TestBulkCreate::test_bulk_create FAILED [ 48%]
[2024-11-23T20:00:27.502Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_declared_fields_with_exclude_option PASSED [ 48%]
[2024-11-23T20:00:27.502Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_exclude_option PASSED [ 48%]
[2024-11-23T20:00:27.502Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_fields_and_exclude_options PASSED [ 48%]
[2024-11-23T20:00:27.502Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_fields_option PASSED [ 48%]
[2024-11-23T20:00:27.752Z] tests/test_model_serializer.py::Issue2704TestCase::test_queryset_all FAILED [ 48%]
[2024-11-23T20:00:28.002Z] tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source FAILED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source_with_default FAILED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::TestDecimalFieldMappings::test_decimal_field_has_decimal_validator PASSED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::TestDecimalFieldMappings::test_max_value_is_passed PASSED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::TestDecimalFieldMappings::test_min_value_is_passed PASSED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::TestMetaInheritance::test_extra_kwargs_not_altered PASSED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::TestModelFieldValues::test_model_field PASSED [ 48%]
[2024-11-23T20:00:28.253Z] tests/test_model_serializer.py::TestUniquenessOverride::test_required_not_overwritten PASSED [ 48%]
[2024-11-23T20:00:28.503Z] tests/test_model_serializer.py::Issue3674Test::test_nonID_PK_foreignkey_model_serializer FAILED [ 48%]
[2024-11-23T20:00:28.503Z] tests/test_model_serializer.py::Issue3674Test::test_nonPK_foreignkey_model_serializer PASSED [ 49%]
[2024-11-23T20:00:28.753Z] tests/test_model_serializer.py::Issue4897TestCase::test_should_assert_if_writing_readonly_fields FAILED [ 49%]
[2024-11-23T20:00:29.004Z] tests/test_model_serializer.py::Test5004UniqueChoiceField::test_unique_choice_field FAILED [ 49%]
[2024-11-23T20:00:29.004Z] tests/test_model_serializer.py::TestFieldSource::test_named_field_source PASSED [ 49%]
[2024-11-23T20:00:29.254Z] tests/test_model_serializer.py::TestFieldSource::test_traverse_nullable_fk FAILED [ 49%]
[2024-11-23T20:00:29.504Z] tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager FAILED [ 49%]
[2024-11-23T20:00:29.754Z] tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager_error_message PASSED [ 49%]
[2024-11-23T20:00:29.754Z] tests/test_model_serializer.py::Issue6751Test::test_model_serializer_save_m2m_after_instance FAILED [ 49%]
[2024-11-23T20:00:29.754Z] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_data_is_valid_without_parent_ptr PASSED [ 49%]
[2024-11-23T20:00:29.754Z] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_multitable_inherited_model_fields_as_expected PASSED [ 49%]
[2024-11-23T20:00:30.005Z] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_onetoone_primary_key_model_fields_as_expected FAILED [ 49%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_overspecifies_accept_use_client PASSED [ 49%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_specifies_parameter PASSED [ 49%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_underspecifies_accept_use_renderer PASSED [ 49%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_without_accept_use_renderer PASSED [ 49%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_match_is_false_if_main_types_not_match PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_match_is_false_if_keys_not_match PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_precedence_with_wildcard_subtype PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_string_representation PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::TestAcceptedMediaType::test_raise_error_if_no_suitable_renderers_found PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::BaseContentNegotiationTests::test_raise_error_for_abstract_select_parser_method PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_negotiation.py::BaseContentNegotiationTests::test_raise_error_for_abstract_select_renderer_method PASSED [ 50%]
[2024-11-23T20:00:30.005Z] tests/test_one_to_one_with_inheritance.py::InheritedModelSerializationTests::test_multitable_inherited_model_fields_as_expected PASSED [ 50%]
[2024-11-23T20:00:30.255Z] tests/test_pagination.py::TestPaginationIntegration::test_filtered_items_are_paginated FAILED [ 50%]
[2024-11-23T20:00:30.255Z] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size FAILED [ 50%]
[2024-11-23T20:00:30.505Z] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_over_maximum FAILED [ 50%]
[2024-11-23T20:00:30.505Z] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_to_zero FAILED [ 50%]
[2024-11-23T20:00:30.505Z] tests/test_pagination.py::TestPaginationIntegration::test_additional_query_params_are_preserved FAILED [ 50%]
[2024-11-23T20:00:30.755Z] tests/test_pagination.py::TestPaginationIntegration::test_empty_query_params_are_preserved FAILED [ 50%]
[2024-11-23T20:00:30.756Z] tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_zero_page PASSED [ 50%]
[2024-11-23T20:00:30.756Z] tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_invalid_page PASSED [ 51%]
[2024-11-23T20:00:30.756Z] tests/test_pagination.py::TestPaginationDisabledIntegration::test_unpaginated_list PASSED [ 51%]
[2024-11-23T20:00:30.756Z] tests/test_pagination.py::TestPageNumberPagination::test_no_page_number[/] FAILED [ 51%]
[2024-11-23T20:00:30.756Z] tests/test_pagination.py::TestPageNumberPagination::test_no_page_number[/?page=] FAILED [ 51%]
[2024-11-23T20:00:31.006Z] tests/test_pagination.py::TestPageNumberPagination::test_second_page FAILED [ 51%]
[2024-11-23T20:00:31.006Z] tests/test_pagination.py::TestPageNumberPagination::test_last_page FAILED [ 51%]
[2024-11-23T20:00:31.006Z] tests/test_pagination.py::TestPageNumberPagination::test_invalid_page PASSED [ 51%]
[2024-11-23T20:00:31.006Z] tests/test_pagination.py::TestPageNumberPagination::test_get_paginated_response_schema PASSED [ 51%]
[2024-11-23T20:00:31.006Z] tests/test_pagination.py::TestPageNumberPaginationOverride::test_no_page_number FAILED [ 51%]
[2024-11-23T20:00:31.006Z] tests/test_pagination.py::TestPageNumberPaginationOverride::test_invalid_page PASSED [ 51%]
[2024-11-23T20:00:31.256Z] tests/test_pagination.py::TestLimitOffset::test_no_offset FAILED [ 51%]
[2024-11-23T20:00:31.256Z] tests/test_pagination.py::TestLimitOffset::test_pagination_not_applied_if_limit_or_default_limit_not_set PASSED [ 51%]
[2024-11-23T20:00:31.256Z] tests/test_pagination.py::TestLimitOffset::test_single_offset FAILED [ 51%]
[2024-11-23T20:00:31.507Z] tests/test_pagination.py::TestLimitOffset::test_first_offset FAILED [ 51%]
[2024-11-23T20:00:31.507Z] tests/test_pagination.py::TestLimitOffset::test_middle_offset FAILED [ 51%]
[2024-11-23T20:00:31.507Z] tests/test_pagination.py::TestLimitOffset::test_ending_offset FAILED [ 51%]
[2024-11-23T20:00:31.757Z] tests/test_pagination.py::TestLimitOffset::test_erronous_offset FAILED [ 52%]
[2024-11-23T20:00:31.757Z] tests/test_pagination.py::TestLimitOffset::test_invalid_offset PASSED [ 52%]
[2024-11-23T20:00:31.757Z] tests/test_pagination.py::TestLimitOffset::test_invalid_limit FAILED [ 52%]
[2024-11-23T20:00:31.757Z] tests/test_pagination.py::TestLimitOffset::test_zero_limit FAILED [ 52%]
[2024-11-23T20:00:32.007Z] tests/test_pagination.py::TestLimitOffset::test_max_limit FAILED [ 52%]
[2024-11-23T20:00:32.007Z] tests/test_pagination.py::TestLimitOffset::test_get_paginated_response_schema PASSED [ 52%]
[2024-11-23T20:00:32.007Z] tests/test_pagination.py::TestCursorPagination::test_invalid_cursor FAILED [ 52%]
[2024-11-23T20:00:32.007Z] tests/test_pagination.py::TestCursorPagination::test_use_with_ordering_filter PASSED [ 52%]
[2024-11-23T20:00:32.007Z] tests/test_pagination.py::TestCursorPagination::test_use_with_ordering_filter_without_ordering_default_value PASSED [ 52%]
[2024-11-23T20:00:32.007Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination FAILED [ 52%]
[2024-11-23T20:00:32.258Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_forward FAILED [ 52%]
[2024-11-23T20:00:32.258Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_reverse FAILED [ 52%]
[2024-11-23T20:00:32.258Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size FAILED [ 52%]
[2024-11-23T20:00:32.258Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_over_limit FAILED [ 52%]
[2024-11-23T20:00:32.516Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_zero FAILED [ 52%]
[2024-11-23T20:00:32.516Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_negative FAILED [ 53%]
[2024-11-23T20:00:32.516Z] tests/test_pagination.py::TestCursorPagination::test_get_paginated_response_schema PASSED [ 53%]
[2024-11-23T20:00:32.767Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination FAILED [ 53%]
[2024-11-23T20:00:33.017Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_forward FAILED [ 53%]
[2024-11-23T20:00:33.267Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_reverse FAILED [ 53%]
[2024-11-23T20:00:33.518Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size FAILED [ 53%]
[2024-11-23T20:00:33.768Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_negative FAILED [ 53%]
[2024-11-23T20:00:34.018Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_over_limit FAILED [ 53%]
[2024-11-23T20:00:34.268Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_zero FAILED [ 53%]
[2024-11-23T20:00:34.519Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_get_paginated_response_schema FAILED [ 53%]
[2024-11-23T20:00:34.769Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_invalid_cursor FAILED [ 53%]
[2024-11-23T20:00:35.019Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter FAILED [ 53%]
[2024-11-23T20:00:35.269Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter_without_ordering_default_value FAILED [ 53%]
[2024-11-23T20:00:35.269Z] tests/test_pagination.py::test_get_displayed_page_numbers PASSED [ 53%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFormParser::test_parse PASSED [ 53%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFileUploadParser::test_get_encoded_filename PASSED [ 53%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFileUploadParser::test_get_filename PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFileUploadParser::test_parse PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename_large_file PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename_multiple_upload_handlers PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestJSONParser::test_float_strictness PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_post_method PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_post_method_with_json_parser PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_put_method PASSED [ 54%]
[2024-11-23T20:00:35.269Z] tests/test_parsers.py::TestPOSTAccessed::test_request_read_before_parsing PASSED [ 54%]
[2024-11-23T20:00:35.520Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_api_root_view_discard_default_django_model_permission FAILED [ 54%]
[2024-11-23T20:00:35.770Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_calling_method_not_allowed FAILED [ 54%]
[2024-11-23T20:00:36.020Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_check_auth_before_queryset_call FAILED [ 54%]
[2024-11-23T20:00:36.270Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_create_permissions FAILED [ 54%]
[2024-11-23T20:00:36.521Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_delete_permissions FAILED [ 54%]
[2024-11-23T20:00:36.771Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_put_permissions FAILED [ 55%]
[2024-11-23T20:00:37.021Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_empty_view_does_not_assert FAILED [ 55%]
[2024-11-23T20:00:37.272Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_get_queryset_has_create_permissions FAILED [ 55%]
[2024-11-23T20:00:37.272Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_create_permissions FAILED [ 55%]
[2024-11-23T20:00:37.522Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_delete_permissions FAILED [ 55%]
[2024-11-23T20:00:37.772Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_put_permissions FAILED [ 55%]
[2024-11-23T20:00:38.022Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_authenticated_user FAILED [ 55%]
[2024-11-23T20:00:38.273Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_unauthenticated_user FAILED [ 55%]
[2024-11-23T20:00:38.523Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_disallowed FAILED [ 55%]
[2024-11-23T20:00:38.773Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_permitted FAILED [ 55%]
[2024-11-23T20:00:39.023Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_updateonly FAILED [ 55%]
[2024-11-23T20:00:39.273Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_queryset_assertions FAILED [ 55%]
[2024-11-23T20:00:39.273Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_delete_permissions SKIPPED [ 55%]
[2024-11-23T20:00:39.273Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_get_queryset_permissions SKIPPED [ 55%]
[2024-11-23T20:00:39.273Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_list_permissions SKIPPED [ 55%]
[2024-11-23T20:00:39.273Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_permissions SKIPPED [ 55%]
[2024-11-23T20:00:39.273Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_update_permissions SKIPPED [ 56%]
[2024-11-23T20:00:39.274Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_delete_permissions SKIPPED [ 56%]
[2024-11-23T20:00:39.274Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_method_not_allowed SKIPPED [ 56%]
[2024-11-23T20:00:39.274Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_read_permissions SKIPPED [ 56%]
[2024-11-23T20:00:39.274Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_update_permissions SKIPPED [ 56%]
[2024-11-23T20:00:39.274Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_update_permissions_non_existing SKIPPED [ 56%]
[2024-11-23T20:00:39.524Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied FAILED [ 56%]
[2024-11-23T20:00:39.774Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object FAILED [ 56%]
[2024-11-23T20:00:40.024Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object_with_custom_detail FAILED [ 56%]
[2024-11-23T20:00:40.274Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_with_custom_detail FAILED [ 56%]
[2024-11-23T20:00:40.525Z] tests/test_permissions.py::PermissionsCompositionTests::test_and_false FAILED [ 56%]
[2024-11-23T20:00:40.775Z] tests/test_permissions.py::PermissionsCompositionTests::test_and_lazyness FAILED [ 56%]
[2024-11-23T20:00:41.025Z] tests/test_permissions.py::PermissionsCompositionTests::test_and_true FAILED [ 56%]
[2024-11-23T20:00:41.025Z] tests/test_permissions.py::PermissionsCompositionTests::test_not_false FAILED [ 56%]
[2024-11-23T20:00:41.275Z] tests/test_permissions.py::PermissionsCompositionTests::test_not_true FAILED [ 56%]
[2024-11-23T20:00:41.526Z] tests/test_permissions.py::PermissionsCompositionTests::test_object_and_lazyness FAILED [ 57%]
[2024-11-23T20:00:41.776Z] tests/test_permissions.py::PermissionsCompositionTests::test_object_or_lazyness FAILED [ 57%]
[2024-11-23T20:00:42.026Z] tests/test_permissions.py::PermissionsCompositionTests::test_or_false FAILED [ 57%]
[2024-11-23T20:00:42.276Z] tests/test_permissions.py::PermissionsCompositionTests::test_or_lazyness FAILED [ 57%]
[2024-11-23T20:00:42.527Z] tests/test_permissions.py::PermissionsCompositionTests::test_or_true FAILED [ 57%]
[2024-11-23T20:00:42.777Z] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence FAILED [ 57%]
[2024-11-23T20:00:43.027Z] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence_with_negation FAILED [ 57%]
[2024-11-23T20:00:43.277Z] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_without_negation FAILED [ 57%]
[2024-11-23T20:00:43.527Z] tests/test_permissions.py::PermissionsCompositionTests::test_unimplemented_has_object_permission FAILED [ 57%]
[2024-11-23T20:00:43.778Z] tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_excluding_instance_from_original_queryset FAILED [ 57%]
[2024-11-23T20:00:44.028Z] tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_updates FAILED [ 57%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestStringRelatedField::test_string_related_representation PASSED [ 57%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_no_settings PASSED [ 57%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_cutoff PASSED [ 57%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_cutoff_none PASSED [ 57%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_kwargs_cutoff PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_explicit_many_false PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_bool PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_does_not_exist PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_exists PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_invalid_type PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_representation PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_related_lookup_does_not_exist PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_related_lookup_exists PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_representation PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_internal_type_error PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_does_not_exist PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_exists PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_url_encoded_exists PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_url_space_encoded_exists PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_queryset_type_error PASSED [ 58%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_queryset_value_error PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_representation_unsaved_object_with_non_nullable_pk PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_serialize_empty_relationship_attribute PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_improperly_configured PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation_unsaved_object PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation_with_format PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedIdentityFieldWithFormat::test_representation PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlinkedIdentityFieldWithFormat::test_representation_with_format PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestSlugRelatedField::test_overriding_get_queryset PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestSlugRelatedField::test_representation PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_does_not_exist PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_exists PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_invalid_type PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_nested_overriding_get_queryset PASSED [ 59%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_nested_representation PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_overriding_get_queryset PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_representation PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_overriding_get_queryset PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_representation PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_lookup_does_not_exist PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_lookup_exists PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_lookup_invalid_type PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_lookup_does_not_exist PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_lookup_exists PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_lookup_invalid_type PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_nested_lookup_does_not_exist PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_nested_lookup_exists PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_nested_lookup_invalid_type PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestManyRelatedField::test_get_value_multi_dictionary_full PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestManyRelatedField::test_get_value_multi_dictionary_partial PASSED [ 60%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestManyRelatedField::test_get_value_regular_dictionary_full PASSED [ 61%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestManyRelatedField::test_get_value_regular_dictionary_partial PASSED [ 61%]
[2024-11-23T20:00:44.028Z] tests/test_relations.py::TestHyperlink::test_can_be_pickled PASSED [ 61%]
[2024-11-23T20:00:44.279Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_create FAILED [ 61%]
[2024-11-23T20:00:44.279Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve FAILED [ 61%]
[2024-11-23T20:00:44.829Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED [ 61%]
[2024-11-23T20:00:44.829Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_update FAILED [ 61%]
[2024-11-23T20:00:45.079Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_relative_hyperlinks FAILED [ 61%]
[2024-11-23T20:00:45.329Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_create FAILED [ 61%]
[2024-11-23T20:00:45.580Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_retrieve FAILED [ 61%]
[2024-11-23T20:00:45.830Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_update FAILED [ 61%]
[2024-11-23T20:00:46.080Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_create FAILED [ 61%]
[2024-11-23T20:00:46.080Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_retrieve FAILED [ 61%]
[2024-11-23T20:00:46.330Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update FAILED [ 61%]
[2024-11-23T20:00:46.581Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 61%]
[2024-11-23T20:00:46.831Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 62%]
[2024-11-23T20:00:47.081Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_create FAILED [ 62%]
[2024-11-23T20:00:47.331Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 62%]
[2024-11-23T20:00:47.582Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_update FAILED [ 62%]
[2024-11-23T20:00:47.832Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 62%]
[2024-11-23T20:00:47.832Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 62%]
[2024-11-23T20:00:48.082Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 62%]
[2024-11-23T20:00:48.332Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 62%]
[2024-11-23T20:00:48.583Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 62%]
[2024-11-23T20:00:48.833Z] tests/test_relations_hyperlink.py::HyperlinkedNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED [ 62%]
[2024-11-23T20:00:49.083Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_create FAILED [ 62%]
[2024-11-23T20:00:49.333Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve FAILED [ 62%]
[2024-11-23T20:00:49.583Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED [ 62%]
[2024-11-23T20:00:49.834Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_unsaved FAILED [ 62%]
[2024-11-23T20:00:50.084Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_update FAILED [ 62%]
[2024-11-23T20:00:50.334Z] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_create FAILED [ 62%]
[2024-11-23T20:00:50.334Z] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_retrieve FAILED [ 63%]
[2024-11-23T20:00:50.584Z] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_update FAILED [ 63%]
[2024-11-23T20:00:50.835Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_create FAILED [ 63%]
[2024-11-23T20:00:51.085Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_not_required FAILED [ 63%]
[2024-11-23T20:00:51.335Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_retrieve FAILED [ 63%]
[2024-11-23T20:00:51.585Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update FAILED [ 63%]
[2024-11-23T20:00:51.836Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 63%]
[2024-11-23T20:00:52.086Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 63%]
[2024-11-23T20:00:52.086Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_empty FAILED [ 63%]
[2024-11-23T20:00:52.336Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_unsaved FAILED [ 63%]
[2024-11-23T20:00:52.586Z] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_Q_limited_choices FAILED [ 63%]
[2024-11-23T20:00:52.836Z] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_limited_choices FAILED [ 63%]
[2024-11-23T20:00:53.087Z] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_without_limited_choices FAILED [ 63%]
[2024-11-23T20:00:53.337Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_create FAILED [ 63%]
[2024-11-23T20:00:53.587Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 63%]
[2024-11-23T20:00:53.837Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED [ 64%]
[2024-11-23T20:00:54.088Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_update FAILED [ 64%]
[2024-11-23T20:00:54.338Z] tests/test_relations_pk.py::PKRelationTests::test_relation_field_callable_source FAILED [ 64%]
[2024-11-23T20:00:54.588Z] tests/test_relations_pk.py::PKRelationTests::test_relation_field_property_source FAILED [ 64%]
[2024-11-23T20:00:54.838Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 64%]
[2024-11-23T20:00:55.089Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 64%]
[2024-11-23T20:00:55.339Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 64%]
[2024-11-23T20:00:55.339Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 64%]
[2024-11-23T20:00:55.589Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 64%]
[2024-11-23T20:00:55.839Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_null_uuid_foreign_key_serializes_as_none FAILED [ 64%]
[2024-11-23T20:00:56.089Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_nullable_uuid_foreign_key_is_valid_when_none FAILED [ 64%]
[2024-11-23T20:00:56.340Z] tests/test_relations_pk.py::PKNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED [ 64%]
[2024-11-23T20:00:56.590Z] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key FAILED [ 64%]
[2024-11-23T20:00:56.840Z] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_does_not_exist FAILED [ 64%]
[2024-11-23T20:00:57.090Z] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_no_duplicates FAILED [ 64%]
[2024-11-23T20:00:57.341Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_create FAILED [ 65%]
[2024-11-23T20:00:57.341Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve FAILED [ 65%]
[2024-11-23T20:00:57.591Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve_select_related FAILED [ 65%]
[2024-11-23T20:00:57.841Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update FAILED [ 65%]
[2024-11-23T20:00:58.092Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 65%]
[2024-11-23T20:00:58.342Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 65%]
[2024-11-23T20:00:58.592Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_create FAILED [ 65%]
[2024-11-23T20:00:58.842Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 65%]
[2024-11-23T20:00:59.092Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED [ 65%]
[2024-11-23T20:00:59.093Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_update FAILED [ 65%]
[2024-11-23T20:00:59.343Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 65%]
[2024-11-23T20:00:59.593Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 65%]
[2024-11-23T20:00:59.843Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 65%]
[2024-11-23T20:01:00.094Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 65%]
[2024-11-23T20:01:00.344Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 65%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::BasicRendererTests::test_expected_results PASSED [ 65%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::DocumentingRendererTests::test_only_permitted_forms_are_displayed PASSED [ 66%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::RendererEndToEndTests::test_204_no_content_responses_have_no_content_type_set FAILED [ 66%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::RendererEndToEndTests::test_contains_headers_of_api_response FAILED [ 66%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content FAILED [ 66%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content_on_accept_any FAILED [ 66%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::RendererEndToEndTests::test_head_method_serializes_no_content FAILED [ 66%]
[2024-11-23T20:01:00.344Z] tests/test_renderers.py::RendererEndToEndTests::test_parse_error_renderers_browsable_api PASSED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_default_case FAILED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_non_default_case FAILED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_query FAILED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::RendererEndToEndTests::test_unsatisfiable_accept_header_on_request_returns_406_status FAILED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::BaseRendererTests::test_render_raise_error PASSED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::JSONRendererTests::test_float_strictness PASSED [ 66%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::JSONRendererTests::test_render_dict_abc_obj PASSED [ 67%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::JSONRendererTests::test_render_lazy_strings PASSED [ 67%]
[2024-11-23T20:01:00.594Z] tests/test_renderers.py::JSONRendererTests::test_render_obj_with_getitem PASSED [ 67%]
[2024-11-23T20:01:00.845Z] tests/test_renderers.py::JSONRendererTests::test_render_queryset_values FAILED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::JSONRendererTests::test_render_queryset_values_list FAILED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::JSONRendererTests::test_with_content_type_args PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::JSONRendererTests::test_without_content_type_args PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::UnicodeJSONRendererTests::test_proper_encoding PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::UnicodeJSONRendererTests::test_u2028_u2029 PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AsciiJSONRendererTests::test_proper_encoding PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::CacheRenderTest::test_get_caching FAILED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::CacheRenderTest::test_head_caching FAILED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestJSONIndentationStyles::test_indented PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestJSONIndentationStyles::test_compact PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestJSONIndentationStyles::test_long_form PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestHiddenFieldHTMLFormRenderer::test_hidden_field_rendering PASSED [ 67%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestHTMLFormRenderer::test_render_with_default_args PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestHTMLFormRenderer::test_render_with_provided_args PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestChoiceFieldHTMLFormRenderer::test_render_initial_option PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestChoiceFieldHTMLFormRenderer::test_render_selected_option PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestMultipleChoiceFieldHTMLFormRenderer::test_render_selected_option_with_integer_option_ids PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestMultipleChoiceFieldHTMLFormRenderer::test_render_selected_option_with_string_option_ids PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::StaticHTMLRendererTests::test_static_renderer PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::StaticHTMLRendererTests::test_static_renderer_with_exception PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown FAILED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown_not_authed PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_description_returns_empty_string_for_401_and_403_statuses PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_filter_form_returns_none_if_data_is_not_list_instance PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_raw_data_form PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_render_form_for_serializer PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_get_context_result_urls PASSED [ 68%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_get_result_url PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_get_result_url_no_result PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_render_dict PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_render_dict_with_items_key PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_render_dict_with_iteritems_key PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::AdminRendererTests::test_render_when_resource_created PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestDocumentationRenderer::test_document_with_link_named_data SKIPPED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestDocumentationRenderer::test_shell_code_example_rendering SKIPPED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_renderers.py::TestSchemaJSRenderer::test_schemajs_output SKIPPED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestInitializer::test_request_type PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_request_DATA_with_form_content PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_request_DATA_with_text_content PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_request_POST_with_files PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_request_POST_with_form_content PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_form_content_PUT PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_no_content_GET PASSED [ 69%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_no_content_HEAD PASSED [ 70%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_non_form_content_PUT PASSED [ 70%]
[2024-11-23T20:01:01.095Z] tests/test_request.py::FileUploadTests::test_fileuploads_closed_at_request_end FAILED [ 70%]
[2024-11-23T20:01:01.346Z] tests/test_request.py::TestContentParsingWithAuthentication::test_user_logged_in_authentication_has_POST_when_not_logged_in FAILED [ 70%]
[2024-11-23T20:01:01.596Z] tests/test_request.py::TestUserSetter::test_calling_user_fails_when_attribute_error_is_raised FAILED [ 70%]
[2024-11-23T20:01:01.846Z] tests/test_request.py::TestUserSetter::test_logged_in_user_is_set_on_wrapped_request FAILED [ 70%]
[2024-11-23T20:01:02.096Z] tests/test_request.py::TestUserSetter::test_user_can_be_set FAILED [ 70%]
[2024-11-23T20:01:02.347Z] tests/test_request.py::TestUserSetter::test_user_can_login FAILED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestUserSetter::test_user_can_logout FAILED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestAuthSetter::test_auth_can_be_set PASSED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestSecure::test_default_secure_false PASSED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestSecure::test_default_secure_true PASSED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestHttpRequest::test_attribute_access_proxy PASSED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestHttpRequest::test_duplicate_request_form_data_access FAILED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestHttpRequest::test_duplicate_request_stream_parsing_exception FAILED [ 70%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestHttpRequest::test_exception_proxy PASSED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestHttpRequest::test_repr PASSED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestDeepcopy::test_deepcopy_works PASSED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_request.py::TestTyping::test_request_is_subscriptable PASSED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_auth SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_get_request SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_get_request_query_params_by_kwarg SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_get_request_query_params_in_url SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_get_with_headers SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_get_with_session_headers SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_post_form_request SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_post_json_request SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_post_multipart_request SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_requests_client.py::RequestsClientTests::test_session SKIPPED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content FAILED [ 71%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content_on_accept_any FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_head_method_serializes_no_content FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_default_case FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_non_default_case FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_query FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::UnsupportedMediaTypeTests::test_should_allow_posting_json FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_a_form FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_xml FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue122Tests::test_html_renderer_is_first PASSED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue122Tests::test_only_html_renderer PASSED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue467Tests::test_form_has_label_and_help_text PASSED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue807Tests::test_content_type_set_explicitly_on_response FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue807Tests::test_does_not_append_charset_by_default FAILED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue807Tests::test_form_has_label_and_help_text PASSED [ 72%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::Issue807Tests::test_if_there_is_charset_specified_on_renderer_it_gets_appended FAILED [ 73%]
[2024-11-23T20:01:02.597Z] tests/test_response.py::TestTyping::test_response_is_subscriptable PASSED [ 73%]
[2024-11-23T20:01:02.597Z] tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme PASSED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme_fallback_to_default_on_error FAILED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_reverse.py::ReverseTests::test_reversed_urls_are_fully_qualified FAILED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_routers.py::TestSimpleRouter::test_action_routes PASSED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_routers.py::TestSimpleRouter::test_multiple_action_handlers FAILED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_routers.py::TestSimpleRouter::test_register_after_accessing_urls PASSED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_routers.py::TestRootView::test_retrieve_namespaced_root FAILED [ 73%]
[2024-11-23T20:01:02.848Z] tests/test_routers.py::TestRootView::test_retrieve_non_namespaced_root FAILED [ 73%]
[2024-11-23T20:01:03.098Z] tests/test_routers.py::TestCustomLookupFields::test_custom_lookup_field_route FAILED [ 73%]
[2024-11-23T20:01:03.348Z] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_detail_view FAILED [ 73%]
[2024-11-23T20:01:03.598Z] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_list_view FAILED [ 73%]
[2024-11-23T20:01:03.849Z] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_url_encoded_detail_view_ FAILED [ 73%]
[2024-11-23T20:01:03.849Z] tests/test_routers.py::TestLookupValueRegex::test_urls_limited_by_lookup_value_regex PASSED [ 73%]
[2024-11-23T20:01:04.099Z] tests/test_routers.py::TestLookupUrlKwargs::test_custom_lookup_url_kwarg_route FAILED [ 74%]
[2024-11-23T20:01:04.349Z] tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_encoded_kwarg_detail_view FAILED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_kwarg_detail_view FAILED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestTrailingSlashIncluded::test_urls_have_trailing_slash_by_default PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestTrailingSlashRemoved::test_urls_can_have_trailing_slash_removed PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestNameableRoot::test_router_has_custom_name PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestActionKeywordArgs::test_action_kwargs PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestActionAppliedToExistingRoute::test_exception_raised_when_action_applied_to_existing_route PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestDynamicListAndDetailRouter::test_inherited_list_and_detail_route_decorators PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestDynamicListAndDetailRouter::test_list_and_detail_route_decorators PASSED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_detail FAILED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_list FAILED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_detail FAILED [ 74%]
[2024-11-23T20:01:04.599Z] tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_list FAILED [ 74%]
[2024-11-23T20:01:04.850Z] tests/test_routers.py::TestUrlPath::test_create FAILED [ 74%]
[2024-11-23T20:01:05.100Z] tests/test_routers.py::TestUrlPath::test_defaultrouter_root FAILED [ 74%]
[2024-11-23T20:01:05.356Z] tests/test_routers.py::TestUrlPath::test_delete FAILED [ 75%]
[2024-11-23T20:01:05.607Z] tests/test_routers.py::TestUrlPath::test_detail_extra_action FAILED [ 75%]
[2024-11-23T20:01:06.157Z] tests/test_routers.py::TestUrlPath::test_detail_extra_other_action FAILED [ 75%]
[2024-11-23T20:01:06.157Z] tests/test_routers.py::TestUrlPath::test_list FAILED [ 75%]
[2024-11-23T20:01:06.407Z] tests/test_routers.py::TestUrlPath::test_list_extra_action FAILED [ 75%]
[2024-11-23T20:01:06.658Z] tests/test_routers.py::TestUrlPath::test_retrieve FAILED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestUrlPath::test_update FAILED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestViewInitkwargs::test_basename PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestViewInitkwargs::test_detail PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestViewInitkwargs::test_suffix PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_autogenerated_basenames PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_mixed_basenames PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_specified_basename PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_specified_basename_different_models PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_autogenerated_basename_different_models PASSED [ 75%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_specified_basename PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_autogenerated_basenames PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_specified_basename PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_autogenerated_basename_different_models PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_specified_basename PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_autogenerated_basenames PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_specified_basename PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_autogenerated_basename_different_models PASSED [ 76%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_mixed_basenames PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_specified_basename PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_specified_basename_different_models PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestFieldImports::test_fields PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestFieldImports::test_relations PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_valid_serializer PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_invalid_serializer PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_invalid_datatype PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_partial_validation PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_empty_serializer PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_missing_attribute_during_serialization PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_data_access_before_save_raises_error PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_validate_none_data PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_serialize_chainmap PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_serialize_custom_mapping PASSED [ 77%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_custom_to_internal_value PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_iterable_validators PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestSerializer::test_serializer_is_subscriptable PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestValidateMethod::test_non_field_error_validate_method PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestValidateMethod::test_field_error_validate_method PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestBaseSerializer::test_abstract_methods_raise_proper_errors PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestBaseSerializer::test_access_to_data_attribute_before_validation_raises_error PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestBaseSerializer::test_access_to_errors_attribute_before_validation_raises_error PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestBaseSerializer::test_access_to_validated_data_attribute_before_validation_raises_error PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestBaseSerializer::test_serialize_instance PASSED [ 78%]
[2024-11-23T20:01:06.908Z] tests/test_serializer.py::TestBaseSerializer::test_serialize_list PASSED [ 78%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestBaseSerializer::test_validate_data PASSED [ 78%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestBaseSerializer::test_validate_list PASSED [ 78%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestStarredSource::test_nested_validate PASSED [ 78%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestStarredSource::test_nested_null_validate PASSED [ 78%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestStarredSource::test_nested_serialize PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestStarredSource::test_field_validate PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestStarredSource::test_field_null_validate PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestIncorrectlyConfigured::test_incorrect_field_name PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestNotRequiredOutput::test_not_required_output_for_dict PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestNotRequiredOutput::test_not_required_output_for_object PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_used_for_dict PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_used_for_object PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_dict PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_object PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_dotted_source PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_multiple_dotted_source PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_nested_serializer PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_allow_null PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestCacheSerializerData::test_cache_serializer_data PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultInclusions::test_default_should_included_on_create PASSED [ 79%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultInclusions::test_default_should_be_included_on_update PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDefaultInclusions::test_default_should_not_be_included_on_partial_update PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestSerializerValidationWithCompiledRegexField::test_validation_success PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::Test2555Regression::test_serializer_context PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::Test4606Regression::test_4606_regression PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_declared_field_disabling PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_meta_field_disabling PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_multiple_inheritance PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_field_ordering PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::Test8301Regression::test_ReturnDict_merging PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestSetValueMethod::test_no_keys PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestSetValueMethod::test_one_key PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer.py::TestSetValueMethod::test_nested_key PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_bulk_create_errors PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_bulk_create_success PASSED [ 80%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_list_datatype PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_single_datatype PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_single_object PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializer::test_validate PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializer::test_validate_html_input PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializer::test_list_serializer_is_subscriptable PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_create PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_serialize PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate_html_input PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_update_allow_custom_child_validation PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_validate PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_create PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_serialize PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_validate_html_input PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_true[False] PASSED [ 81%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_true[True] PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_false[False] PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_false[True] PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate_html_input PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestListSerializerClass::test_list_serializer_class_validate PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_partial_listfield PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_partial_multiplechoice PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_allow_empty_true PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_allow_empty_true PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_allow_empty_false PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_allow_empty_false PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_as_field_allow_empty_true PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_as_field_allow_empty_true PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_as_field_allow_empty_false PASSED [ 82%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_as_field_allow_empty_false PASSED [ 83%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_json PASSED [ 83%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_multipart PASSED [ 83%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_two_items PASSED [ 83%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_four_items PASSED [ 83%]
[2024-11-23T20:01:07.159Z] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_six_items PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_lists.py::TestToRepresentationManagerCheck::test FAILED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_validate PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_empty PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_no_data PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_json_validate PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_multipart_validate PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_allowed_if_allow_null_is_set PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_is_not_allowed_if_allow_null_is_not_set PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_run_the_field_validation_even_if_the_field_is_null PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_allowed_if_allow_empty_is_set PASSED [ 83%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_not_allowed_if_allow_empty_is_set_to_false PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_json PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_multipart PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_json_validate PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_multipart_validate PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedWriteErrors::test_dotted_source_field_error PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedWriteErrors::test_nested_serializer_error PASSED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedNonRelationalFieldWrite::test_nested_serializer_create_and_update SKIPPED [ 84%]
[2024-11-23T20:01:07.409Z] tests/test_serializer_nested.py::TestNestedNonRelationalFieldWrite::test_dotted_source_field_create_and_update SKIPPED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_settings.py::TestSettings::test_compatibility_with_override_settings PASSED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_settings.py::TestSettings::test_import_error_message_maintained PASSED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_settings.py::TestSettings::test_pagination_settings PASSED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_settings.py::TestSettings::test_warning_raised_on_removed_setting PASSED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_settings.py::TestSettingTypes::test_settings_consistently_coerced_to_list PASSED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_status.py::TestStatus::test_status_categories PASSED [ 84%]
[2024-11-23T20:01:07.410Z] tests/test_templates.py::test_base_template_with_context PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templates.py::test_base_template_with_no_context PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_add_nested_class PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_add_query_param_with_non_latin_character PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_as_string_with_none PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_break_long_lines PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_boolean_or_none PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_dict PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_hyperlink PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_list PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_object PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_simple_string PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_email PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_hyperlink PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_newlines PASSED [ 85%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_table PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::TemplateTagTests::test_get_pagination_html PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::Issue1386Tests::test_issue_1386 PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::Issue1386Tests::test_smart_urlquote_wrapper_handles_value_error PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::URLizerTests::test_json_with_url PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::URLizerTests::test_template_render_with_autoescape PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::URLizerTests::test_template_render_with_noautoescape PASSED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_default_actions SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_default_actions_and_single_custom_action SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_default_actions_and_single_custom_action_two_methods SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_multiple_nested_routes SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_multiple_resources_with_multiple_nested_routes SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_schema_with_empty_links SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_templatetags.py::SchemaLinksTests::test_single_action SKIPPED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_testing.py::TestAPITestClient::test_can_logout FAILED [ 86%]
[2024-11-23T20:01:07.410Z] tests/test_testing.py::TestAPITestClient::test_credentials FAILED [ 86%]
[2024-11-23T20:01:07.660Z] tests/test_testing.py::TestAPITestClient::test_csrf_exempt_by_default FAILED [ 87%]
[2024-11-23T20:01:07.660Z] tests/test_testing.py::TestAPITestClient::test_empty_post_uses_default_boolean_value FAILED [ 87%]
[2024-11-23T20:01:07.910Z] tests/test_testing.py::TestAPITestClient::test_explicitly_enforce_csrf_checks FAILED [ 87%]
[2024-11-23T20:01:07.910Z] tests/test_testing.py::TestAPITestClient::test_follow_307_308_preserve_kwargs FAILED [ 87%]
[2024-11-23T20:01:07.910Z] tests/test_testing.py::TestAPITestClient::test_follow_redirect FAILED [ 87%]
[2024-11-23T20:01:08.161Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_sessions FAILED [ 87%]
[2024-11-23T20:01:08.411Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_token FAILED [ 87%]
[2024-11-23T20:01:08.661Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user FAILED [ 87%]
[2024-11-23T20:01:08.911Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user_and_token FAILED [ 87%]
[2024-11-23T20:01:08.911Z] tests/test_testing.py::TestAPITestClient::test_invalid_multipart_data PASSED [ 87%]
[2024-11-23T20:01:09.161Z] tests/test_testing.py::TestAPITestClient::test_logout_resets_force_authenticate FAILED [ 87%]
[2024-11-23T20:01:09.412Z] tests/test_testing.py::TestAPIRequestFactory::test_csrf_exempt_by_default FAILED [ 87%]
[2024-11-23T20:01:09.412Z] tests/test_testing.py::TestAPIRequestFactory::test_empty_request_content_type PASSED [ 87%]
[2024-11-23T20:01:09.662Z] tests/test_testing.py::TestAPIRequestFactory::test_explicitly_enforce_csrf_checks FAILED [ 87%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestAPIRequestFactory::test_force_authenticate FAILED [ 87%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestAPIRequestFactory::test_invalid_format PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestAPIRequestFactory::test_request_factory_url_arguments PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestAPIRequestFactory::test_request_factory_url_arguments_with_unicode PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestAPIRequestFactory::test_upload_file PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestUrlPatternTestCase::test_urlpatterns FAILED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_testing.py::TestExistingPatterns::test_urlpatterns FAILED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_throttling.py::ThrottlingTests::test_minutes_fields PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_throttling.py::ThrottlingTests::test_next_rate_remains_constant_if_followed PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_throttling.py::ThrottlingTests::test_non_time_throttle PASSED [ 88%]
[2024-11-23T20:01:09.912Z] tests/test_throttling.py::ThrottlingTests::test_request_throttling_expires PASSED [ 88%]
[2024-11-23T20:01:10.162Z] tests/test_throttling.py::ThrottlingTests::test_request_throttling_is_per_user FAILED [ 88%]
[2024-11-23T20:01:10.162Z] tests/test_throttling.py::ThrottlingTests::test_request_throttling_multiple_throttles PASSED [ 88%]
[2024-11-23T20:01:10.162Z] tests/test_throttling.py::ThrottlingTests::test_requests_are_throttled PASSED [ 88%]
[2024-11-23T20:01:10.162Z] tests/test_throttling.py::ThrottlingTests::test_seconds_fields PASSED [ 88%]
[2024-11-23T20:01:10.162Z] tests/test_throttling.py::ThrottlingTests::test_throttle_rate_change_negative PASSED [ 88%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::ScopedRateThrottleTests::test_get_cache_key_returns_correct_key_if_user_is_authenticated FAILED [ 88%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::ScopedRateThrottleTests::test_scoped_rate_throttle PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::ScopedRateThrottleTests::test_unscoped_view_not_throttled PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::IdWithXffBasicTests::test_accepts_request_under_limit PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::IdWithXffBasicTests::test_denies_request_over_limit PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::XffSpoofingTests::test_xff_spoofing_doesnt_change_machine_id_with_one_app_proxy PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::XffSpoofingTests::test_xff_spoofing_doesnt_change_machine_id_with_two_app_proxies PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::XffUniqueMachinesTest::test_unique_clients_are_counted_independently_with_one_proxy PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::XffUniqueMachinesTest::test_unique_clients_are_counted_independently_with_two_proxies PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::BaseThrottleTests::test_allow_request_raises_not_implemented_error PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_allow_request_returns_true_if_key_is_none PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_allow_request_returns_true_if_rate_is_none PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_get_cache_key_raises_not_implemented_error PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_get_rate_raises_error_if_scope_is_missing PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_parse_rate_returns_tuple_with_none_if_rate_not_provided PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_throttle_raises_error_if_rate_is_missing PASSED [ 89%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_wait_returns_correct_waiting_time_without_history PASSED [ 90%]
[2024-11-23T20:01:10.413Z] tests/test_throttling.py::SimpleRateThrottleTests::test_wait_returns_none_if_there_are_no_available_requests PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_throttling.py::AnonRateThrottleTests::test_authenticated_user_not_affected FAILED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_throttling.py::AnonRateThrottleTests::test_get_cache_key_returns_correct_value PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_path PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_re_path PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_default_args PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_default_args_django2 PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix_django2 PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix_django2_args PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_included_urls PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_included_urls_mixed PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_trailing_slash PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_urlpatterns.py::FormatSuffixTests::test_trailing_slash_django2 PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_broken_url_breadcrumbs_handled_gracefully PASSED [ 90%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_action_name_kwarg PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_action_suffix_kwarg PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_detail_action_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_list_action_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_resource_instance_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_nested_resource_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_nested_resource_instance_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_resource_instance_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_resource_instance_customname_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_resource_root_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::BreadcrumbTests::test_root_breadcrumbs PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::JsonFloatTests::test_dumps PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::JsonFloatTests::test_loads PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::NonStrictJsonFloatTests::test_dumps PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::NonStrictJsonFloatTests::test_loads PASSED [ 91%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::UrlsReplaceQueryParamTests::test_invalid_unicode PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::UrlsReplaceQueryParamTests::test_valid_unicode_preserved PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::UrlsReplaceQueryParamTests::test_valid_unicode_replaced PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::UrlsRemoveQueryParamTests::test_invalid_unicode PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::UrlsRemoveQueryParamTests::test_valid_unicode_removed PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::LazyFormatTests::test_it_formats_correctly PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::LazyFormatTests::test_it_formats_lazily PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_utils.py::ModelMetaNamedTupleNames::test_named_tuple_names PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_validation.py::TestNestedValidationError::test_nested_validation_error_detail PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_validation.py::TestPreSaveValidationExclusionsSerializer::test_renamed_fields_are_model_validated PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_validation.py::TestCustomValidationMethods::test_custom_validation_method_is_executed PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_validation.py::TestCustomValidationMethods::test_custom_validation_method_passing PASSED [ 92%]
[2024-11-23T20:01:10.672Z] tests/test_validation.py::TestAvoidValidation::test_serializer_errors_has_only_invalid_data_error PASSED [ 92%]
[2024-11-23T20:01:10.922Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_fail FAILED [ 92%]
[2024-11-23T20:01:10.922Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_serializer_fails PASSED [ 92%]
[2024-11-23T20:01:10.922Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_serializer_success PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_success FAILED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_choices PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_mixed_choices PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_nested_choices PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_single_choices PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation.py::TestRegexSerializer::test_regex_repr PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation_error.py::TestValidationErrorWithFullDetails::test_class_based_view_exception_handler PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation_error.py::TestValidationErrorWithFullDetails::test_function_based_view_exception_handler PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation_error.py::TestValidationErrorWithCodes::test_class_based_view_exception_handler PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation_error.py::TestValidationErrorWithCodes::test_function_based_view_exception_handler PASSED [ 93%]
[2024-11-23T20:01:11.172Z] tests/test_validation_error.py::TestValidationErrorConvertsTuplesToLists::test_validation_error_details PASSED [ 93%]
[2024-11-23T20:01:11.423Z] tests/test_validators.py::TestUniquenessValidation::test_doesnt_pollute_model FAILED [ 93%]
[2024-11-23T20:01:11.673Z] tests/test_validators.py::TestUniquenessValidation::test_is_not_unique FAILED [ 93%]
[2024-11-23T20:01:11.923Z] tests/test_validators.py::TestUniquenessValidation::test_is_unique FAILED [ 93%]
[2024-11-23T20:01:12.173Z] tests/test_validators.py::TestUniquenessValidation::test_related_model_is_unique FAILED [ 93%]
[2024-11-23T20:01:12.424Z] tests/test_validators.py::TestUniquenessValidation::test_relation_is_not_unique FAILED [ 94%]
[2024-11-23T20:01:12.674Z] tests/test_validators.py::TestUniquenessValidation::test_repr FAILED [ 94%]
[2024-11-23T20:01:12.924Z] tests/test_validators.py::TestUniquenessValidation::test_updated_instance_excluded FAILED [ 94%]
[2024-11-23T20:01:13.174Z] tests/test_validators.py::TestUniquenessValidation::test_value_error_treated_as_not_unique FAILED [ 94%]
[2024-11-23T20:01:13.425Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_allow_explict_override FAILED [ 94%]
[2024-11-23T20:01:13.675Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_fields_with_source FAILED [ 94%]
[2024-11-23T20:01:13.925Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_multiple_fields_with_same_source FAILED [ 94%]
[2024-11-23T20:01:14.175Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_do_not_ignore_validation_for_null_fields FAILED [ 94%]
[2024-11-23T20:01:14.425Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_filter_queryset_do_not_skip_existing_attribute FAILED [ 94%]
[2024-11-23T20:01:14.676Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_excluded_fields FAILED [ 94%]
[2024-11-23T20:01:14.926Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_read_only_fields FAILED [ 94%]
[2024-11-23T20:01:15.176Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_null_fields FAILED [ 94%]
[2024-11-23T20:01:15.426Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_unchanged_fields FAILED [ 94%]
[2024-11-23T20:01:15.677Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_is_not_unique_together FAILED [ 94%]
[2024-11-23T20:01:15.677Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_is_unique_together FAILED [ 94%]
[2024-11-23T20:01:15.927Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default FAILED [ 95%]
[2024-11-23T20:01:16.177Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default_and_source FAILED [ 95%]
[2024-11-23T20:01:16.427Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_repr FAILED [ 95%]
[2024-11-23T20:01:16.678Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_unique_together_is_required FAILED [ 95%]
[2024-11-23T20:01:16.928Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_updated_instance_excluded_from_unique_together FAILED [ 95%]
[2024-11-23T20:01:17.178Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_writeable_fields_with_source FAILED [ 95%]
[2024-11-23T20:01:17.428Z] tests/test_validators.py::TestUniqueConstraintValidation::test_repr FAILED [ 95%]
[2024-11-23T20:01:17.679Z] tests/test_validators.py::TestUniqueConstraintValidation::test_single_field_uniq_validators FAILED [ 95%]
[2024-11-23T20:01:17.929Z] tests/test_validators.py::TestUniqueConstraintValidation::test_unique_together_field FAILED [ 95%]
[2024-11-23T20:01:18.179Z] tests/test_validators.py::TestUniquenessForDateValidation::test_is_not_unique_for_date FAILED [ 95%]
[2024-11-23T20:01:18.429Z] tests/test_validators.py::TestUniquenessForDateValidation::test_is_unique_for_date FAILED [ 95%]
[2024-11-23T20:01:18.679Z] tests/test_validators.py::TestUniquenessForDateValidation::test_repr FAILED [ 95%]
[2024-11-23T20:01:18.930Z] tests/test_validators.py::TestUniquenessForDateValidation::test_updated_instance_excluded_from_unique_for_date FAILED [ 95%]
[2024-11-23T20:01:19.480Z] tests/test_validators.py::UniqueForMonthTests::test_not_unique_for_month FAILED [ 95%]
[2024-11-23T20:01:19.480Z] tests/test_validators.py::UniqueForMonthTests::test_unique_for_month FAILED [ 95%]
[2024-11-23T20:01:19.730Z] tests/test_validators.py::UniqueForYearTests::test_not_unique_for_year FAILED [ 95%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::UniqueForYearTests::test_unique_for_year FAILED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::TestHiddenFieldUniquenessForDateValidation::test_repr_date_field_included PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::TestHiddenFieldUniquenessForDateValidation::test_repr_date_field_not_included PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::ValidatorsTests::test_equality_operator PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_data_error PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_type_error PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_value_error PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::ValidatorsTests::test_validator_raises_error_if_not_all_fields_are_provided PASSED [ 96%]
[2024-11-23T20:01:19.980Z] tests/test_validators.py::ValidatorsTests::test_validator_raises_error_when_abstract_method_called PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestRequestVersion::test_unversioned PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestRequestVersion::test_query_param_versioning PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestRequestVersion::test_host_name_versioning PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestRequestVersion::test_accept_header_versioning PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestRequestVersion::test_url_path_versioning PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestRequestVersion::test_namespace_versioning PASSED [ 96%]
[2024-11-23T20:01:19.981Z] tests/test_versioning.py::TestURLReversing::test_reverse_host_name_versioning PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestURLReversing::test_reverse_namespace_versioning FAILED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestURLReversing::test_reverse_query_param_versioning FAILED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestURLReversing::test_reverse_unversioned FAILED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestURLReversing::test_reverse_url_path_versioning FAILED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_query_param_versioning PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_host_name_versioning PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_accept_header_versioning PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_url_path_versioning PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_namespace_versioning PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_without_default PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_with_default PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_with_default PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_without_default_but_none_allowed PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_with_default_and_none_allowed PASSED [ 97%]
[2024-11-23T20:01:20.231Z] tests/test_versioning.py::TestHyperlinkedRelatedField::test_bug_2489 PASSED [ 97%]
[2024-11-23T20:01:20.481Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_nested FAILED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v1 FAILED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v2 FAILED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_non_api_url_is_properly_reversed_regardless_of_the_version FAILED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::ClassBasedViewIntegrationTests::test_400_parse_error PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::FunctionBasedViewIntegrationTests::test_400_parse_error PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::TestCustomExceptionHandler::test_class_based_view_exception_handler PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::TestCustomExceptionHandler::test_function_based_view_exception_handler PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::TestCustomSettings::test_get_exception_handler PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::TestLoginRequiredMiddlewareCompat::test_class_based_view_opted_out PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_views.py::TestLoginRequiredMiddlewareCompat::test_function_based_view_opted_out PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_args_kwargs_request_action_map_on_self PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_head_request_against_viewset PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_actions PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_both_name_and_suffix PASSED [ 98%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_empty_actions PASSED [ 99%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_login_required_middleware_compat PASSED [ 99%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_viewset_action_attr PASSED [ 99%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_viewset_action_attr_for_extra_action PASSED [ 99%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::GetExtraActionsTests::test_attr_name_check PASSED [ 99%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::GetExtraActionsTests::test_extra_actions PASSED [ 99%]
[2024-11-23T20:01:20.481Z] tests/test_viewsets.py::GetExtraActionsTests::test_should_only_return_decorated_methods PASSED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_action_names FAILED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_detail_view FAILED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_list_view FAILED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_uninitialized_view PASSED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::ReverseActionTests::test_custom_basename PASSED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::ReverseActionTests::test_default_basename PASSED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_viewsets.py::ReverseActionTests::test_request_passing FAILED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_write_only_fields.py::WriteOnlyFieldTests::test_write_only_fields_are_not_present_on_output PASSED [ 99%]
[2024-11-23T20:01:20.732Z] tests/test_write_only_fields.py::WriteOnlyFieldTests::test_write_only_fields_are_present_on_input PASSED [100%]
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] ==================================== ERRORS ====================================
[2024-11-23T20:01:20.732Z] _ ERROR at teardown of AnonymousUserTests.test_get_raises_typeerror_when_anonymous_user_in_queryset_filter _
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaf4f230>
[2024-11-23T20:01:20.732Z] sql = 'SELECT %s AS "a" FROM "django_session" WHERE "django_session"."session_key" = %s LIMIT 1'
[2024-11-23T20:01:20.732Z] params = (1, 'u7dpbahn2bqadukens32zuuj09h2fk09')
[2024-11-23T20:01:20.732Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaf4f230>})
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.732Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.732Z] # ever set during testing).
[2024-11-23T20:01:20.732Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.732Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.732Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.732Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.732Z] if params is None:
[2024-11-23T20:01:20.732Z] # params default might be backend specific.
[2024-11-23T20:01:20.732Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.732Z] else:
[2024-11-23T20:01:20.732Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.732Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf88680>
[2024-11-23T20:01:20.732Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T20:01:20.732Z] params = (1, 'u7dpbahn2bqadukens32zuuj09h2fk09')
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.732Z] if params is None:
[2024-11-23T20:01:20.732Z] return super().execute(query)
[2024-11-23T20:01:20.732Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.732Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.732Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.732Z] > return super().execute(query, params)
[2024-11-23T20:01:20.732Z] E sqlite3.OperationalError: no such table: django_session
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_raises_typeerror_when_anonymous_user_in_queryset_filter>
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.732Z] def tearDown(self):
[2024-11-23T20:01:20.732Z] > self.client.logout()
[2024-11-23T20:01:20.732Z]
[2024-11-23T20:01:20.733Z] tests/browsable_api/test_browsable_api.py:18:
[2024-11-23T20:01:20.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.733Z] rest_framework/test.py:340: in logout
[2024-11-23T20:01:20.733Z] if self.session:
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/test/client.py:815: in session
[2024-11-23T20:01:20.733Z] session.save()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:121: in save
[2024-11-23T20:01:20.733Z] return self.create()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:70: in create
[2024-11-23T20:01:20.733Z] self._session_key = self._get_new_session_key()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/base.py:196: in _get_new_session_key
[2024-11-23T20:01:20.733Z] if not self.exists(session_key):
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:63: in exists
[2024-11-23T20:01:20.733Z] return self.model.objects.filter(session_key=session_key).exists()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1288: in exists
[2024-11-23T20:01:20.733Z] return self.query.has_results(using=self.db)
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/query.py:660: in has_results
[2024-11-23T20:01:20.733Z] return compiler.has_results()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1542: in has_results
[2024-11-23T20:01:20.733Z] return bool(self.execute_sql(SINGLE))
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T20:01:20.733Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.733Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.733Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.733Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.733Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.733Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf88680>
[2024-11-23T20:01:20.733Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T20:01:20.733Z] params = (1, 'u7dpbahn2bqadukens32zuuj09h2fk09')
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.733Z] if params is None:
[2024-11-23T20:01:20.733Z] return super().execute(query)
[2024-11-23T20:01:20.733Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.733Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.733Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.733Z] > return super().execute(query, params)
[2024-11-23T20:01:20.733Z] E django.db.utils.OperationalError: no such table: django_session
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.733Z] Traceback (most recent call last):
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.733Z] response = get_response(request)
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.733Z] response = self.process_request(request)
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.733Z] host = request.get_host()
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.733Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.733Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T20:01:20.733Z] _ ERROR at teardown of AnonymousUserTests.test_get_returns_http_forbidden_when_anonymous_user _
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb0704d0>
[2024-11-23T20:01:20.733Z] sql = 'SELECT %s AS "a" FROM "django_session" WHERE "django_session"."session_key" = %s LIMIT 1'
[2024-11-23T20:01:20.733Z] params = (1, 'dja393wn7dooljg8c2s782hmo0w80fl2')
[2024-11-23T20:01:20.733Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb0704d0>})
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.733Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.733Z] # ever set during testing).
[2024-11-23T20:01:20.733Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.733Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.733Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.733Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.733Z] if params is None:
[2024-11-23T20:01:20.733Z] # params default might be backend specific.
[2024-11-23T20:01:20.733Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.733Z] else:
[2024-11-23T20:01:20.733Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bec0>
[2024-11-23T20:01:20.733Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T20:01:20.733Z] params = (1, 'dja393wn7dooljg8c2s782hmo0w80fl2')
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.733Z] if params is None:
[2024-11-23T20:01:20.733Z] return super().execute(query)
[2024-11-23T20:01:20.733Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.733Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.733Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.733Z] > return super().execute(query, params)
[2024-11-23T20:01:20.733Z] E sqlite3.OperationalError: no such table: django_session
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_returns_http_forbidden_when_anonymous_user>
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] def tearDown(self):
[2024-11-23T20:01:20.733Z] > self.client.logout()
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] tests/browsable_api/test_browsable_api.py:18:
[2024-11-23T20:01:20.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.733Z] rest_framework/test.py:340: in logout
[2024-11-23T20:01:20.733Z] if self.session:
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/test/client.py:815: in session
[2024-11-23T20:01:20.733Z] session.save()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:121: in save
[2024-11-23T20:01:20.733Z] return self.create()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:70: in create
[2024-11-23T20:01:20.733Z] self._session_key = self._get_new_session_key()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/base.py:196: in _get_new_session_key
[2024-11-23T20:01:20.733Z] if not self.exists(session_key):
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:63: in exists
[2024-11-23T20:01:20.733Z] return self.model.objects.filter(session_key=session_key).exists()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1288: in exists
[2024-11-23T20:01:20.733Z] return self.query.has_results(using=self.db)
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/query.py:660: in has_results
[2024-11-23T20:01:20.733Z] return compiler.has_results()
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1542: in has_results
[2024-11-23T20:01:20.733Z] return bool(self.execute_sql(SINGLE))
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T20:01:20.733Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.733Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.733Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.733Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.733Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.733Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bec0>
[2024-11-23T20:01:20.733Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T20:01:20.733Z] params = (1, 'dja393wn7dooljg8c2s782hmo0w80fl2')
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.733Z] if params is None:
[2024-11-23T20:01:20.733Z] return super().execute(query)
[2024-11-23T20:01:20.733Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.733Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.733Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.733Z] > return super().execute(query, params)
[2024-11-23T20:01:20.733Z] E django.db.utils.OperationalError: no such table: django_session
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.733Z] Traceback (most recent call last):
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.733Z] response = get_response(request)
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.733Z] response = self.process_request(request)
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.733Z] host = request.get_host()
[2024-11-23T20:01:20.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.733Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.733Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T20:01:20.733Z] ____________ ERROR at setup of SearchFilterTests.test_exact_search _____________
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.733Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.733Z] params = ('z', 'abc')
[2024-11-23T20:01:20.733Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.733Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.733Z] # ever set during testing).
[2024-11-23T20:01:20.733Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.733Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.733Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.733Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.733Z] if params is None:
[2024-11-23T20:01:20.733Z] # params default might be backend specific.
[2024-11-23T20:01:20.733Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.733Z] else:
[2024-11-23T20:01:20.733Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.733Z]
[2024-11-23T20:01:20.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.734Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.734Z] params = ('z', 'abc')
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.734Z] if params is None:
[2024-11-23T20:01:20.734Z] return super().execute(query)
[2024-11-23T20:01:20.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.734Z] > return super().execute(query, params)
[2024-11-23T20:01:20.734Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] @classmethod
[2024-11-23T20:01:20.734Z] def setUpTestData(cls):
[2024-11-23T20:01:20.734Z] # Sequence of title/text is:
[2024-11-23T20:01:20.734Z] #
[2024-11-23T20:01:20.734Z] # z abc
[2024-11-23T20:01:20.734Z] # zz bcd
[2024-11-23T20:01:20.734Z] # zzz cde
[2024-11-23T20:01:20.734Z] # ...
[2024-11-23T20:01:20.734Z] for idx in range(10):
[2024-11-23T20:01:20.734Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.734Z] text = (
[2024-11-23T20:01:20.734Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.734Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.734Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.734Z] )
[2024-11-23T20:01:20.734Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.734Z] self.save_base(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.734Z] updated = self._save_table(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.734Z] results = self._do_insert(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.734Z] return manager._insert(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.734Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.734Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.734Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.734Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.734Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.734Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.734Z] params = ('z', 'abc')
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.734Z] if params is None:
[2024-11-23T20:01:20.734Z] return super().execute(query)
[2024-11-23T20:01:20.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.734Z] > return super().execute(query, params)
[2024-11-23T20:01:20.734Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.734Z] ____________ ERROR at setup of SearchFilterTests.test_regexp_search ____________
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.734Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.734Z] params = ('z', 'abc')
[2024-11-23T20:01:20.734Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.734Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.734Z] # ever set during testing).
[2024-11-23T20:01:20.734Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.734Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.734Z] if params is None:
[2024-11-23T20:01:20.734Z] # params default might be backend specific.
[2024-11-23T20:01:20.734Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.734Z] else:
[2024-11-23T20:01:20.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.734Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.734Z] params = ('z', 'abc')
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.734Z] if params is None:
[2024-11-23T20:01:20.734Z] return super().execute(query)
[2024-11-23T20:01:20.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.734Z] > return super().execute(query, params)
[2024-11-23T20:01:20.734Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] @classmethod
[2024-11-23T20:01:20.734Z] def setUpTestData(cls):
[2024-11-23T20:01:20.734Z] # Sequence of title/text is:
[2024-11-23T20:01:20.734Z] #
[2024-11-23T20:01:20.734Z] # z abc
[2024-11-23T20:01:20.734Z] # zz bcd
[2024-11-23T20:01:20.734Z] # zzz cde
[2024-11-23T20:01:20.734Z] # ...
[2024-11-23T20:01:20.734Z] for idx in range(10):
[2024-11-23T20:01:20.734Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.734Z] text = (
[2024-11-23T20:01:20.734Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.734Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.734Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.734Z] )
[2024-11-23T20:01:20.734Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.734Z] self.save_base(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.734Z] updated = self._save_table(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.734Z] results = self._do_insert(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.734Z] return manager._insert(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.734Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.734Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.734Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.734Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.734Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.734Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.734Z] params = ('z', 'abc')
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.734Z] if params is None:
[2024-11-23T20:01:20.734Z] return super().execute(query)
[2024-11-23T20:01:20.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.734Z] > return super().execute(query, params)
[2024-11-23T20:01:20.734Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.734Z] _______________ ERROR at setup of SearchFilterTests.test_search ________________
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.734Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.734Z] params = ('z', 'abc')
[2024-11-23T20:01:20.734Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.734Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.734Z] # ever set during testing).
[2024-11-23T20:01:20.734Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.734Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.734Z] if params is None:
[2024-11-23T20:01:20.734Z] # params default might be backend specific.
[2024-11-23T20:01:20.734Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.734Z] else:
[2024-11-23T20:01:20.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.734Z]
[2024-11-23T20:01:20.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.735Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.735Z] params = ('z', 'abc')
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.735Z] if params is None:
[2024-11-23T20:01:20.735Z] return super().execute(query)
[2024-11-23T20:01:20.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.735Z] > return super().execute(query, params)
[2024-11-23T20:01:20.735Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] @classmethod
[2024-11-23T20:01:20.735Z] def setUpTestData(cls):
[2024-11-23T20:01:20.735Z] # Sequence of title/text is:
[2024-11-23T20:01:20.735Z] #
[2024-11-23T20:01:20.735Z] # z abc
[2024-11-23T20:01:20.735Z] # zz bcd
[2024-11-23T20:01:20.735Z] # zzz cde
[2024-11-23T20:01:20.735Z] # ...
[2024-11-23T20:01:20.735Z] for idx in range(10):
[2024-11-23T20:01:20.735Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.735Z] text = (
[2024-11-23T20:01:20.735Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.735Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.735Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.735Z] )
[2024-11-23T20:01:20.735Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.735Z] self.save_base(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.735Z] updated = self._save_table(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.735Z] results = self._do_insert(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.735Z] return manager._insert(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.735Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.735Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.735Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.735Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.735Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.735Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.735Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.735Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.735Z] params = ('z', 'abc')
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.735Z] if params is None:
[2024-11-23T20:01:20.735Z] return super().execute(query)
[2024-11-23T20:01:20.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.735Z] > return super().execute(query, params)
[2024-11-23T20:01:20.735Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.735Z] _ ERROR at setup of SearchFilterTests.test_search_field_with_additional_transforms _
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.735Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.735Z] params = ('z', 'abc')
[2024-11-23T20:01:20.735Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.735Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.735Z] # ever set during testing).
[2024-11-23T20:01:20.735Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.735Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.735Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.735Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.735Z] if params is None:
[2024-11-23T20:01:20.735Z] # params default might be backend specific.
[2024-11-23T20:01:20.735Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.735Z] else:
[2024-11-23T20:01:20.735Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.735Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.735Z] params = ('z', 'abc')
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.735Z] if params is None:
[2024-11-23T20:01:20.735Z] return super().execute(query)
[2024-11-23T20:01:20.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.735Z] > return super().execute(query, params)
[2024-11-23T20:01:20.735Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] @classmethod
[2024-11-23T20:01:20.735Z] def setUpTestData(cls):
[2024-11-23T20:01:20.735Z] # Sequence of title/text is:
[2024-11-23T20:01:20.735Z] #
[2024-11-23T20:01:20.735Z] # z abc
[2024-11-23T20:01:20.735Z] # zz bcd
[2024-11-23T20:01:20.735Z] # zzz cde
[2024-11-23T20:01:20.735Z] # ...
[2024-11-23T20:01:20.735Z] for idx in range(10):
[2024-11-23T20:01:20.735Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.735Z] text = (
[2024-11-23T20:01:20.735Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.735Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.735Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.735Z] )
[2024-11-23T20:01:20.735Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.735Z] self.save_base(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.735Z] updated = self._save_table(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.735Z] results = self._do_insert(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.735Z] return manager._insert(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.735Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.735Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.735Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.735Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.735Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.735Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.735Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.735Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.735Z] params = ('z', 'abc')
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.735Z] if params is None:
[2024-11-23T20:01:20.735Z] return super().execute(query)
[2024-11-23T20:01:20.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.735Z] > return super().execute(query, params)
[2024-11-23T20:01:20.735Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.735Z] ___ ERROR at setup of SearchFilterTests.test_search_field_with_custom_lookup ___
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.735Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.735Z] params = ('z', 'abc')
[2024-11-23T20:01:20.735Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.735Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.735Z] # ever set during testing).
[2024-11-23T20:01:20.735Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.735Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.735Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.735Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.735Z] if params is None:
[2024-11-23T20:01:20.735Z] # params default might be backend specific.
[2024-11-23T20:01:20.735Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.735Z] else:
[2024-11-23T20:01:20.735Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.735Z]
[2024-11-23T20:01:20.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.736Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.736Z] params = ('z', 'abc')
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.736Z] if params is None:
[2024-11-23T20:01:20.736Z] return super().execute(query)
[2024-11-23T20:01:20.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.736Z] > return super().execute(query, params)
[2024-11-23T20:01:20.736Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] @classmethod
[2024-11-23T20:01:20.736Z] def setUpTestData(cls):
[2024-11-23T20:01:20.736Z] # Sequence of title/text is:
[2024-11-23T20:01:20.736Z] #
[2024-11-23T20:01:20.736Z] # z abc
[2024-11-23T20:01:20.736Z] # zz bcd
[2024-11-23T20:01:20.736Z] # zzz cde
[2024-11-23T20:01:20.736Z] # ...
[2024-11-23T20:01:20.736Z] for idx in range(10):
[2024-11-23T20:01:20.736Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.736Z] text = (
[2024-11-23T20:01:20.736Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.736Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.736Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.736Z] )
[2024-11-23T20:01:20.736Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.736Z] self.save_base(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.736Z] updated = self._save_table(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.736Z] results = self._do_insert(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.736Z] return manager._insert(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.736Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.736Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.736Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.736Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.736Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.736Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.736Z] params = ('z', 'abc')
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.736Z] if params is None:
[2024-11-23T20:01:20.736Z] return super().execute(query)
[2024-11-23T20:01:20.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.736Z] > return super().execute(query, params)
[2024-11-23T20:01:20.736Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.736Z] ______ ERROR at setup of SearchFilterTests.test_search_field_with_escapes ______
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.736Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.736Z] params = ('z', 'abc')
[2024-11-23T20:01:20.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.736Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.736Z] # ever set during testing).
[2024-11-23T20:01:20.736Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.736Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.736Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.736Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.736Z] if params is None:
[2024-11-23T20:01:20.736Z] # params default might be backend specific.
[2024-11-23T20:01:20.736Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.736Z] else:
[2024-11-23T20:01:20.736Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.736Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.736Z] params = ('z', 'abc')
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.736Z] if params is None:
[2024-11-23T20:01:20.736Z] return super().execute(query)
[2024-11-23T20:01:20.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.736Z] > return super().execute(query, params)
[2024-11-23T20:01:20.736Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] @classmethod
[2024-11-23T20:01:20.736Z] def setUpTestData(cls):
[2024-11-23T20:01:20.736Z] # Sequence of title/text is:
[2024-11-23T20:01:20.736Z] #
[2024-11-23T20:01:20.736Z] # z abc
[2024-11-23T20:01:20.736Z] # zz bcd
[2024-11-23T20:01:20.736Z] # zzz cde
[2024-11-23T20:01:20.736Z] # ...
[2024-11-23T20:01:20.736Z] for idx in range(10):
[2024-11-23T20:01:20.736Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.736Z] text = (
[2024-11-23T20:01:20.736Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.736Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.736Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.736Z] )
[2024-11-23T20:01:20.736Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.736Z] self.save_base(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.736Z] updated = self._save_table(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.736Z] results = self._do_insert(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.736Z] return manager._insert(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.736Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.736Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.736Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.736Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.736Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.736Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.736Z] params = ('z', 'abc')
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.736Z] if params is None:
[2024-11-23T20:01:20.736Z] return super().execute(query)
[2024-11-23T20:01:20.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.736Z] > return super().execute(query, params)
[2024-11-23T20:01:20.736Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.736Z] __ ERROR at setup of SearchFilterTests.test_search_field_with_multiple_words ___
[2024-11-23T20:01:20.736Z]
[2024-11-23T20:01:20.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.736Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.736Z] params = ('z', 'abc')
[2024-11-23T20:01:20.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.737Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.737Z] # ever set during testing).
[2024-11-23T20:01:20.737Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.737Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.737Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.737Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.737Z] if params is None:
[2024-11-23T20:01:20.737Z] # params default might be backend specific.
[2024-11-23T20:01:20.737Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.737Z] else:
[2024-11-23T20:01:20.737Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.737Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.737Z] params = ('z', 'abc')
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.737Z] if params is None:
[2024-11-23T20:01:20.737Z] return super().execute(query)
[2024-11-23T20:01:20.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.737Z] > return super().execute(query, params)
[2024-11-23T20:01:20.737Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] @classmethod
[2024-11-23T20:01:20.737Z] def setUpTestData(cls):
[2024-11-23T20:01:20.737Z] # Sequence of title/text is:
[2024-11-23T20:01:20.737Z] #
[2024-11-23T20:01:20.737Z] # z abc
[2024-11-23T20:01:20.737Z] # zz bcd
[2024-11-23T20:01:20.737Z] # zzz cde
[2024-11-23T20:01:20.737Z] # ...
[2024-11-23T20:01:20.737Z] for idx in range(10):
[2024-11-23T20:01:20.737Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.737Z] text = (
[2024-11-23T20:01:20.737Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.737Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.737Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.737Z] )
[2024-11-23T20:01:20.737Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.737Z] self.save_base(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.737Z] updated = self._save_table(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.737Z] results = self._do_insert(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.737Z] return manager._insert(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.737Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.737Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.737Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.737Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.737Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.737Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.737Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.737Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.737Z] params = ('z', 'abc')
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.737Z] if params is None:
[2024-11-23T20:01:20.737Z] return super().execute(query)
[2024-11-23T20:01:20.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.737Z] > return super().execute(query, params)
[2024-11-23T20:01:20.737Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.737Z] __ ERROR at setup of SearchFilterTests.test_search_field_with_null_characters __
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.737Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.737Z] params = ('z', 'abc')
[2024-11-23T20:01:20.737Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.737Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.737Z] # ever set during testing).
[2024-11-23T20:01:20.737Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.737Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.737Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.737Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.737Z] if params is None:
[2024-11-23T20:01:20.737Z] # params default might be backend specific.
[2024-11-23T20:01:20.737Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.737Z] else:
[2024-11-23T20:01:20.737Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.737Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.737Z] params = ('z', 'abc')
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.737Z] if params is None:
[2024-11-23T20:01:20.737Z] return super().execute(query)
[2024-11-23T20:01:20.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.737Z] > return super().execute(query, params)
[2024-11-23T20:01:20.737Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] @classmethod
[2024-11-23T20:01:20.737Z] def setUpTestData(cls):
[2024-11-23T20:01:20.737Z] # Sequence of title/text is:
[2024-11-23T20:01:20.737Z] #
[2024-11-23T20:01:20.737Z] # z abc
[2024-11-23T20:01:20.737Z] # zz bcd
[2024-11-23T20:01:20.737Z] # zzz cde
[2024-11-23T20:01:20.737Z] # ...
[2024-11-23T20:01:20.737Z] for idx in range(10):
[2024-11-23T20:01:20.737Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.737Z] text = (
[2024-11-23T20:01:20.737Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.737Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.737Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.737Z] )
[2024-11-23T20:01:20.737Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.737Z] self.save_base(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.737Z] updated = self._save_table(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.737Z] results = self._do_insert(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.737Z] return manager._insert(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.737Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.737Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.737Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.737Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.737Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.737Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.737Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.737Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.737Z] params = ('z', 'abc')
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.737Z] if params is None:
[2024-11-23T20:01:20.737Z] return super().execute(query)
[2024-11-23T20:01:20.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.737Z] > return super().execute(query, params)
[2024-11-23T20:01:20.737Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.737Z] ______ ERROR at setup of SearchFilterTests.test_search_field_with_quotes _______
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.737Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.737Z] params = ('z', 'abc')
[2024-11-23T20:01:20.737Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.737Z]
[2024-11-23T20:01:20.737Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.737Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.737Z] # ever set during testing).
[2024-11-23T20:01:20.737Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.738Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] # params default might be backend specific.
[2024-11-23T20:01:20.738Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.738Z] else:
[2024-11-23T20:01:20.738Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.738Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.738Z] params = ('z', 'abc')
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] return super().execute(query)
[2024-11-23T20:01:20.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.738Z] > return super().execute(query, params)
[2024-11-23T20:01:20.738Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] @classmethod
[2024-11-23T20:01:20.738Z] def setUpTestData(cls):
[2024-11-23T20:01:20.738Z] # Sequence of title/text is:
[2024-11-23T20:01:20.738Z] #
[2024-11-23T20:01:20.738Z] # z abc
[2024-11-23T20:01:20.738Z] # zz bcd
[2024-11-23T20:01:20.738Z] # zzz cde
[2024-11-23T20:01:20.738Z] # ...
[2024-11-23T20:01:20.738Z] for idx in range(10):
[2024-11-23T20:01:20.738Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.738Z] text = (
[2024-11-23T20:01:20.738Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.738Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.738Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.738Z] )
[2024-11-23T20:01:20.738Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.738Z] self.save_base(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.738Z] updated = self._save_table(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.738Z] results = self._do_insert(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.738Z] return manager._insert(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.738Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.738Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.738Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.738Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.738Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.738Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.738Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.738Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.738Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.738Z] params = ('z', 'abc')
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] return super().execute(query)
[2024-11-23T20:01:20.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.738Z] > return super().execute(query, params)
[2024-11-23T20:01:20.738Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.738Z] _ ERROR at setup of SearchFilterTests.test_search_returns_same_queryset_if_no_search_fields_or_terms_provided _
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.738Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.738Z] params = ('z', 'abc')
[2024-11-23T20:01:20.738Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.738Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.738Z] # ever set during testing).
[2024-11-23T20:01:20.738Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.738Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] # params default might be backend specific.
[2024-11-23T20:01:20.738Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.738Z] else:
[2024-11-23T20:01:20.738Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.738Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.738Z] params = ('z', 'abc')
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] return super().execute(query)
[2024-11-23T20:01:20.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.738Z] > return super().execute(query, params)
[2024-11-23T20:01:20.738Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] @classmethod
[2024-11-23T20:01:20.738Z] def setUpTestData(cls):
[2024-11-23T20:01:20.738Z] # Sequence of title/text is:
[2024-11-23T20:01:20.738Z] #
[2024-11-23T20:01:20.738Z] # z abc
[2024-11-23T20:01:20.738Z] # zz bcd
[2024-11-23T20:01:20.738Z] # zzz cde
[2024-11-23T20:01:20.738Z] # ...
[2024-11-23T20:01:20.738Z] for idx in range(10):
[2024-11-23T20:01:20.738Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.738Z] text = (
[2024-11-23T20:01:20.738Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.738Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.738Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.738Z] )
[2024-11-23T20:01:20.738Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.738Z] self.save_base(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.738Z] updated = self._save_table(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.738Z] results = self._do_insert(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.738Z] return manager._insert(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.738Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.738Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.738Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.738Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.738Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.738Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.738Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.738Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.738Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.738Z] params = ('z', 'abc')
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] return super().execute(query)
[2024-11-23T20:01:20.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.738Z] > return super().execute(query, params)
[2024-11-23T20:01:20.738Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.738Z] _____ ERROR at setup of SearchFilterTests.test_search_with_filter_subclass _____
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.738Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.738Z] params = ('z', 'abc')
[2024-11-23T20:01:20.738Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.738Z]
[2024-11-23T20:01:20.738Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.738Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.738Z] # ever set during testing).
[2024-11-23T20:01:20.738Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.738Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.738Z] if params is None:
[2024-11-23T20:01:20.738Z] # params default might be backend specific.
[2024-11-23T20:01:20.739Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.739Z] else:
[2024-11-23T20:01:20.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.739Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.739Z] params = ('z', 'abc')
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.739Z] if params is None:
[2024-11-23T20:01:20.739Z] return super().execute(query)
[2024-11-23T20:01:20.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.739Z] > return super().execute(query, params)
[2024-11-23T20:01:20.739Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] @classmethod
[2024-11-23T20:01:20.739Z] def setUpTestData(cls):
[2024-11-23T20:01:20.739Z] # Sequence of title/text is:
[2024-11-23T20:01:20.739Z] #
[2024-11-23T20:01:20.739Z] # z abc
[2024-11-23T20:01:20.739Z] # zz bcd
[2024-11-23T20:01:20.739Z] # zzz cde
[2024-11-23T20:01:20.739Z] # ...
[2024-11-23T20:01:20.739Z] for idx in range(10):
[2024-11-23T20:01:20.739Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.739Z] text = (
[2024-11-23T20:01:20.739Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.739Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.739Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.739Z] )
[2024-11-23T20:01:20.739Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.739Z] self.save_base(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.739Z] updated = self._save_table(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.739Z] results = self._do_insert(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.739Z] return manager._insert(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.739Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.739Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.739Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.739Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.739Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.739Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.739Z] params = ('z', 'abc')
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.739Z] if params is None:
[2024-11-23T20:01:20.739Z] return super().execute(query)
[2024-11-23T20:01:20.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.739Z] > return super().execute(query, params)
[2024-11-23T20:01:20.739Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.739Z] _ ERROR at setup of SearchFilterTests.test_search_with_nonstandard_search_param _
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.739Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.739Z] params = ('z', 'abc')
[2024-11-23T20:01:20.739Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.739Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.739Z] # ever set during testing).
[2024-11-23T20:01:20.739Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.739Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.739Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.739Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.739Z] if params is None:
[2024-11-23T20:01:20.739Z] # params default might be backend specific.
[2024-11-23T20:01:20.739Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.739Z] else:
[2024-11-23T20:01:20.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.739Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.739Z] params = ('z', 'abc')
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.739Z] if params is None:
[2024-11-23T20:01:20.739Z] return super().execute(query)
[2024-11-23T20:01:20.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.739Z] > return super().execute(query, params)
[2024-11-23T20:01:20.739Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] @classmethod
[2024-11-23T20:01:20.739Z] def setUpTestData(cls):
[2024-11-23T20:01:20.739Z] # Sequence of title/text is:
[2024-11-23T20:01:20.739Z] #
[2024-11-23T20:01:20.739Z] # z abc
[2024-11-23T20:01:20.739Z] # zz bcd
[2024-11-23T20:01:20.739Z] # zzz cde
[2024-11-23T20:01:20.739Z] # ...
[2024-11-23T20:01:20.739Z] for idx in range(10):
[2024-11-23T20:01:20.739Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.739Z] text = (
[2024-11-23T20:01:20.739Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.739Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.739Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.739Z] )
[2024-11-23T20:01:20.739Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.739Z] self.save_base(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.739Z] updated = self._save_table(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.739Z] results = self._do_insert(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.739Z] return manager._insert(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.739Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.739Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.739Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.739Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.739Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.739Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.739Z] params = ('z', 'abc')
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.739Z] if params is None:
[2024-11-23T20:01:20.739Z] return super().execute(query)
[2024-11-23T20:01:20.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.739Z] > return super().execute(query, params)
[2024-11-23T20:01:20.739Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.739Z] __________ ERROR at setup of SearchFilterTests.test_startswith_search __________
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>
[2024-11-23T20:01:20.739Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.739Z] params = ('z', 'abc')
[2024-11-23T20:01:20.739Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead05310>})
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.739Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.739Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.739Z] # ever set during testing).
[2024-11-23T20:01:20.739Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.739Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.739Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.739Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.739Z] if params is None:
[2024-11-23T20:01:20.739Z] # params default might be backend specific.
[2024-11-23T20:01:20.739Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.739Z] else:
[2024-11-23T20:01:20.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.739Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.740Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.740Z] params = ('z', 'abc')
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] return super().execute(query)
[2024-11-23T20:01:20.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.740Z] > return super().execute(query, params)
[2024-11-23T20:01:20.740Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] @classmethod
[2024-11-23T20:01:20.740Z] def setUpTestData(cls):
[2024-11-23T20:01:20.740Z] # Sequence of title/text is:
[2024-11-23T20:01:20.740Z] #
[2024-11-23T20:01:20.740Z] # z abc
[2024-11-23T20:01:20.740Z] # zz bcd
[2024-11-23T20:01:20.740Z] # zzz cde
[2024-11-23T20:01:20.740Z] # ...
[2024-11-23T20:01:20.740Z] for idx in range(10):
[2024-11-23T20:01:20.740Z] title = 'z' * (idx + 1)
[2024-11-23T20:01:20.740Z] text = (
[2024-11-23T20:01:20.740Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.740Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.740Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.740Z] )
[2024-11-23T20:01:20.740Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] tests/test_filters.py:88:
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.740Z] self.save_base(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.740Z] updated = self._save_table(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.740Z] results = self._do_insert(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.740Z] return manager._insert(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.740Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.740Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.740Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.740Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.740Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.740Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.740Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63d10>
[2024-11-23T20:01:20.740Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.740Z] params = ('z', 'abc')
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] return super().execute(query)
[2024-11-23T20:01:20.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.740Z] > return super().execute(query, params)
[2024-11-23T20:01:20.740Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.740Z] __ ERROR at setup of SearchFilterToManyTests.test_multiple_filter_conditions ___
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead58a70>
[2024-11-23T20:01:20.740Z] sql = 'INSERT INTO "tests_blog" ("name") VALUES (%s) RETURNING "tests_blog"."id"'
[2024-11-23T20:01:20.740Z] params = ('Blog 1',)
[2024-11-23T20:01:20.740Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead58a70>})
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.740Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.740Z] # ever set during testing).
[2024-11-23T20:01:20.740Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.740Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.740Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.740Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] # params default might be backend specific.
[2024-11-23T20:01:20.740Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.740Z] else:
[2024-11-23T20:01:20.740Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead985f0>
[2024-11-23T20:01:20.740Z] query = 'INSERT INTO "tests_blog" ("name") VALUES (?) RETURNING "tests_blog"."id"'
[2024-11-23T20:01:20.740Z] params = ('Blog 1',)
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] return super().execute(query)
[2024-11-23T20:01:20.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.740Z] > return super().execute(query, params)
[2024-11-23T20:01:20.740Z] E sqlite3.OperationalError: no such table: tests_blog
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] cls = <class 'tests.test_filters.SearchFilterToManyTests'>
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] @classmethod
[2024-11-23T20:01:20.740Z] def setUpTestData(cls):
[2024-11-23T20:01:20.740Z] > b1 = Blog.objects.create(name='Blog 1')
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] tests/test_filters.py:438:
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.740Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.740Z] self.save_base(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.740Z] updated = self._save_table(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.740Z] results = self._do_insert(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.740Z] return manager._insert(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.740Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.740Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.740Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.740Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.740Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.740Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.740Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead985f0>
[2024-11-23T20:01:20.740Z] query = 'INSERT INTO "tests_blog" ("name") VALUES (?) RETURNING "tests_blog"."id"'
[2024-11-23T20:01:20.740Z] params = ('Blog 1',)
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] return super().execute(query)
[2024-11-23T20:01:20.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.740Z] > return super().execute(query, params)
[2024-11-23T20:01:20.740Z] E django.db.utils.OperationalError: no such table: tests_blog
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.740Z] _ ERROR at setup of SearchFilterAnnotatedFieldTests.test_must_call_distinct_subsequent_m2m_fields _
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead591f0>
[2024-11-23T20:01:20.740Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.740Z] params = ('abc', 'def')
[2024-11-23T20:01:20.740Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead591f0>})
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.740Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.740Z] # ever set during testing).
[2024-11-23T20:01:20.740Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.740Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.740Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.740Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] # params default might be backend specific.
[2024-11-23T20:01:20.740Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.740Z] else:
[2024-11-23T20:01:20.740Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead996d0>
[2024-11-23T20:01:20.740Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.740Z] params = ('abc', 'def')
[2024-11-23T20:01:20.740Z]
[2024-11-23T20:01:20.740Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.740Z] if params is None:
[2024-11-23T20:01:20.740Z] return super().execute(query)
[2024-11-23T20:01:20.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.741Z] > return super().execute(query, params)
[2024-11-23T20:01:20.741Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] cls = <class 'tests.test_filters.SearchFilterAnnotatedFieldTests'>
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] @classmethod
[2024-11-23T20:01:20.741Z] def setUpTestData(cls):
[2024-11-23T20:01:20.741Z] > SearchFilterModel.objects.create(title='abc', text='def')
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] tests/test_filters.py:473:
[2024-11-23T20:01:20.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.741Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.741Z] self.save_base(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.741Z] updated = self._save_table(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.741Z] results = self._do_insert(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.741Z] return manager._insert(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.741Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.741Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.741Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.741Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.741Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead996d0>
[2024-11-23T20:01:20.741Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.741Z] params = ('abc', 'def')
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.741Z] if params is None:
[2024-11-23T20:01:20.741Z] return super().execute(query)
[2024-11-23T20:01:20.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.741Z] > return super().execute(query, params)
[2024-11-23T20:01:20.741Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.741Z] _ ERROR at setup of SearchFilterAnnotatedFieldTests.test_search_in_annotated_field _
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead591f0>
[2024-11-23T20:01:20.741Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.741Z] params = ('abc', 'def')
[2024-11-23T20:01:20.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead591f0>})
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.741Z] # ever set during testing).
[2024-11-23T20:01:20.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.741Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.741Z] if params is None:
[2024-11-23T20:01:20.741Z] # params default might be backend specific.
[2024-11-23T20:01:20.741Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.741Z] else:
[2024-11-23T20:01:20.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead996d0>
[2024-11-23T20:01:20.741Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.741Z] params = ('abc', 'def')
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.741Z] if params is None:
[2024-11-23T20:01:20.741Z] return super().execute(query)
[2024-11-23T20:01:20.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.741Z] > return super().execute(query, params)
[2024-11-23T20:01:20.741Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] cls = <class 'tests.test_filters.SearchFilterAnnotatedFieldTests'>
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] @classmethod
[2024-11-23T20:01:20.741Z] def setUpTestData(cls):
[2024-11-23T20:01:20.741Z] > SearchFilterModel.objects.create(title='abc', text='def')
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] tests/test_filters.py:473:
[2024-11-23T20:01:20.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.741Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.741Z] self.save_base(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.741Z] updated = self._save_table(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.741Z] results = self._do_insert(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.741Z] return manager._insert(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.741Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.741Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.741Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.741Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.741Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead996d0>
[2024-11-23T20:01:20.741Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T20:01:20.741Z] params = ('abc', 'def')
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.741Z] if params is None:
[2024-11-23T20:01:20.741Z] return super().execute(query)
[2024-11-23T20:01:20.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.741Z] > return super().execute(query, params)
[2024-11-23T20:01:20.741Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.741Z] =================================== FAILURES ===================================
[2024-11-23T20:01:20.741Z] _______________ BasicAuthTests.test_decoding_of_utf8_credentials _______________
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb7cac10>
[2024-11-23T20:01:20.741Z] 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-23T20:01:20.741Z] params = ('md5$RwaDw7DEFZ7h6hWUwq4yMw$8bbae575eca736f6086a51b3cebb0bb1', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb7cac10>})
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.741Z] # ever set during testing).
[2024-11-23T20:01:20.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.741Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.741Z] if params is None:
[2024-11-23T20:01:20.741Z] # params default might be backend specific.
[2024-11-23T20:01:20.741Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.741Z] else:
[2024-11-23T20:01:20.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.741Z]
[2024-11-23T20:01:20.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a330>
[2024-11-23T20:01:20.742Z] 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-23T20:01:20.742Z] params = ('md5$RwaDw7DEFZ7h6hWUwq4yMw$8bbae575eca736f6086a51b3cebb0bb1', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.742Z] if params is None:
[2024-11-23T20:01:20.742Z] return super().execute(query)
[2024-11-23T20:01:20.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.742Z] > return super().execute(query, params)
[2024-11-23T20:01:20.742Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_decoding_of_utf8_credentials>
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def setUp(self):
[2024-11-23T20:01:20.742Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.742Z] self.username = 'john'
[2024-11-23T20:01:20.742Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.742Z] self.password = 'password'
[2024-11-23T20:01:20.742Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.742Z] self.username, self.email, self.password
[2024-11-23T20:01:20.742Z] )
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.742Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.742Z] user.save(using=self._db)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.742Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.742Z] self.save_base(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.742Z] updated = self._save_table(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.742Z] results = self._do_insert(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.742Z] return manager._insert(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.742Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.742Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.742Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.742Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.742Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a330>
[2024-11-23T20:01:20.742Z] 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-23T20:01:20.742Z] params = ('md5$RwaDw7DEFZ7h6hWUwq4yMw$8bbae575eca736f6086a51b3cebb0bb1', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.742Z] if params is None:
[2024-11-23T20:01:20.742Z] return super().execute(query)
[2024-11-23T20:01:20.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.742Z] > return super().execute(query, params)
[2024-11-23T20:01:20.742Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.742Z] ___________ BasicAuthTests.test_fail_post_if_credentials_are_missing ___________
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec356140>
[2024-11-23T20:01:20.742Z] 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-23T20:01:20.742Z] params = ('md5$5SZ9vIKs9vpMetRyReGR30$5cbb8ec169748cd9f912d4dd905e0e93', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.742Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec356140>})
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.742Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.742Z] # ever set during testing).
[2024-11-23T20:01:20.742Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.742Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.742Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.742Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.742Z] if params is None:
[2024-11-23T20:01:20.742Z] # params default might be backend specific.
[2024-11-23T20:01:20.742Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.742Z] else:
[2024-11-23T20:01:20.742Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a2a0>
[2024-11-23T20:01:20.742Z] 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-23T20:01:20.742Z] params = ('md5$5SZ9vIKs9vpMetRyReGR30$5cbb8ec169748cd9f912d4dd905e0e93', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.742Z] if params is None:
[2024-11-23T20:01:20.742Z] return super().execute(query)
[2024-11-23T20:01:20.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.742Z] > return super().execute(query, params)
[2024-11-23T20:01:20.742Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_fail_post_if_credentials_are_missing>
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def setUp(self):
[2024-11-23T20:01:20.742Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.742Z] self.username = 'john'
[2024-11-23T20:01:20.742Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.742Z] self.password = 'password'
[2024-11-23T20:01:20.742Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.742Z] self.username, self.email, self.password
[2024-11-23T20:01:20.742Z] )
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.742Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.742Z] user.save(using=self._db)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.742Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.742Z] self.save_base(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.742Z] updated = self._save_table(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.742Z] results = self._do_insert(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.742Z] return manager._insert(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.742Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.742Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.742Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.742Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.742Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a2a0>
[2024-11-23T20:01:20.742Z] 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-23T20:01:20.742Z] params = ('md5$5SZ9vIKs9vpMetRyReGR30$5cbb8ec169748cd9f912d4dd905e0e93', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.742Z] if params is None:
[2024-11-23T20:01:20.742Z] return super().execute(query)
[2024-11-23T20:01:20.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.742Z] > return super().execute(query, params)
[2024-11-23T20:01:20.742Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.742Z] _________ BasicAuthTests.test_fail_post_if_credentials_contain_spaces __________
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec217c50>
[2024-11-23T20:01:20.742Z] 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-23T20:01:20.742Z] params = ('md5$1RbOMemJdYOkFqZ6dn6LA5$2215a3d490184c5b0635ec247735d950', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.742Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec217c50>})
[2024-11-23T20:01:20.742Z]
[2024-11-23T20:01:20.742Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.743Z] # ever set during testing).
[2024-11-23T20:01:20.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.743Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.743Z] if params is None:
[2024-11-23T20:01:20.743Z] # params default might be backend specific.
[2024-11-23T20:01:20.743Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.743Z] else:
[2024-11-23T20:01:20.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a3c0>
[2024-11-23T20:01:20.743Z] 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-23T20:01:20.743Z] params = ('md5$1RbOMemJdYOkFqZ6dn6LA5$2215a3d490184c5b0635ec247735d950', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.743Z] if params is None:
[2024-11-23T20:01:20.743Z] return super().execute(query)
[2024-11-23T20:01:20.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.743Z] > return super().execute(query, params)
[2024-11-23T20:01:20.743Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_fail_post_if_credentials_contain_spaces>
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def setUp(self):
[2024-11-23T20:01:20.743Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.743Z] self.username = 'john'
[2024-11-23T20:01:20.743Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.743Z] self.password = 'password'
[2024-11-23T20:01:20.743Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.743Z] self.username, self.email, self.password
[2024-11-23T20:01:20.743Z] )
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.743Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.743Z] user.save(using=self._db)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.743Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.743Z] self.save_base(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.743Z] updated = self._save_table(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.743Z] results = self._do_insert(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.743Z] return manager._insert(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.743Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.743Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.743Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.743Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.743Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a3c0>
[2024-11-23T20:01:20.743Z] 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-23T20:01:20.743Z] params = ('md5$1RbOMemJdYOkFqZ6dn6LA5$2215a3d490184c5b0635ec247735d950', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.743Z] if params is None:
[2024-11-23T20:01:20.743Z] return super().execute(query)
[2024-11-23T20:01:20.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.743Z] > return super().execute(query, params)
[2024-11-23T20:01:20.743Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.743Z] _______________ BasicAuthTests.test_post_form_failing_basic_auth _______________
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb76fee0>
[2024-11-23T20:01:20.743Z] 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-23T20:01:20.743Z] params = ('md5$9RwRXUNdjB9dt9foJB3U47$dc63dbc5c4231f8c9eae4ac3ed2817b7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.743Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb76fee0>})
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.743Z] # ever set during testing).
[2024-11-23T20:01:20.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.743Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.743Z] if params is None:
[2024-11-23T20:01:20.743Z] # params default might be backend specific.
[2024-11-23T20:01:20.743Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.743Z] else:
[2024-11-23T20:01:20.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d28d0>
[2024-11-23T20:01:20.743Z] 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-23T20:01:20.743Z] params = ('md5$9RwRXUNdjB9dt9foJB3U47$dc63dbc5c4231f8c9eae4ac3ed2817b7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.743Z] if params is None:
[2024-11-23T20:01:20.743Z] return super().execute(query)
[2024-11-23T20:01:20.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.743Z] > return super().execute(query, params)
[2024-11-23T20:01:20.743Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_form_failing_basic_auth>
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def setUp(self):
[2024-11-23T20:01:20.743Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.743Z] self.username = 'john'
[2024-11-23T20:01:20.743Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.743Z] self.password = 'password'
[2024-11-23T20:01:20.743Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.743Z] self.username, self.email, self.password
[2024-11-23T20:01:20.743Z] )
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.743Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.743Z] user.save(using=self._db)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.743Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.743Z] self.save_base(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.743Z] updated = self._save_table(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.743Z] results = self._do_insert(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.743Z] return manager._insert(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.743Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.743Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.743Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.743Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.743Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d28d0>
[2024-11-23T20:01:20.743Z] 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-23T20:01:20.743Z] params = ('md5$9RwRXUNdjB9dt9foJB3U47$dc63dbc5c4231f8c9eae4ac3ed2817b7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.743Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.743Z] if params is None:
[2024-11-23T20:01:20.743Z] return super().execute(query)
[2024-11-23T20:01:20.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.743Z] > return super().execute(query, params)
[2024-11-23T20:01:20.743Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.743Z]
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.744Z] _______________ BasicAuthTests.test_post_form_passing_basic_auth _______________
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec333280>
[2024-11-23T20:01:20.744Z] 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-23T20:01:20.744Z] params = ('md5$Q6S73Ys1KNscDxxzrqSH3a$7e84633b8f6943c9d22f47d1bd87eaec', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec333280>})
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.744Z] # ever set during testing).
[2024-11-23T20:01:20.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.744Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.744Z] if params is None:
[2024-11-23T20:01:20.744Z] # params default might be backend specific.
[2024-11-23T20:01:20.744Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.744Z] else:
[2024-11-23T20:01:20.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0b90>
[2024-11-23T20:01:20.744Z] 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-23T20:01:20.744Z] params = ('md5$Q6S73Ys1KNscDxxzrqSH3a$7e84633b8f6943c9d22f47d1bd87eaec', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.744Z] if params is None:
[2024-11-23T20:01:20.744Z] return super().execute(query)
[2024-11-23T20:01:20.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.744Z] > return super().execute(query, params)
[2024-11-23T20:01:20.744Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_form_passing_basic_auth>
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def setUp(self):
[2024-11-23T20:01:20.744Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.744Z] self.username = 'john'
[2024-11-23T20:01:20.744Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.744Z] self.password = 'password'
[2024-11-23T20:01:20.744Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.744Z] self.username, self.email, self.password
[2024-11-23T20:01:20.744Z] )
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.744Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.744Z] user.save(using=self._db)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.744Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.744Z] self.save_base(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.744Z] updated = self._save_table(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.744Z] results = self._do_insert(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.744Z] return manager._insert(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.744Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.744Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.744Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.744Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.744Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.744Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.744Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0b90>
[2024-11-23T20:01:20.744Z] 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-23T20:01:20.744Z] params = ('md5$Q6S73Ys1KNscDxxzrqSH3a$7e84633b8f6943c9d22f47d1bd87eaec', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.744Z] if params is None:
[2024-11-23T20:01:20.744Z] return super().execute(query)
[2024-11-23T20:01:20.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.744Z] > return super().execute(query, params)
[2024-11-23T20:01:20.744Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.744Z] _______________ BasicAuthTests.test_post_json_failing_basic_auth _______________
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec2bf150>
[2024-11-23T20:01:20.744Z] 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-23T20:01:20.744Z] params = ('md5$OPxIaaPIzQiK9X9RUKtP7n$d2653d88b897469037724f9ba283f9e5', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec2bf150>})
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.744Z] # ever set during testing).
[2024-11-23T20:01:20.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.744Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.744Z] if params is None:
[2024-11-23T20:01:20.744Z] # params default might be backend specific.
[2024-11-23T20:01:20.744Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.744Z] else:
[2024-11-23T20:01:20.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3770>
[2024-11-23T20:01:20.744Z] 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-23T20:01:20.744Z] params = ('md5$OPxIaaPIzQiK9X9RUKtP7n$d2653d88b897469037724f9ba283f9e5', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.744Z] if params is None:
[2024-11-23T20:01:20.744Z] return super().execute(query)
[2024-11-23T20:01:20.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.744Z] > return super().execute(query, params)
[2024-11-23T20:01:20.744Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_json_failing_basic_auth>
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] def setUp(self):
[2024-11-23T20:01:20.744Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.744Z] self.username = 'john'
[2024-11-23T20:01:20.744Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.744Z] self.password = 'password'
[2024-11-23T20:01:20.744Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.744Z] self.username, self.email, self.password
[2024-11-23T20:01:20.744Z] )
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.744Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.744Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.744Z] user.save(using=self._db)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.744Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.744Z] self.save_base(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.744Z] updated = self._save_table(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.744Z] results = self._do_insert(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.744Z] return manager._insert(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.744Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.744Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.744Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.744Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.744Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.744Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.744Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.744Z]
[2024-11-23T20:01:20.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3770>
[2024-11-23T20:01:20.745Z] 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-23T20:01:20.745Z] params = ('md5$OPxIaaPIzQiK9X9RUKtP7n$d2653d88b897469037724f9ba283f9e5', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.745Z] if params is None:
[2024-11-23T20:01:20.745Z] return super().execute(query)
[2024-11-23T20:01:20.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.745Z] > return super().execute(query, params)
[2024-11-23T20:01:20.745Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.745Z] _______________ BasicAuthTests.test_post_json_passing_basic_auth _______________
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec25d790>
[2024-11-23T20:01:20.745Z] 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-23T20:01:20.745Z] params = ('md5$XzFRn5PGrrIXYMAqdoNHm0$93d4058c99718346d5bb1eee5931c4fe', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.745Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec25d790>})
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.745Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.745Z] # ever set during testing).
[2024-11-23T20:01:20.745Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.745Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.745Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.745Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.745Z] if params is None:
[2024-11-23T20:01:20.745Z] # params default might be backend specific.
[2024-11-23T20:01:20.745Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.745Z] else:
[2024-11-23T20:01:20.745Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d10a0>
[2024-11-23T20:01:20.745Z] 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-23T20:01:20.745Z] params = ('md5$XzFRn5PGrrIXYMAqdoNHm0$93d4058c99718346d5bb1eee5931c4fe', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.745Z] if params is None:
[2024-11-23T20:01:20.745Z] return super().execute(query)
[2024-11-23T20:01:20.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.745Z] > return super().execute(query, params)
[2024-11-23T20:01:20.745Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_json_passing_basic_auth>
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def setUp(self):
[2024-11-23T20:01:20.745Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.745Z] self.username = 'john'
[2024-11-23T20:01:20.745Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.745Z] self.password = 'password'
[2024-11-23T20:01:20.745Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.745Z] self.username, self.email, self.password
[2024-11-23T20:01:20.745Z] )
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.745Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.745Z] user.save(using=self._db)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.745Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.745Z] self.save_base(
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.745Z] updated = self._save_table(
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.745Z] results = self._do_insert(
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.745Z] return manager._insert(
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.745Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.745Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.745Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.745Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.745Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.745Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.745Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d10a0>
[2024-11-23T20:01:20.745Z] 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-23T20:01:20.745Z] params = ('md5$XzFRn5PGrrIXYMAqdoNHm0$93d4058c99718346d5bb1eee5931c4fe', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.745Z] if params is None:
[2024-11-23T20:01:20.745Z] return super().execute(query)
[2024-11-23T20:01:20.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.745Z] > return super().execute(query, params)
[2024-11-23T20:01:20.745Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.745Z] ______ BasicAuthTests.test_post_json_without_password_failing_basic_auth _______
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec25ef30>
[2024-11-23T20:01:20.745Z] 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-23T20:01:20.745Z] params = ('md5$kXZJCW9yaYi3po9eFFFWJu$d8d2d4964b6f8b3a13d1578474542abc', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.745Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec25ef30>})
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.745Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.745Z] # ever set during testing).
[2024-11-23T20:01:20.745Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.745Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.745Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.745Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.745Z] if params is None:
[2024-11-23T20:01:20.745Z] # params default might be backend specific.
[2024-11-23T20:01:20.745Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.745Z] else:
[2024-11-23T20:01:20.745Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0c20>
[2024-11-23T20:01:20.745Z] 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-23T20:01:20.745Z] params = ('md5$kXZJCW9yaYi3po9eFFFWJu$d8d2d4964b6f8b3a13d1578474542abc', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.745Z] if params is None:
[2024-11-23T20:01:20.745Z] return super().execute(query)
[2024-11-23T20:01:20.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.745Z] > return super().execute(query, params)
[2024-11-23T20:01:20.745Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_json_without_password_failing_basic_auth>
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] def setUp(self):
[2024-11-23T20:01:20.745Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.745Z] self.username = 'john'
[2024-11-23T20:01:20.745Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.745Z] self.password = 'password'
[2024-11-23T20:01:20.745Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.745Z] self.username, self.email, self.password
[2024-11-23T20:01:20.745Z] )
[2024-11-23T20:01:20.745Z]
[2024-11-23T20:01:20.745Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.745Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.745Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.745Z] user.save(using=self._db)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.746Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.746Z] self.save_base(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.746Z] updated = self._save_table(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.746Z] results = self._do_insert(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.746Z] return manager._insert(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.746Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.746Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.746Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.746Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.746Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.746Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.746Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0c20>
[2024-11-23T20:01:20.746Z] 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-23T20:01:20.746Z] params = ('md5$kXZJCW9yaYi3po9eFFFWJu$d8d2d4964b6f8b3a13d1578474542abc', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.746Z] if params is None:
[2024-11-23T20:01:20.746Z] return super().execute(query)
[2024-11-23T20:01:20.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.746Z] > return super().execute(query, params)
[2024-11-23T20:01:20.746Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.746Z] ______ BasicAuthTests.test_regression_handle_bad_base64_basic_auth_header ______
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec262930>
[2024-11-23T20:01:20.746Z] 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-23T20:01:20.746Z] params = ('md5$UA1am5RE6uWu3lP472SpWO$d229591cc6616e843b336c8b0d5c749f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec262930>})
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.746Z] # ever set during testing).
[2024-11-23T20:01:20.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.746Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.746Z] if params is None:
[2024-11-23T20:01:20.746Z] # params default might be backend specific.
[2024-11-23T20:01:20.746Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.746Z] else:
[2024-11-23T20:01:20.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.746Z] 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-23T20:01:20.746Z] params = ('md5$UA1am5RE6uWu3lP472SpWO$d229591cc6616e843b336c8b0d5c749f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.746Z] if params is None:
[2024-11-23T20:01:20.746Z] return super().execute(query)
[2024-11-23T20:01:20.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.746Z] > return super().execute(query, params)
[2024-11-23T20:01:20.746Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_regression_handle_bad_base64_basic_auth_header>
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def setUp(self):
[2024-11-23T20:01:20.746Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.746Z] self.username = 'john'
[2024-11-23T20:01:20.746Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.746Z] self.password = 'password'
[2024-11-23T20:01:20.746Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.746Z] self.username, self.email, self.password
[2024-11-23T20:01:20.746Z] )
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] tests/authentication/test_authentication.py:89:
[2024-11-23T20:01:20.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.746Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.746Z] user.save(using=self._db)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.746Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.746Z] self.save_base(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.746Z] updated = self._save_table(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.746Z] results = self._do_insert(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.746Z] return manager._insert(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.746Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.746Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.746Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.746Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.746Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.746Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.746Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.746Z] 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-23T20:01:20.746Z] params = ('md5$UA1am5RE6uWu3lP472SpWO$d229591cc6616e843b336c8b0d5c749f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.746Z] if params is None:
[2024-11-23T20:01:20.746Z] return super().execute(query)
[2024-11-23T20:01:20.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.746Z] > return super().execute(query, params)
[2024-11-23T20:01:20.746Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.746Z] _______________ SessionAuthTests.test_login_view_renders_on_get ________________
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec261430>
[2024-11-23T20:01:20.746Z] 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-23T20:01:20.746Z] params = ('md5$jP9Cb1ywjif7OJ61u8dJXU$542103e2a5623abeebda65983f413248', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec261430>})
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.746Z] # ever set during testing).
[2024-11-23T20:01:20.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.746Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.746Z] if params is None:
[2024-11-23T20:01:20.746Z] # params default might be backend specific.
[2024-11-23T20:01:20.746Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.746Z] else:
[2024-11-23T20:01:20.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec223bf0>
[2024-11-23T20:01:20.746Z] 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-23T20:01:20.746Z] params = ('md5$jP9Cb1ywjif7OJ61u8dJXU$542103e2a5623abeebda65983f413248', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.746Z] if params is None:
[2024-11-23T20:01:20.746Z] return super().execute(query)
[2024-11-23T20:01:20.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.746Z] > return super().execute(query, params)
[2024-11-23T20:01:20.746Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_login_view_renders_on_get>
[2024-11-23T20:01:20.746Z]
[2024-11-23T20:01:20.746Z] def setUp(self):
[2024-11-23T20:01:20.747Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.747Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T20:01:20.747Z] self.username = 'john'
[2024-11-23T20:01:20.747Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.747Z] self.password = 'password'
[2024-11-23T20:01:20.747Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.747Z] self.username, self.email, self.password
[2024-11-23T20:01:20.747Z] )
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] tests/authentication/test_authentication.py:207:
[2024-11-23T20:01:20.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.747Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.747Z] user.save(using=self._db)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.747Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.747Z] self.save_base(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.747Z] updated = self._save_table(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.747Z] results = self._do_insert(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.747Z] return manager._insert(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.747Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.747Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.747Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.747Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.747Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec223bf0>
[2024-11-23T20:01:20.747Z] 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-23T20:01:20.747Z] params = ('md5$jP9Cb1ywjif7OJ61u8dJXU$542103e2a5623abeebda65983f413248', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.747Z] if params is None:
[2024-11-23T20:01:20.747Z] return super().execute(query)
[2024-11-23T20:01:20.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.747Z] > return super().execute(query, params)
[2024-11-23T20:01:20.747Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.747Z] _____________ SessionAuthTests.test_post_form_session_auth_failing _____________
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec261790>
[2024-11-23T20:01:20.747Z] 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-23T20:01:20.747Z] params = ('md5$hfO41CXZplZEQDkE7g7lGn$45c6b050877bdafea37f22eaf6ae06a7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec261790>})
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.747Z] # ever set during testing).
[2024-11-23T20:01:20.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.747Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.747Z] if params is None:
[2024-11-23T20:01:20.747Z] # params default might be backend specific.
[2024-11-23T20:01:20.747Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.747Z] else:
[2024-11-23T20:01:20.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1b6e0>
[2024-11-23T20:01:20.747Z] 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-23T20:01:20.747Z] params = ('md5$hfO41CXZplZEQDkE7g7lGn$45c6b050877bdafea37f22eaf6ae06a7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.747Z] if params is None:
[2024-11-23T20:01:20.747Z] return super().execute(query)
[2024-11-23T20:01:20.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.747Z] > return super().execute(query, params)
[2024-11-23T20:01:20.747Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_failing>
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] def setUp(self):
[2024-11-23T20:01:20.747Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.747Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T20:01:20.747Z] self.username = 'john'
[2024-11-23T20:01:20.747Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.747Z] self.password = 'password'
[2024-11-23T20:01:20.747Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.747Z] self.username, self.email, self.password
[2024-11-23T20:01:20.747Z] )
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] tests/authentication/test_authentication.py:207:
[2024-11-23T20:01:20.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.747Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.747Z] user.save(using=self._db)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.747Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.747Z] self.save_base(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.747Z] updated = self._save_table(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.747Z] results = self._do_insert(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.747Z] return manager._insert(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.747Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.747Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.747Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.747Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.747Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1b6e0>
[2024-11-23T20:01:20.747Z] 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-23T20:01:20.747Z] params = ('md5$hfO41CXZplZEQDkE7g7lGn$45c6b050877bdafea37f22eaf6ae06a7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.747Z] if params is None:
[2024-11-23T20:01:20.747Z] return super().execute(query)
[2024-11-23T20:01:20.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.747Z] > return super().execute(query, params)
[2024-11-23T20:01:20.747Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.747Z] __________ SessionAuthTests.test_post_form_session_auth_failing_csrf ___________
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec201130>
[2024-11-23T20:01:20.747Z] 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-23T20:01:20.747Z] params = ('md5$XS2Fm93KxR2GticxJJ299G$94a0a43183b11fa43d6e5a8cdfadde39', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec201130>})
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.747Z] # ever set during testing).
[2024-11-23T20:01:20.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.747Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.747Z] if params is None:
[2024-11-23T20:01:20.747Z] # params default might be backend specific.
[2024-11-23T20:01:20.747Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.747Z] else:
[2024-11-23T20:01:20.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec856210>
[2024-11-23T20:01:20.747Z] 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-23T20:01:20.747Z] params = ('md5$XS2Fm93KxR2GticxJJ299G$94a0a43183b11fa43d6e5a8cdfadde39', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.747Z]
[2024-11-23T20:01:20.748Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.748Z] if params is None:
[2024-11-23T20:01:20.748Z] return super().execute(query)
[2024-11-23T20:01:20.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.748Z] > return super().execute(query, params)
[2024-11-23T20:01:20.748Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_failing_csrf>
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def setUp(self):
[2024-11-23T20:01:20.748Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.748Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T20:01:20.748Z] self.username = 'john'
[2024-11-23T20:01:20.748Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.748Z] self.password = 'password'
[2024-11-23T20:01:20.748Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.748Z] self.username, self.email, self.password
[2024-11-23T20:01:20.748Z] )
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] tests/authentication/test_authentication.py:207:
[2024-11-23T20:01:20.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.748Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.748Z] user.save(using=self._db)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.748Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.748Z] self.save_base(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.748Z] updated = self._save_table(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.748Z] results = self._do_insert(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.748Z] return manager._insert(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.748Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.748Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.748Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.748Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.748Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec856210>
[2024-11-23T20:01:20.748Z] 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-23T20:01:20.748Z] params = ('md5$XS2Fm93KxR2GticxJJ299G$94a0a43183b11fa43d6e5a8cdfadde39', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.748Z] if params is None:
[2024-11-23T20:01:20.748Z] return super().execute(query)
[2024-11-23T20:01:20.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.748Z] > return super().execute(query, params)
[2024-11-23T20:01:20.748Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.748Z] _____________ SessionAuthTests.test_post_form_session_auth_passing _____________
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec200b30>
[2024-11-23T20:01:20.748Z] 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-23T20:01:20.748Z] params = ('md5$j43217D5fC6drJT1MLaLLp$e7c54c383e5de8fb6ba23e48602b80be', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.748Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec200b30>})
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.748Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.748Z] # ever set during testing).
[2024-11-23T20:01:20.748Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.748Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.748Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.748Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.748Z] if params is None:
[2024-11-23T20:01:20.748Z] # params default might be backend specific.
[2024-11-23T20:01:20.748Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.748Z] else:
[2024-11-23T20:01:20.748Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a2a0>
[2024-11-23T20:01:20.748Z] 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-23T20:01:20.748Z] params = ('md5$j43217D5fC6drJT1MLaLLp$e7c54c383e5de8fb6ba23e48602b80be', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.748Z] if params is None:
[2024-11-23T20:01:20.748Z] return super().execute(query)
[2024-11-23T20:01:20.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.748Z] > return super().execute(query, params)
[2024-11-23T20:01:20.748Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_passing>
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def setUp(self):
[2024-11-23T20:01:20.748Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.748Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T20:01:20.748Z] self.username = 'john'
[2024-11-23T20:01:20.748Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.748Z] self.password = 'password'
[2024-11-23T20:01:20.748Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.748Z] self.username, self.email, self.password
[2024-11-23T20:01:20.748Z] )
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] tests/authentication/test_authentication.py:207:
[2024-11-23T20:01:20.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.748Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.748Z] user.save(using=self._db)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.748Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.748Z] self.save_base(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.748Z] updated = self._save_table(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.748Z] results = self._do_insert(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.748Z] return manager._insert(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.748Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.748Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.748Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.748Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.748Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a2a0>
[2024-11-23T20:01:20.748Z] 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-23T20:01:20.748Z] params = ('md5$j43217D5fC6drJT1MLaLLp$e7c54c383e5de8fb6ba23e48602b80be', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.748Z] if params is None:
[2024-11-23T20:01:20.748Z] return super().execute(query)
[2024-11-23T20:01:20.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.748Z] > return super().execute(query, params)
[2024-11-23T20:01:20.748Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.748Z] __________ SessionAuthTests.test_post_form_session_auth_passing_csrf ___________
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec201910>
[2024-11-23T20:01:20.748Z] 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-23T20:01:20.748Z] params = ('md5$T7GfC2UXAvPg5RBMw78qh8$def5e221642216401ff16b39e6c0d7a4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.748Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec201910>})
[2024-11-23T20:01:20.748Z]
[2024-11-23T20:01:20.748Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.748Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.748Z] # ever set during testing).
[2024-11-23T20:01:20.748Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.749Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.749Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.749Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.749Z] if params is None:
[2024-11-23T20:01:20.749Z] # params default might be backend specific.
[2024-11-23T20:01:20.749Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.749Z] else:
[2024-11-23T20:01:20.749Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec223380>
[2024-11-23T20:01:20.749Z] 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-23T20:01:20.749Z] params = ('md5$T7GfC2UXAvPg5RBMw78qh8$def5e221642216401ff16b39e6c0d7a4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.749Z] if params is None:
[2024-11-23T20:01:20.749Z] return super().execute(query)
[2024-11-23T20:01:20.749Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.749Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.749Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.749Z] > return super().execute(query, params)
[2024-11-23T20:01:20.749Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_passing_csrf>
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] def setUp(self):
[2024-11-23T20:01:20.749Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.749Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T20:01:20.749Z] self.username = 'john'
[2024-11-23T20:01:20.749Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.749Z] self.password = 'password'
[2024-11-23T20:01:20.749Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.749Z] self.username, self.email, self.password
[2024-11-23T20:01:20.749Z] )
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] tests/authentication/test_authentication.py:207:
[2024-11-23T20:01:20.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.749Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.749Z] user.save(using=self._db)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.749Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.749Z] self.save_base(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.749Z] updated = self._save_table(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.749Z] results = self._do_insert(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.749Z] return manager._insert(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.749Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.749Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.749Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.749Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.749Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.749Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.749Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.749Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec223380>
[2024-11-23T20:01:20.749Z] 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-23T20:01:20.749Z] params = ('md5$T7GfC2UXAvPg5RBMw78qh8$def5e221642216401ff16b39e6c0d7a4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.749Z] if params is None:
[2024-11-23T20:01:20.749Z] return super().execute(query)
[2024-11-23T20:01:20.749Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.749Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.749Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.749Z] > return super().execute(query, params)
[2024-11-23T20:01:20.749Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.749Z] _____________ SessionAuthTests.test_put_form_session_auth_passing ______________
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec202d50>
[2024-11-23T20:01:20.749Z] 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-23T20:01:20.749Z] params = ('md5$FkasXNsOO4uzWX7Bo19eoN$a07fbf7ede4d8bab88629017167acdca', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.749Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec202d50>})
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.749Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.749Z] # ever set during testing).
[2024-11-23T20:01:20.749Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.749Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.749Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.749Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.749Z] if params is None:
[2024-11-23T20:01:20.749Z] # params default might be backend specific.
[2024-11-23T20:01:20.749Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.749Z] else:
[2024-11-23T20:01:20.749Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec856210>
[2024-11-23T20:01:20.749Z] 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-23T20:01:20.749Z] params = ('md5$FkasXNsOO4uzWX7Bo19eoN$a07fbf7ede4d8bab88629017167acdca', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.749Z] if params is None:
[2024-11-23T20:01:20.749Z] return super().execute(query)
[2024-11-23T20:01:20.749Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.749Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.749Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.749Z] > return super().execute(query, params)
[2024-11-23T20:01:20.749Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_put_form_session_auth_passing>
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] def setUp(self):
[2024-11-23T20:01:20.749Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.749Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T20:01:20.749Z] self.username = 'john'
[2024-11-23T20:01:20.749Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.749Z] self.password = 'password'
[2024-11-23T20:01:20.749Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.749Z] self.username, self.email, self.password
[2024-11-23T20:01:20.749Z] )
[2024-11-23T20:01:20.749Z]
[2024-11-23T20:01:20.749Z] tests/authentication/test_authentication.py:207:
[2024-11-23T20:01:20.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.749Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.749Z] user.save(using=self._db)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.749Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.749Z] self.save_base(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.749Z] updated = self._save_table(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.749Z] results = self._do_insert(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.749Z] return manager._insert(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.749Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.749Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.749Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.749Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.749Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.749Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.749Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.749Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec856210>
[2024-11-23T20:01:20.750Z] 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-23T20:01:20.750Z] params = ('md5$FkasXNsOO4uzWX7Bo19eoN$a07fbf7ede4d8bab88629017167acdca', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.750Z] if params is None:
[2024-11-23T20:01:20.750Z] return super().execute(query)
[2024-11-23T20:01:20.750Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.750Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.750Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.750Z] > return super().execute(query, params)
[2024-11-23T20:01:20.750Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.750Z] ________ TokenAuthTests.test_fail_authentication_if_user_is_not_active _________
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec261490>
[2024-11-23T20:01:20.750Z] 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-23T20:01:20.750Z] params = ('md5$MdcxlIk952acjE3qI8kInQ$0c6170a928bbb413c56cfd1f827ff253', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.750Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec261490>})
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.750Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.750Z] # ever set during testing).
[2024-11-23T20:01:20.750Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.750Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.750Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.750Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.750Z] if params is None:
[2024-11-23T20:01:20.750Z] # params default might be backend specific.
[2024-11-23T20:01:20.750Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.750Z] else:
[2024-11-23T20:01:20.750Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0cb0>
[2024-11-23T20:01:20.750Z] 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-23T20:01:20.750Z] params = ('md5$MdcxlIk952acjE3qI8kInQ$0c6170a928bbb413c56cfd1f827ff253', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.750Z] if params is None:
[2024-11-23T20:01:20.750Z] return super().execute(query)
[2024-11-23T20:01:20.750Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.750Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.750Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.750Z] > return super().execute(query, params)
[2024-11-23T20:01:20.750Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_authentication_if_user_is_not_active>
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def setUp(self):
[2024-11-23T20:01:20.750Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.750Z] self.username = 'john'
[2024-11-23T20:01:20.750Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.750Z] self.password = 'password'
[2024-11-23T20:01:20.750Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.750Z] self.username, self.email, self.password
[2024-11-23T20:01:20.750Z] )
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.750Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.750Z] user.save(using=self._db)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.750Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.750Z] self.save_base(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.750Z] updated = self._save_table(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.750Z] results = self._do_insert(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.750Z] return manager._insert(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.750Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.750Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.750Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.750Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.750Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.750Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.750Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.750Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0cb0>
[2024-11-23T20:01:20.750Z] 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-23T20:01:20.750Z] params = ('md5$MdcxlIk952acjE3qI8kInQ$0c6170a928bbb413c56cfd1f827ff253', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.750Z] if params is None:
[2024-11-23T20:01:20.750Z] return super().execute(query)
[2024-11-23T20:01:20.750Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.750Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.750Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.750Z] > return super().execute(query, params)
[2024-11-23T20:01:20.750Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.750Z] ________ TokenAuthTests.test_fail_post_form_passing_invalid_token_auth _________
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec2453d0>
[2024-11-23T20:01:20.750Z] 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-23T20:01:20.750Z] params = ('md5$pGCndqo672BxZXjQDLx1zE$fa06d08a829420b59fc51ed51634b9c4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.750Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec2453d0>})
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.750Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.750Z] # ever set during testing).
[2024-11-23T20:01:20.750Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.750Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.750Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.750Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.750Z] if params is None:
[2024-11-23T20:01:20.750Z] # params default might be backend specific.
[2024-11-23T20:01:20.750Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.750Z] else:
[2024-11-23T20:01:20.750Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0f80>
[2024-11-23T20:01:20.750Z] 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-23T20:01:20.750Z] params = ('md5$pGCndqo672BxZXjQDLx1zE$fa06d08a829420b59fc51ed51634b9c4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.750Z] if params is None:
[2024-11-23T20:01:20.750Z] return super().execute(query)
[2024-11-23T20:01:20.750Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.750Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.750Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.750Z] > return super().execute(query, params)
[2024-11-23T20:01:20.750Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_form_passing_invalid_token_auth>
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] def setUp(self):
[2024-11-23T20:01:20.750Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.750Z] self.username = 'john'
[2024-11-23T20:01:20.750Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.750Z] self.password = 'password'
[2024-11-23T20:01:20.750Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.750Z] self.username, self.email, self.password
[2024-11-23T20:01:20.750Z] )
[2024-11-23T20:01:20.750Z]
[2024-11-23T20:01:20.750Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.750Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.750Z] user.save(using=self._db)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.750Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.750Z] self.save_base(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.750Z] updated = self._save_table(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.750Z] results = self._do_insert(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.750Z] return manager._insert(
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.750Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.750Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.750Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.751Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.751Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.751Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.751Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.751Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.751Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.751Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0f80>
[2024-11-23T20:01:20.751Z] 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-23T20:01:20.751Z] params = ('md5$pGCndqo672BxZXjQDLx1zE$fa06d08a829420b59fc51ed51634b9c4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.751Z] if params is None:
[2024-11-23T20:01:20.751Z] return super().execute(query)
[2024-11-23T20:01:20.751Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.751Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.751Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.751Z] > return super().execute(query, params)
[2024-11-23T20:01:20.751Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.751Z] ______ TokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth _______
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec246090>
[2024-11-23T20:01:20.751Z] 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-23T20:01:20.751Z] params = ('md5$GTD0AFMihzbTLMDbv77WHk$04931cb24c25c7f693b8230fa1e5abe9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.751Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec246090>})
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.751Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.751Z] # ever set during testing).
[2024-11-23T20:01:20.751Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.751Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.751Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.751Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.751Z] if params is None:
[2024-11-23T20:01:20.751Z] # params default might be backend specific.
[2024-11-23T20:01:20.751Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.751Z] else:
[2024-11-23T20:01:20.751Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.751Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d12e0>
[2024-11-23T20:01:20.751Z] 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-23T20:01:20.751Z] params = ('md5$GTD0AFMihzbTLMDbv77WHk$04931cb24c25c7f693b8230fa1e5abe9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.751Z] if params is None:
[2024-11-23T20:01:20.751Z] return super().execute(query)
[2024-11-23T20:01:20.751Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.751Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.751Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.751Z] > return super().execute(query, params)
[2024-11-23T20:01:20.751Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_form_passing_nonexistent_token_auth>
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def setUp(self):
[2024-11-23T20:01:20.751Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.751Z] self.username = 'john'
[2024-11-23T20:01:20.751Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.751Z] self.password = 'password'
[2024-11-23T20:01:20.751Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.751Z] self.username, self.email, self.password
[2024-11-23T20:01:20.751Z] )
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.751Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.751Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.751Z] user.save(using=self._db)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.751Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.751Z] self.save_base(
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.751Z] updated = self._save_table(
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.751Z] results = self._do_insert(
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.751Z] return manager._insert(
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.751Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.751Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.751Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.751Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.751Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.751Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.751Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.751Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.751Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d12e0>
[2024-11-23T20:01:20.751Z] 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-23T20:01:20.751Z] params = ('md5$GTD0AFMihzbTLMDbv77WHk$04931cb24c25c7f693b8230fa1e5abe9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.751Z] if params is None:
[2024-11-23T20:01:20.751Z] return super().execute(query)
[2024-11-23T20:01:20.751Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.751Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.751Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.751Z] > return super().execute(query, params)
[2024-11-23T20:01:20.751Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.751Z] ____________ TokenAuthTests.test_fail_post_if_token_contains_spaces ____________
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec279370>
[2024-11-23T20:01:20.751Z] 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-23T20:01:20.751Z] params = ('md5$1DollZqE4owPSNNjnT2ORU$146c0e985bbfb17755636f02916cdfcf', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.751Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec279370>})
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.751Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.751Z] # ever set during testing).
[2024-11-23T20:01:20.751Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.751Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.751Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.751Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.751Z] if params is None:
[2024-11-23T20:01:20.751Z] # params default might be backend specific.
[2024-11-23T20:01:20.751Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.751Z] else:
[2024-11-23T20:01:20.751Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.751Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d10a0>
[2024-11-23T20:01:20.751Z] 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-23T20:01:20.751Z] params = ('md5$1DollZqE4owPSNNjnT2ORU$146c0e985bbfb17755636f02916cdfcf', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.751Z] if params is None:
[2024-11-23T20:01:20.751Z] return super().execute(query)
[2024-11-23T20:01:20.751Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.751Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.751Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.751Z] > return super().execute(query, params)
[2024-11-23T20:01:20.751Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_if_token_contains_spaces>
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] def setUp(self):
[2024-11-23T20:01:20.751Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.751Z] self.username = 'john'
[2024-11-23T20:01:20.751Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.751Z] self.password = 'password'
[2024-11-23T20:01:20.751Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.751Z] self.username, self.email, self.password
[2024-11-23T20:01:20.751Z] )
[2024-11-23T20:01:20.751Z]
[2024-11-23T20:01:20.751Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.751Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.751Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.751Z] user.save(using=self._db)
[2024-11-23T20:01:20.751Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.752Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.752Z] self.save_base(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.752Z] updated = self._save_table(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.752Z] results = self._do_insert(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.752Z] return manager._insert(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.752Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.752Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.752Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.752Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.752Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.752Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.752Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.752Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.752Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d10a0>
[2024-11-23T20:01:20.752Z] 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-23T20:01:20.752Z] params = ('md5$1DollZqE4owPSNNjnT2ORU$146c0e985bbfb17755636f02916cdfcf', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.752Z] if params is None:
[2024-11-23T20:01:20.752Z] return super().execute(query)
[2024-11-23T20:01:20.752Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.752Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.752Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.752Z] > return super().execute(query, params)
[2024-11-23T20:01:20.752Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.752Z] ______________ TokenAuthTests.test_fail_post_if_token_is_missing _______________
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec279250>
[2024-11-23T20:01:20.752Z] 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-23T20:01:20.752Z] params = ('md5$fgSc2ulweaZmcGP81E0H6L$a549ba0faf38dd25bd1107bf0855213b', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.752Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec279250>})
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.752Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.752Z] # ever set during testing).
[2024-11-23T20:01:20.752Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.752Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.752Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.752Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.752Z] if params is None:
[2024-11-23T20:01:20.752Z] # params default might be backend specific.
[2024-11-23T20:01:20.752Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.752Z] else:
[2024-11-23T20:01:20.752Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.752Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0d40>
[2024-11-23T20:01:20.752Z] 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-23T20:01:20.752Z] params = ('md5$fgSc2ulweaZmcGP81E0H6L$a549ba0faf38dd25bd1107bf0855213b', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.752Z] if params is None:
[2024-11-23T20:01:20.752Z] return super().execute(query)
[2024-11-23T20:01:20.752Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.752Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.752Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.752Z] > return super().execute(query, params)
[2024-11-23T20:01:20.752Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_if_token_is_missing>
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def setUp(self):
[2024-11-23T20:01:20.752Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.752Z] self.username = 'john'
[2024-11-23T20:01:20.752Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.752Z] self.password = 'password'
[2024-11-23T20:01:20.752Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.752Z] self.username, self.email, self.password
[2024-11-23T20:01:20.752Z] )
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.752Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.752Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.752Z] user.save(using=self._db)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.752Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.752Z] self.save_base(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.752Z] updated = self._save_table(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.752Z] results = self._do_insert(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.752Z] return manager._insert(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.752Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.752Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.752Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.752Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.752Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.752Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.752Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.752Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.752Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0d40>
[2024-11-23T20:01:20.752Z] 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-23T20:01:20.752Z] params = ('md5$fgSc2ulweaZmcGP81E0H6L$a549ba0faf38dd25bd1107bf0855213b', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.752Z] if params is None:
[2024-11-23T20:01:20.752Z] return super().execute(query)
[2024-11-23T20:01:20.752Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.752Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.752Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.752Z] > return super().execute(query, params)
[2024-11-23T20:01:20.752Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.752Z] __________ TokenAuthTests.test_generate_key_accessible_as_classmethod __________
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec27a6f0>
[2024-11-23T20:01:20.752Z] 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-23T20:01:20.752Z] params = ('md5$UAdni5SYOMNmQ1pPYScFm0$0c9af13da8e9d45cb5d6686a6400db83', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.752Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec27a6f0>})
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.752Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.752Z] # ever set during testing).
[2024-11-23T20:01:20.752Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.752Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.752Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.752Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.752Z] if params is None:
[2024-11-23T20:01:20.752Z] # params default might be backend specific.
[2024-11-23T20:01:20.752Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.752Z] else:
[2024-11-23T20:01:20.752Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.752Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0dd0>
[2024-11-23T20:01:20.752Z] 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-23T20:01:20.752Z] params = ('md5$UAdni5SYOMNmQ1pPYScFm0$0c9af13da8e9d45cb5d6686a6400db83', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.752Z] if params is None:
[2024-11-23T20:01:20.752Z] return super().execute(query)
[2024-11-23T20:01:20.752Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.752Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.752Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.752Z] > return super().execute(query, params)
[2024-11-23T20:01:20.752Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_generate_key_accessible_as_classmethod>
[2024-11-23T20:01:20.752Z]
[2024-11-23T20:01:20.752Z] def setUp(self):
[2024-11-23T20:01:20.752Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.752Z] self.username = 'john'
[2024-11-23T20:01:20.753Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.753Z] self.password = 'password'
[2024-11-23T20:01:20.753Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.753Z] self.username, self.email, self.password
[2024-11-23T20:01:20.753Z] )
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.753Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.753Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.753Z] user.save(using=self._db)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.753Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.753Z] self.save_base(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.753Z] updated = self._save_table(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.753Z] results = self._do_insert(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.753Z] return manager._insert(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.753Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.753Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.753Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.753Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.753Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.753Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.753Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.753Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.753Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0dd0>
[2024-11-23T20:01:20.753Z] 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-23T20:01:20.753Z] params = ('md5$UAdni5SYOMNmQ1pPYScFm0$0c9af13da8e9d45cb5d6686a6400db83', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.753Z] if params is None:
[2024-11-23T20:01:20.753Z] return super().execute(query)
[2024-11-23T20:01:20.753Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.753Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.753Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.753Z] > return super().execute(query, params)
[2024-11-23T20:01:20.753Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.753Z] _______________ TokenAuthTests.test_generate_key_returns_string ________________
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec247bf0>
[2024-11-23T20:01:20.753Z] 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-23T20:01:20.753Z] params = ('md5$ew3uj4o5KT3Q0ozi6gtOFM$58a3cb27daeba36085e2c4858b5541ad', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.753Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec247bf0>})
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.753Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.753Z] # ever set during testing).
[2024-11-23T20:01:20.753Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.753Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.753Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.753Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.753Z] if params is None:
[2024-11-23T20:01:20.753Z] # params default might be backend specific.
[2024-11-23T20:01:20.753Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.753Z] else:
[2024-11-23T20:01:20.753Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.753Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.753Z] 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-23T20:01:20.753Z] params = ('md5$ew3uj4o5KT3Q0ozi6gtOFM$58a3cb27daeba36085e2c4858b5541ad', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.753Z] if params is None:
[2024-11-23T20:01:20.753Z] return super().execute(query)
[2024-11-23T20:01:20.753Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.753Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.753Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.753Z] > return super().execute(query, params)
[2024-11-23T20:01:20.753Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_generate_key_returns_string>
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] def setUp(self):
[2024-11-23T20:01:20.753Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.753Z] self.username = 'john'
[2024-11-23T20:01:20.753Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.753Z] self.password = 'password'
[2024-11-23T20:01:20.753Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.753Z] self.username, self.email, self.password
[2024-11-23T20:01:20.753Z] )
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.753Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.753Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.753Z] user.save(using=self._db)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.753Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.753Z] self.save_base(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.753Z] updated = self._save_table(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.753Z] results = self._do_insert(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.753Z] return manager._insert(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.753Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.753Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.753Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.753Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.753Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.753Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.753Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.753Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.753Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.753Z] 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-23T20:01:20.753Z] params = ('md5$ew3uj4o5KT3Q0ozi6gtOFM$58a3cb27daeba36085e2c4858b5541ad', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.753Z] if params is None:
[2024-11-23T20:01:20.753Z] return super().execute(query)
[2024-11-23T20:01:20.753Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.753Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.753Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.753Z] > return super().execute(query, params)
[2024-11-23T20:01:20.753Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.753Z] _______________ TokenAuthTests.test_post_form_failing_token_auth _______________
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec246f90>
[2024-11-23T20:01:20.753Z] 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-23T20:01:20.753Z] params = ('md5$WVjP56THsTx9tPaBhQDgnY$8cab3fa086543616a95b65cdf0d020f6', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.753Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec246f90>})
[2024-11-23T20:01:20.753Z]
[2024-11-23T20:01:20.753Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.753Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.753Z] # ever set during testing).
[2024-11-23T20:01:20.753Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.753Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.753Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.753Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.754Z] if params is None:
[2024-11-23T20:01:20.754Z] # params default might be backend specific.
[2024-11-23T20:01:20.754Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.754Z] else:
[2024-11-23T20:01:20.754Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.754Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0e60>
[2024-11-23T20:01:20.754Z] 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-23T20:01:20.754Z] params = ('md5$WVjP56THsTx9tPaBhQDgnY$8cab3fa086543616a95b65cdf0d020f6', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.754Z] if params is None:
[2024-11-23T20:01:20.754Z] return super().execute(query)
[2024-11-23T20:01:20.754Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.754Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.754Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.754Z] > return super().execute(query, params)
[2024-11-23T20:01:20.754Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_form_failing_token_auth>
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def setUp(self):
[2024-11-23T20:01:20.754Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.754Z] self.username = 'john'
[2024-11-23T20:01:20.754Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.754Z] self.password = 'password'
[2024-11-23T20:01:20.754Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.754Z] self.username, self.email, self.password
[2024-11-23T20:01:20.754Z] )
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.754Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.754Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.754Z] user.save(using=self._db)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.754Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.754Z] self.save_base(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.754Z] updated = self._save_table(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.754Z] results = self._do_insert(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.754Z] return manager._insert(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.754Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.754Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.754Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.754Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.754Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.754Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.754Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.754Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.754Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0e60>
[2024-11-23T20:01:20.754Z] 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-23T20:01:20.754Z] params = ('md5$WVjP56THsTx9tPaBhQDgnY$8cab3fa086543616a95b65cdf0d020f6', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.754Z] if params is None:
[2024-11-23T20:01:20.754Z] return super().execute(query)
[2024-11-23T20:01:20.754Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.754Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.754Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.754Z] > return super().execute(query, params)
[2024-11-23T20:01:20.754Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.754Z] _______________ TokenAuthTests.test_post_form_passing_token_auth _______________
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb380410>
[2024-11-23T20:01:20.754Z] 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-23T20:01:20.754Z] params = ('md5$ALx4K1L3BKun6mtIkPkRBh$ff00cd8fda679192cc5b3031720d52b7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.754Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb380410>})
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.754Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.754Z] # ever set during testing).
[2024-11-23T20:01:20.754Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.754Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.754Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.754Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.754Z] if params is None:
[2024-11-23T20:01:20.754Z] # params default might be backend specific.
[2024-11-23T20:01:20.754Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.754Z] else:
[2024-11-23T20:01:20.754Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.754Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d31d0>
[2024-11-23T20:01:20.754Z] 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-23T20:01:20.754Z] params = ('md5$ALx4K1L3BKun6mtIkPkRBh$ff00cd8fda679192cc5b3031720d52b7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.754Z] if params is None:
[2024-11-23T20:01:20.754Z] return super().execute(query)
[2024-11-23T20:01:20.754Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.754Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.754Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.754Z] > return super().execute(query, params)
[2024-11-23T20:01:20.754Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_form_passing_token_auth>
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def setUp(self):
[2024-11-23T20:01:20.754Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.754Z] self.username = 'john'
[2024-11-23T20:01:20.754Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.754Z] self.password = 'password'
[2024-11-23T20:01:20.754Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.754Z] self.username, self.email, self.password
[2024-11-23T20:01:20.754Z] )
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.754Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.754Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.754Z] user.save(using=self._db)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.754Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.754Z] self.save_base(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.754Z] updated = self._save_table(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.754Z] results = self._do_insert(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.754Z] return manager._insert(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.754Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.754Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.754Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.754Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.754Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.754Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.754Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.754Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.754Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d31d0>
[2024-11-23T20:01:20.754Z] 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-23T20:01:20.754Z] params = ('md5$ALx4K1L3BKun6mtIkPkRBh$ff00cd8fda679192cc5b3031720d52b7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.754Z] if params is None:
[2024-11-23T20:01:20.754Z] return super().execute(query)
[2024-11-23T20:01:20.754Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.754Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.754Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.754Z] > return super().execute(query, params)
[2024-11-23T20:01:20.754Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.754Z] _______________ TokenAuthTests.test_post_json_failing_token_auth _______________
[2024-11-23T20:01:20.754Z]
[2024-11-23T20:01:20.754Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb381970>
[2024-11-23T20:01:20.755Z] 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-23T20:01:20.755Z] params = ('md5$55FHCjdBiPkEpZusbJLpP8$8a2adfea4ba0fc746a66e3da407cab34', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.755Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb381970>})
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.755Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.755Z] # ever set during testing).
[2024-11-23T20:01:20.755Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.755Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.755Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.755Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.755Z] if params is None:
[2024-11-23T20:01:20.755Z] # params default might be backend specific.
[2024-11-23T20:01:20.755Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.755Z] else:
[2024-11-23T20:01:20.755Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.755Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe180>
[2024-11-23T20:01:20.755Z] 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-23T20:01:20.755Z] params = ('md5$55FHCjdBiPkEpZusbJLpP8$8a2adfea4ba0fc746a66e3da407cab34', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.755Z] if params is None:
[2024-11-23T20:01:20.755Z] return super().execute(query)
[2024-11-23T20:01:20.755Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.755Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.755Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.755Z] > return super().execute(query, params)
[2024-11-23T20:01:20.755Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_json_failing_token_auth>
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def setUp(self):
[2024-11-23T20:01:20.755Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.755Z] self.username = 'john'
[2024-11-23T20:01:20.755Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.755Z] self.password = 'password'
[2024-11-23T20:01:20.755Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.755Z] self.username, self.email, self.password
[2024-11-23T20:01:20.755Z] )
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.755Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.755Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.755Z] user.save(using=self._db)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.755Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.755Z] self.save_base(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.755Z] updated = self._save_table(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.755Z] results = self._do_insert(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.755Z] return manager._insert(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.755Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.755Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.755Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.755Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.755Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.755Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.755Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.755Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.755Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe180>
[2024-11-23T20:01:20.755Z] 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-23T20:01:20.755Z] params = ('md5$55FHCjdBiPkEpZusbJLpP8$8a2adfea4ba0fc746a66e3da407cab34', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.755Z] if params is None:
[2024-11-23T20:01:20.755Z] return super().execute(query)
[2024-11-23T20:01:20.755Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.755Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.755Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.755Z] > return super().execute(query, params)
[2024-11-23T20:01:20.755Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.755Z] _______________ TokenAuthTests.test_post_json_makes_one_db_query _______________
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb383e30>
[2024-11-23T20:01:20.755Z] 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-23T20:01:20.755Z] params = ('md5$roUJMUhia4CzKkRxMnwgHf$ad6c6d44b43d852fd9bc95a4be933be2', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.755Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb383e30>})
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.755Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.755Z] # ever set during testing).
[2024-11-23T20:01:20.755Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.755Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.755Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.755Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.755Z] if params is None:
[2024-11-23T20:01:20.755Z] # params default might be backend specific.
[2024-11-23T20:01:20.755Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.755Z] else:
[2024-11-23T20:01:20.755Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.755Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.755Z] 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-23T20:01:20.755Z] params = ('md5$roUJMUhia4CzKkRxMnwgHf$ad6c6d44b43d852fd9bc95a4be933be2', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.755Z] if params is None:
[2024-11-23T20:01:20.755Z] return super().execute(query)
[2024-11-23T20:01:20.755Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.755Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.755Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.755Z] > return super().execute(query, params)
[2024-11-23T20:01:20.755Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_json_makes_one_db_query>
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def setUp(self):
[2024-11-23T20:01:20.755Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.755Z] self.username = 'john'
[2024-11-23T20:01:20.755Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.755Z] self.password = 'password'
[2024-11-23T20:01:20.755Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.755Z] self.username, self.email, self.password
[2024-11-23T20:01:20.755Z] )
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.755Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.755Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.755Z] user.save(using=self._db)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.755Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.755Z] self.save_base(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.755Z] updated = self._save_table(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.755Z] results = self._do_insert(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.755Z] return manager._insert(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.755Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.755Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.755Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.755Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.755Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.755Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.755Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.755Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.755Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.755Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.755Z] 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-23T20:01:20.755Z] params = ('md5$roUJMUhia4CzKkRxMnwgHf$ad6c6d44b43d852fd9bc95a4be933be2', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.755Z]
[2024-11-23T20:01:20.755Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.755Z] if params is None:
[2024-11-23T20:01:20.756Z] return super().execute(query)
[2024-11-23T20:01:20.756Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.756Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.756Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.756Z] > return super().execute(query, params)
[2024-11-23T20:01:20.756Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.756Z] _______________ TokenAuthTests.test_post_json_passing_token_auth _______________
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec244a10>
[2024-11-23T20:01:20.756Z] 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-23T20:01:20.756Z] params = ('md5$yTeJN7MzdhKBGoqt3ypn6W$a4dfe10b2068871784ec55cf1afe5d68', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.756Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec244a10>})
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.756Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.756Z] # ever set during testing).
[2024-11-23T20:01:20.756Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.756Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.756Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.756Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.756Z] if params is None:
[2024-11-23T20:01:20.756Z] # params default might be backend specific.
[2024-11-23T20:01:20.756Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.756Z] else:
[2024-11-23T20:01:20.756Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.756Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fea80>
[2024-11-23T20:01:20.756Z] 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-23T20:01:20.756Z] params = ('md5$yTeJN7MzdhKBGoqt3ypn6W$a4dfe10b2068871784ec55cf1afe5d68', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.756Z] if params is None:
[2024-11-23T20:01:20.756Z] return super().execute(query)
[2024-11-23T20:01:20.756Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.756Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.756Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.756Z] > return super().execute(query, params)
[2024-11-23T20:01:20.756Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_json_passing_token_auth>
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def setUp(self):
[2024-11-23T20:01:20.756Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.756Z] self.username = 'john'
[2024-11-23T20:01:20.756Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.756Z] self.password = 'password'
[2024-11-23T20:01:20.756Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.756Z] self.username, self.email, self.password
[2024-11-23T20:01:20.756Z] )
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.756Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.756Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.756Z] user.save(using=self._db)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.756Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.756Z] self.save_base(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.756Z] updated = self._save_table(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.756Z] results = self._do_insert(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.756Z] return manager._insert(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.756Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.756Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.756Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.756Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.756Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.756Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.756Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.756Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.756Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fea80>
[2024-11-23T20:01:20.756Z] 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-23T20:01:20.756Z] params = ('md5$yTeJN7MzdhKBGoqt3ypn6W$a4dfe10b2068871784ec55cf1afe5d68', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.756Z] if params is None:
[2024-11-23T20:01:20.756Z] return super().execute(query)
[2024-11-23T20:01:20.756Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.756Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.756Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.756Z] > return super().execute(query, params)
[2024-11-23T20:01:20.756Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.756Z] _______ TokenAuthTests.test_token_has_auto_assigned_key_if_none_provided _______
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb348cb0>
[2024-11-23T20:01:20.756Z] 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-23T20:01:20.756Z] params = ('md5$QdoEfWlOzhYsbtJrMfabsd$ed18ea80340b088fe19ec24ea8b2e9e9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.756Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb348cb0>})
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.756Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.756Z] # ever set during testing).
[2024-11-23T20:01:20.756Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.756Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.756Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.756Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.756Z] if params is None:
[2024-11-23T20:01:20.756Z] # params default might be backend specific.
[2024-11-23T20:01:20.756Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.756Z] else:
[2024-11-23T20:01:20.756Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.756Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d31d0>
[2024-11-23T20:01:20.756Z] 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-23T20:01:20.756Z] params = ('md5$QdoEfWlOzhYsbtJrMfabsd$ed18ea80340b088fe19ec24ea8b2e9e9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.756Z] if params is None:
[2024-11-23T20:01:20.756Z] return super().execute(query)
[2024-11-23T20:01:20.756Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.756Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.756Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.756Z] > return super().execute(query, params)
[2024-11-23T20:01:20.756Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_has_auto_assigned_key_if_none_provided>
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] def setUp(self):
[2024-11-23T20:01:20.756Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.756Z] self.username = 'john'
[2024-11-23T20:01:20.756Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.756Z] self.password = 'password'
[2024-11-23T20:01:20.756Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.756Z] self.username, self.email, self.password
[2024-11-23T20:01:20.756Z] )
[2024-11-23T20:01:20.756Z]
[2024-11-23T20:01:20.756Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.756Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.756Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.756Z] user.save(using=self._db)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.756Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.756Z] self.save_base(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.756Z] updated = self._save_table(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.756Z] results = self._do_insert(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.756Z] return manager._insert(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.756Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.756Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.756Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.756Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.756Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.756Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.756Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.757Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.757Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.757Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d31d0>
[2024-11-23T20:01:20.757Z] 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-23T20:01:20.757Z] params = ('md5$QdoEfWlOzhYsbtJrMfabsd$ed18ea80340b088fe19ec24ea8b2e9e9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.757Z] if params is None:
[2024-11-23T20:01:20.757Z] return super().execute(query)
[2024-11-23T20:01:20.757Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.757Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.757Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.757Z] > return super().execute(query, params)
[2024-11-23T20:01:20.757Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.757Z] _____________________ TokenAuthTests.test_token_login_form _____________________
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ec201730>
[2024-11-23T20:01:20.757Z] 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-23T20:01:20.757Z] params = ('md5$vI1BlRyX6gmRrnMY2HSme3$8e02128d9cea3a5e91ae6cb8beabbba3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.757Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ec201730>})
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.757Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.757Z] # ever set during testing).
[2024-11-23T20:01:20.757Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.757Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.757Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.757Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.757Z] if params is None:
[2024-11-23T20:01:20.757Z] # params default might be backend specific.
[2024-11-23T20:01:20.757Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.757Z] else:
[2024-11-23T20:01:20.757Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.757Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.757Z] 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-23T20:01:20.757Z] params = ('md5$vI1BlRyX6gmRrnMY2HSme3$8e02128d9cea3a5e91ae6cb8beabbba3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.757Z] if params is None:
[2024-11-23T20:01:20.757Z] return super().execute(query)
[2024-11-23T20:01:20.757Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.757Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.757Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.757Z] > return super().execute(query, params)
[2024-11-23T20:01:20.757Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_form>
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def setUp(self):
[2024-11-23T20:01:20.757Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.757Z] self.username = 'john'
[2024-11-23T20:01:20.757Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.757Z] self.password = 'password'
[2024-11-23T20:01:20.757Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.757Z] self.username, self.email, self.password
[2024-11-23T20:01:20.757Z] )
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.757Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.757Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.757Z] user.save(using=self._db)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.757Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.757Z] self.save_base(
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.757Z] updated = self._save_table(
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.757Z] results = self._do_insert(
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.757Z] return manager._insert(
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.757Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.757Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.757Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.757Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.757Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.757Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.757Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.757Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.757Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.757Z] 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-23T20:01:20.757Z] params = ('md5$vI1BlRyX6gmRrnMY2HSme3$8e02128d9cea3a5e91ae6cb8beabbba3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.757Z] if params is None:
[2024-11-23T20:01:20.757Z] return super().execute(query)
[2024-11-23T20:01:20.757Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.757Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.757Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.757Z] > return super().execute(query, params)
[2024-11-23T20:01:20.757Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.757Z] _____________________ TokenAuthTests.test_token_login_json _____________________
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb3491f0>
[2024-11-23T20:01:20.757Z] 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-23T20:01:20.757Z] params = ('md5$RPSthdU88f1J3mIi3TF3Is$9afa0c0ff3da9a42de2204b214cfb2bd', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.757Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb3491f0>})
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.757Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.757Z] # ever set during testing).
[2024-11-23T20:01:20.757Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.757Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.757Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.757Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.757Z] if params is None:
[2024-11-23T20:01:20.757Z] # params default might be backend specific.
[2024-11-23T20:01:20.757Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.757Z] else:
[2024-11-23T20:01:20.757Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.757Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a330>
[2024-11-23T20:01:20.757Z] 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-23T20:01:20.757Z] params = ('md5$RPSthdU88f1J3mIi3TF3Is$9afa0c0ff3da9a42de2204b214cfb2bd', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.757Z] if params is None:
[2024-11-23T20:01:20.757Z] return super().execute(query)
[2024-11-23T20:01:20.757Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.757Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.757Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.757Z] > return super().execute(query, params)
[2024-11-23T20:01:20.757Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_json>
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] def setUp(self):
[2024-11-23T20:01:20.757Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.757Z] self.username = 'john'
[2024-11-23T20:01:20.757Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.757Z] self.password = 'password'
[2024-11-23T20:01:20.757Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.757Z] self.username, self.email, self.password
[2024-11-23T20:01:20.757Z] )
[2024-11-23T20:01:20.757Z]
[2024-11-23T20:01:20.757Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.757Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.758Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.758Z] user.save(using=self._db)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.758Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.758Z] self.save_base(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.758Z] updated = self._save_table(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.758Z] results = self._do_insert(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.758Z] return manager._insert(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.758Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.758Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.758Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.758Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.758Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.758Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.758Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.758Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.758Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1a330>
[2024-11-23T20:01:20.758Z] 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-23T20:01:20.758Z] params = ('md5$RPSthdU88f1J3mIi3TF3Is$9afa0c0ff3da9a42de2204b214cfb2bd', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.758Z] if params is None:
[2024-11-23T20:01:20.758Z] return super().execute(query)
[2024-11-23T20:01:20.758Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.758Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.758Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.758Z] > return super().execute(query, params)
[2024-11-23T20:01:20.758Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.758Z] ________________ TokenAuthTests.test_token_login_json_bad_creds ________________
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb349f70>
[2024-11-23T20:01:20.758Z] 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-23T20:01:20.758Z] params = ('md5$2LcBGZZVRVibvIfPwwe8zG$35fc95c40593e2abf752983fc18eb3ad', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.758Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb349f70>})
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.758Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.758Z] # ever set during testing).
[2024-11-23T20:01:20.758Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.758Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.758Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.758Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.758Z] if params is None:
[2024-11-23T20:01:20.758Z] # params default might be backend specific.
[2024-11-23T20:01:20.758Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.758Z] else:
[2024-11-23T20:01:20.758Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.758Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.758Z] 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-23T20:01:20.758Z] params = ('md5$2LcBGZZVRVibvIfPwwe8zG$35fc95c40593e2abf752983fc18eb3ad', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.758Z] if params is None:
[2024-11-23T20:01:20.758Z] return super().execute(query)
[2024-11-23T20:01:20.758Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.758Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.758Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.758Z] > return super().execute(query, params)
[2024-11-23T20:01:20.758Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_json_bad_creds>
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def setUp(self):
[2024-11-23T20:01:20.758Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.758Z] self.username = 'john'
[2024-11-23T20:01:20.758Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.758Z] self.password = 'password'
[2024-11-23T20:01:20.758Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.758Z] self.username, self.email, self.password
[2024-11-23T20:01:20.758Z] )
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.758Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.758Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.758Z] user.save(using=self._db)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.758Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.758Z] self.save_base(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.758Z] updated = self._save_table(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.758Z] results = self._do_insert(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.758Z] return manager._insert(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.758Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.758Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.758Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.758Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.758Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.758Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.758Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.758Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.758Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.758Z] 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-23T20:01:20.758Z] params = ('md5$2LcBGZZVRVibvIfPwwe8zG$35fc95c40593e2abf752983fc18eb3ad', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.758Z] if params is None:
[2024-11-23T20:01:20.758Z] return super().execute(query)
[2024-11-23T20:01:20.758Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.758Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.758Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.758Z] > return super().execute(query, params)
[2024-11-23T20:01:20.758Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.758Z] _____________ TokenAuthTests.test_token_login_json_missing_fields ______________
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f7050>
[2024-11-23T20:01:20.758Z] 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-23T20:01:20.758Z] params = ('md5$HSj6P1rNlJaYB4kfs9zYQD$9d07eb3ba3cbcddac1d70758f47293a8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.758Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f7050>})
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.758Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.758Z] # ever set during testing).
[2024-11-23T20:01:20.758Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.758Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.758Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.758Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.758Z] if params is None:
[2024-11-23T20:01:20.758Z] # params default might be backend specific.
[2024-11-23T20:01:20.758Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.758Z] else:
[2024-11-23T20:01:20.758Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.758Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1b6e0>
[2024-11-23T20:01:20.758Z] 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-23T20:01:20.758Z] params = ('md5$HSj6P1rNlJaYB4kfs9zYQD$9d07eb3ba3cbcddac1d70758f47293a8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.758Z] if params is None:
[2024-11-23T20:01:20.758Z] return super().execute(query)
[2024-11-23T20:01:20.758Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.758Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.758Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.758Z] > return super().execute(query, params)
[2024-11-23T20:01:20.758Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.758Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.758Z]
[2024-11-23T20:01:20.759Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_json_missing_fields>
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def setUp(self):
[2024-11-23T20:01:20.759Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.759Z] self.username = 'john'
[2024-11-23T20:01:20.759Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.759Z] self.password = 'password'
[2024-11-23T20:01:20.759Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.759Z] self.username, self.email, self.password
[2024-11-23T20:01:20.759Z] )
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.759Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.759Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.759Z] user.save(using=self._db)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.759Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.759Z] self.save_base(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.759Z] updated = self._save_table(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.759Z] results = self._do_insert(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.759Z] return manager._insert(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.759Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.759Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.759Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.759Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.759Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.759Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.759Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.759Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.759Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ebc1b6e0>
[2024-11-23T20:01:20.759Z] 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-23T20:01:20.759Z] params = ('md5$HSj6P1rNlJaYB4kfs9zYQD$9d07eb3ba3cbcddac1d70758f47293a8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.759Z] if params is None:
[2024-11-23T20:01:20.759Z] return super().execute(query)
[2024-11-23T20:01:20.759Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.759Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.759Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.759Z] > return super().execute(query, params)
[2024-11-23T20:01:20.759Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.759Z] _____ CustomTokenAuthTests.test_fail_authentication_if_user_is_not_active ______
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f4c50>
[2024-11-23T20:01:20.759Z] 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-23T20:01:20.759Z] params = ('md5$1jetSWukUsllFUomxYkWut$709133bea0eed67589cad41413ff16cc', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.759Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f4c50>})
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.759Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.759Z] # ever set during testing).
[2024-11-23T20:01:20.759Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.759Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.759Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.759Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.759Z] if params is None:
[2024-11-23T20:01:20.759Z] # params default might be backend specific.
[2024-11-23T20:01:20.759Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.759Z] else:
[2024-11-23T20:01:20.759Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.759Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.759Z] 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-23T20:01:20.759Z] params = ('md5$1jetSWukUsllFUomxYkWut$709133bea0eed67589cad41413ff16cc', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.759Z] if params is None:
[2024-11-23T20:01:20.759Z] return super().execute(query)
[2024-11-23T20:01:20.759Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.759Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.759Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.759Z] > return super().execute(query, params)
[2024-11-23T20:01:20.759Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_authentication_if_user_is_not_active>
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def setUp(self):
[2024-11-23T20:01:20.759Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.759Z] self.username = 'john'
[2024-11-23T20:01:20.759Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.759Z] self.password = 'password'
[2024-11-23T20:01:20.759Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.759Z] self.username, self.email, self.password
[2024-11-23T20:01:20.759Z] )
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.759Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.759Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.759Z] user.save(using=self._db)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.759Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.759Z] self.save_base(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.759Z] updated = self._save_table(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.759Z] results = self._do_insert(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.759Z] return manager._insert(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.759Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.759Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.759Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.759Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.759Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.759Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.759Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.759Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.759Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.759Z] 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-23T20:01:20.759Z] params = ('md5$1jetSWukUsllFUomxYkWut$709133bea0eed67589cad41413ff16cc', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.759Z] if params is None:
[2024-11-23T20:01:20.759Z] return super().execute(query)
[2024-11-23T20:01:20.759Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.759Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.759Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.759Z] > return super().execute(query, params)
[2024-11-23T20:01:20.759Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.759Z] _____ CustomTokenAuthTests.test_fail_post_form_passing_invalid_token_auth ______
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f5010>
[2024-11-23T20:01:20.759Z] 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-23T20:01:20.759Z] params = ('md5$hUT0EinOC6y5MWBQXNXvPV$482ba05a1a1ce55c74b36a8689fdda1e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.759Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f5010>})
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.759Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.759Z] # ever set during testing).
[2024-11-23T20:01:20.759Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.759Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.759Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.759Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.759Z] if params is None:
[2024-11-23T20:01:20.759Z] # params default might be backend specific.
[2024-11-23T20:01:20.759Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.759Z] else:
[2024-11-23T20:01:20.759Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.759Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.759Z]
[2024-11-23T20:01:20.759Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d12e0>
[2024-11-23T20:01:20.759Z] 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-23T20:01:20.760Z] params = ('md5$hUT0EinOC6y5MWBQXNXvPV$482ba05a1a1ce55c74b36a8689fdda1e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.760Z] if params is None:
[2024-11-23T20:01:20.760Z] return super().execute(query)
[2024-11-23T20:01:20.760Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.760Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.760Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.760Z] > return super().execute(query, params)
[2024-11-23T20:01:20.760Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_form_passing_invalid_token_auth>
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def setUp(self):
[2024-11-23T20:01:20.760Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.760Z] self.username = 'john'
[2024-11-23T20:01:20.760Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.760Z] self.password = 'password'
[2024-11-23T20:01:20.760Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.760Z] self.username, self.email, self.password
[2024-11-23T20:01:20.760Z] )
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.760Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.760Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.760Z] user.save(using=self._db)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.760Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.760Z] self.save_base(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.760Z] updated = self._save_table(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.760Z] results = self._do_insert(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.760Z] return manager._insert(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.760Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.760Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.760Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.760Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.760Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.760Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.760Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.760Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.760Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d12e0>
[2024-11-23T20:01:20.760Z] 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-23T20:01:20.760Z] params = ('md5$hUT0EinOC6y5MWBQXNXvPV$482ba05a1a1ce55c74b36a8689fdda1e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.760Z] if params is None:
[2024-11-23T20:01:20.760Z] return super().execute(query)
[2024-11-23T20:01:20.760Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.760Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.760Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.760Z] > return super().execute(query, params)
[2024-11-23T20:01:20.760Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.760Z] ___ CustomTokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth ____
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f6870>
[2024-11-23T20:01:20.760Z] 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-23T20:01:20.760Z] params = ('md5$ZshQiPPPGlPrLk0WNByvxJ$3017aeb2e0ff0b844618d64b442074c7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.760Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f6870>})
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.760Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.760Z] # ever set during testing).
[2024-11-23T20:01:20.760Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.760Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.760Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.760Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.760Z] if params is None:
[2024-11-23T20:01:20.760Z] # params default might be backend specific.
[2024-11-23T20:01:20.760Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.760Z] else:
[2024-11-23T20:01:20.760Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.760Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.760Z] 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-23T20:01:20.760Z] params = ('md5$ZshQiPPPGlPrLk0WNByvxJ$3017aeb2e0ff0b844618d64b442074c7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.760Z] if params is None:
[2024-11-23T20:01:20.760Z] return super().execute(query)
[2024-11-23T20:01:20.760Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.760Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.760Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.760Z] > return super().execute(query, params)
[2024-11-23T20:01:20.760Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_form_passing_nonexistent_token_auth>
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def setUp(self):
[2024-11-23T20:01:20.760Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.760Z] self.username = 'john'
[2024-11-23T20:01:20.760Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.760Z] self.password = 'password'
[2024-11-23T20:01:20.760Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.760Z] self.username, self.email, self.password
[2024-11-23T20:01:20.760Z] )
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.760Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.760Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.760Z] user.save(using=self._db)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.760Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.760Z] self.save_base(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.760Z] updated = self._save_table(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.760Z] results = self._do_insert(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.760Z] return manager._insert(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.760Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.760Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.760Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.760Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.760Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.760Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.760Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.760Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.760Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3530>
[2024-11-23T20:01:20.760Z] 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-23T20:01:20.760Z] params = ('md5$ZshQiPPPGlPrLk0WNByvxJ$3017aeb2e0ff0b844618d64b442074c7', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.760Z] if params is None:
[2024-11-23T20:01:20.760Z] return super().execute(query)
[2024-11-23T20:01:20.760Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.760Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.760Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.760Z] > return super().execute(query, params)
[2024-11-23T20:01:20.760Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.760Z] _________ CustomTokenAuthTests.test_fail_post_if_token_contains_spaces _________
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2eec30>
[2024-11-23T20:01:20.760Z] 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-23T20:01:20.760Z] params = ('md5$GCyM2JLg9TC9vLw0Ffi1n2$ecd33e4554b33ebff5ba1e6fbd24c26e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.760Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2eec30>})
[2024-11-23T20:01:20.760Z]
[2024-11-23T20:01:20.760Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.760Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.760Z] # ever set during testing).
[2024-11-23T20:01:20.760Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.760Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.761Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.761Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.761Z] if params is None:
[2024-11-23T20:01:20.761Z] # params default might be backend specific.
[2024-11-23T20:01:20.761Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.761Z] else:
[2024-11-23T20:01:20.761Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.761Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ffec0>
[2024-11-23T20:01:20.761Z] 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-23T20:01:20.761Z] params = ('md5$GCyM2JLg9TC9vLw0Ffi1n2$ecd33e4554b33ebff5ba1e6fbd24c26e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.761Z] if params is None:
[2024-11-23T20:01:20.761Z] return super().execute(query)
[2024-11-23T20:01:20.761Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.761Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.761Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.761Z] > return super().execute(query, params)
[2024-11-23T20:01:20.761Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_if_token_contains_spaces>
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] def setUp(self):
[2024-11-23T20:01:20.761Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.761Z] self.username = 'john'
[2024-11-23T20:01:20.761Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.761Z] self.password = 'password'
[2024-11-23T20:01:20.761Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.761Z] self.username, self.email, self.password
[2024-11-23T20:01:20.761Z] )
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.761Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.761Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.761Z] user.save(using=self._db)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.761Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.761Z] self.save_base(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.761Z] updated = self._save_table(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.761Z] results = self._do_insert(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.761Z] return manager._insert(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.761Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.761Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.761Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.761Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.761Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.761Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.761Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.761Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.761Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ffec0>
[2024-11-23T20:01:20.761Z] 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-23T20:01:20.761Z] params = ('md5$GCyM2JLg9TC9vLw0Ffi1n2$ecd33e4554b33ebff5ba1e6fbd24c26e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.761Z] if params is None:
[2024-11-23T20:01:20.761Z] return super().execute(query)
[2024-11-23T20:01:20.761Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.761Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.761Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.761Z] > return super().execute(query, params)
[2024-11-23T20:01:20.761Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.761Z] ___________ CustomTokenAuthTests.test_fail_post_if_token_is_missing ____________
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2ef8f0>
[2024-11-23T20:01:20.761Z] 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-23T20:01:20.761Z] params = ('md5$PPyHSHl453jvGtPuWsJV2I$2f94607c8403919165bc8dc6bab98178', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.761Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2ef8f0>})
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.761Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.761Z] # ever set during testing).
[2024-11-23T20:01:20.761Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.761Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.761Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.761Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.761Z] if params is None:
[2024-11-23T20:01:20.761Z] # params default might be backend specific.
[2024-11-23T20:01:20.761Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.761Z] else:
[2024-11-23T20:01:20.761Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.761Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff380>
[2024-11-23T20:01:20.761Z] 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-23T20:01:20.761Z] params = ('md5$PPyHSHl453jvGtPuWsJV2I$2f94607c8403919165bc8dc6bab98178', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.761Z] if params is None:
[2024-11-23T20:01:20.761Z] return super().execute(query)
[2024-11-23T20:01:20.761Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.761Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.761Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.761Z] > return super().execute(query, params)
[2024-11-23T20:01:20.761Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_if_token_is_missing>
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] def setUp(self):
[2024-11-23T20:01:20.761Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.761Z] self.username = 'john'
[2024-11-23T20:01:20.761Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.761Z] self.password = 'password'
[2024-11-23T20:01:20.761Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.761Z] self.username, self.email, self.password
[2024-11-23T20:01:20.761Z] )
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.761Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.761Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.761Z] user.save(using=self._db)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.761Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.761Z] self.save_base(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.761Z] updated = self._save_table(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.761Z] results = self._do_insert(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.761Z] return manager._insert(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.761Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.761Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.761Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.761Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.761Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.761Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.761Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.761Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.761Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.761Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.761Z]
[2024-11-23T20:01:20.761Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff380>
[2024-11-23T20:01:20.762Z] 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-23T20:01:20.762Z] params = ('md5$PPyHSHl453jvGtPuWsJV2I$2f94607c8403919165bc8dc6bab98178', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.762Z] if params is None:
[2024-11-23T20:01:20.762Z] return super().execute(query)
[2024-11-23T20:01:20.762Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.762Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.762Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.762Z] > return super().execute(query, params)
[2024-11-23T20:01:20.762Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.762Z] ____________ CustomTokenAuthTests.test_post_form_failing_token_auth ____________
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d9550>
[2024-11-23T20:01:20.762Z] 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-23T20:01:20.762Z] params = ('md5$RK8fomzgwWjA9yXQW94YwC$c462c8607b635f9824935e7d48880dbd', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.762Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d9550>})
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.762Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.762Z] # ever set during testing).
[2024-11-23T20:01:20.762Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.762Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.762Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.762Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.762Z] if params is None:
[2024-11-23T20:01:20.762Z] # params default might be backend specific.
[2024-11-23T20:01:20.762Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.762Z] else:
[2024-11-23T20:01:20.762Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.762Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff2f0>
[2024-11-23T20:01:20.762Z] 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-23T20:01:20.762Z] params = ('md5$RK8fomzgwWjA9yXQW94YwC$c462c8607b635f9824935e7d48880dbd', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.762Z] if params is None:
[2024-11-23T20:01:20.762Z] return super().execute(query)
[2024-11-23T20:01:20.762Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.762Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.762Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.762Z] > return super().execute(query, params)
[2024-11-23T20:01:20.762Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_form_failing_token_auth>
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def setUp(self):
[2024-11-23T20:01:20.762Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.762Z] self.username = 'john'
[2024-11-23T20:01:20.762Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.762Z] self.password = 'password'
[2024-11-23T20:01:20.762Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.762Z] self.username, self.email, self.password
[2024-11-23T20:01:20.762Z] )
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.762Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.762Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.762Z] user.save(using=self._db)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.762Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.762Z] self.save_base(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.762Z] updated = self._save_table(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.762Z] results = self._do_insert(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.762Z] return manager._insert(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.762Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.762Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.762Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.762Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.762Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.762Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.762Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.762Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.762Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff2f0>
[2024-11-23T20:01:20.762Z] 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-23T20:01:20.762Z] params = ('md5$RK8fomzgwWjA9yXQW94YwC$c462c8607b635f9824935e7d48880dbd', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.762Z] if params is None:
[2024-11-23T20:01:20.762Z] return super().execute(query)
[2024-11-23T20:01:20.762Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.762Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.762Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.762Z] > return super().execute(query, params)
[2024-11-23T20:01:20.762Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.762Z] ____________ CustomTokenAuthTests.test_post_form_passing_token_auth ____________
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d9070>
[2024-11-23T20:01:20.762Z] 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-23T20:01:20.762Z] params = ('md5$vDAQCbqp3QI9UAwCeNpifX$e92217d6bd1a3072857660849104118e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.762Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d9070>})
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.762Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.762Z] # ever set during testing).
[2024-11-23T20:01:20.762Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.762Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.762Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.762Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.762Z] if params is None:
[2024-11-23T20:01:20.762Z] # params default might be backend specific.
[2024-11-23T20:01:20.762Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.762Z] else:
[2024-11-23T20:01:20.762Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.762Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d12e0>
[2024-11-23T20:01:20.762Z] 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-23T20:01:20.762Z] params = ('md5$vDAQCbqp3QI9UAwCeNpifX$e92217d6bd1a3072857660849104118e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.762Z] if params is None:
[2024-11-23T20:01:20.762Z] return super().execute(query)
[2024-11-23T20:01:20.762Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.762Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.762Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.762Z] > return super().execute(query, params)
[2024-11-23T20:01:20.762Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_form_passing_token_auth>
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] def setUp(self):
[2024-11-23T20:01:20.762Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.762Z] self.username = 'john'
[2024-11-23T20:01:20.762Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.762Z] self.password = 'password'
[2024-11-23T20:01:20.762Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.762Z] self.username, self.email, self.password
[2024-11-23T20:01:20.762Z] )
[2024-11-23T20:01:20.762Z]
[2024-11-23T20:01:20.762Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.762Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.762Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.762Z] user.save(using=self._db)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.762Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.762Z] self.save_base(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.762Z] updated = self._save_table(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.762Z] results = self._do_insert(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.762Z] return manager._insert(
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.762Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.762Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.762Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.762Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.763Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.763Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.763Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.763Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.763Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.763Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d12e0>
[2024-11-23T20:01:20.763Z] 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-23T20:01:20.763Z] params = ('md5$vDAQCbqp3QI9UAwCeNpifX$e92217d6bd1a3072857660849104118e', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.763Z] if params is None:
[2024-11-23T20:01:20.763Z] return super().execute(query)
[2024-11-23T20:01:20.763Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.763Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.763Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.763Z] > return super().execute(query, params)
[2024-11-23T20:01:20.763Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.763Z] ____________ CustomTokenAuthTests.test_post_json_failing_token_auth ____________
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d9790>
[2024-11-23T20:01:20.763Z] 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-23T20:01:20.763Z] params = ('md5$uTliCdERNIN6HfgCFwnPAN$68f1b25329c1976cf04f329c51a2af98', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.763Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d9790>})
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.763Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.763Z] # ever set during testing).
[2024-11-23T20:01:20.763Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.763Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.763Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.763Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.763Z] if params is None:
[2024-11-23T20:01:20.763Z] # params default might be backend specific.
[2024-11-23T20:01:20.763Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.763Z] else:
[2024-11-23T20:01:20.763Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.763Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe4e0>
[2024-11-23T20:01:20.763Z] 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-23T20:01:20.763Z] params = ('md5$uTliCdERNIN6HfgCFwnPAN$68f1b25329c1976cf04f329c51a2af98', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.763Z] if params is None:
[2024-11-23T20:01:20.763Z] return super().execute(query)
[2024-11-23T20:01:20.763Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.763Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.763Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.763Z] > return super().execute(query, params)
[2024-11-23T20:01:20.763Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_json_failing_token_auth>
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def setUp(self):
[2024-11-23T20:01:20.763Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.763Z] self.username = 'john'
[2024-11-23T20:01:20.763Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.763Z] self.password = 'password'
[2024-11-23T20:01:20.763Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.763Z] self.username, self.email, self.password
[2024-11-23T20:01:20.763Z] )
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.763Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.763Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.763Z] user.save(using=self._db)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.763Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.763Z] self.save_base(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.763Z] updated = self._save_table(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.763Z] results = self._do_insert(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.763Z] return manager._insert(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.763Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.763Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.763Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.763Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.763Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.763Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.763Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.763Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.763Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe4e0>
[2024-11-23T20:01:20.763Z] 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-23T20:01:20.763Z] params = ('md5$uTliCdERNIN6HfgCFwnPAN$68f1b25329c1976cf04f329c51a2af98', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.763Z] if params is None:
[2024-11-23T20:01:20.763Z] return super().execute(query)
[2024-11-23T20:01:20.763Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.763Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.763Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.763Z] > return super().execute(query, params)
[2024-11-23T20:01:20.763Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.763Z] ____________ CustomTokenAuthTests.test_post_json_makes_one_db_query ____________
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2ef590>
[2024-11-23T20:01:20.763Z] 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-23T20:01:20.763Z] params = ('md5$8WFzEK3xFX4YcgPiekHQSV$647777fae08d365c6470d584ddf7bca4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.763Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2ef590>})
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.763Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.763Z] # ever set during testing).
[2024-11-23T20:01:20.763Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.763Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.763Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.763Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.763Z] if params is None:
[2024-11-23T20:01:20.763Z] # params default might be backend specific.
[2024-11-23T20:01:20.763Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.763Z] else:
[2024-11-23T20:01:20.763Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.763Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ffda0>
[2024-11-23T20:01:20.763Z] 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-23T20:01:20.763Z] params = ('md5$8WFzEK3xFX4YcgPiekHQSV$647777fae08d365c6470d584ddf7bca4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.763Z] if params is None:
[2024-11-23T20:01:20.763Z] return super().execute(query)
[2024-11-23T20:01:20.763Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.763Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.763Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.763Z] > return super().execute(query, params)
[2024-11-23T20:01:20.763Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_json_makes_one_db_query>
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] def setUp(self):
[2024-11-23T20:01:20.763Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.763Z] self.username = 'john'
[2024-11-23T20:01:20.763Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.763Z] self.password = 'password'
[2024-11-23T20:01:20.763Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.763Z] self.username, self.email, self.password
[2024-11-23T20:01:20.763Z] )
[2024-11-23T20:01:20.763Z]
[2024-11-23T20:01:20.763Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.763Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.763Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.763Z] user.save(using=self._db)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.763Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.763Z] self.save_base(
[2024-11-23T20:01:20.763Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.764Z] updated = self._save_table(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.764Z] results = self._do_insert(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.764Z] return manager._insert(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.764Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.764Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.764Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.764Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.764Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.764Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.764Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.764Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.764Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ffda0>
[2024-11-23T20:01:20.764Z] 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-23T20:01:20.764Z] params = ('md5$8WFzEK3xFX4YcgPiekHQSV$647777fae08d365c6470d584ddf7bca4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.764Z] if params is None:
[2024-11-23T20:01:20.764Z] return super().execute(query)
[2024-11-23T20:01:20.764Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.764Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.764Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.764Z] > return super().execute(query, params)
[2024-11-23T20:01:20.764Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.764Z] ____________ CustomTokenAuthTests.test_post_json_passing_token_auth ____________
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2ee810>
[2024-11-23T20:01:20.764Z] 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-23T20:01:20.764Z] params = ('md5$uAukHOCgl4WIX7CjaTsdaT$49eee6a6a60e622b0c544e2016e11065', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.764Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2ee810>})
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.764Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.764Z] # ever set during testing).
[2024-11-23T20:01:20.764Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.764Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.764Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.764Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.764Z] if params is None:
[2024-11-23T20:01:20.764Z] # params default might be backend specific.
[2024-11-23T20:01:20.764Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.764Z] else:
[2024-11-23T20:01:20.764Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.764Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fcb90>
[2024-11-23T20:01:20.764Z] 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-23T20:01:20.764Z] params = ('md5$uAukHOCgl4WIX7CjaTsdaT$49eee6a6a60e622b0c544e2016e11065', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.764Z] if params is None:
[2024-11-23T20:01:20.764Z] return super().execute(query)
[2024-11-23T20:01:20.764Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.764Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.764Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.764Z] > return super().execute(query, params)
[2024-11-23T20:01:20.764Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_json_passing_token_auth>
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def setUp(self):
[2024-11-23T20:01:20.764Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.764Z] self.username = 'john'
[2024-11-23T20:01:20.764Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.764Z] self.password = 'password'
[2024-11-23T20:01:20.764Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.764Z] self.username, self.email, self.password
[2024-11-23T20:01:20.764Z] )
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.764Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.764Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.764Z] user.save(using=self._db)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.764Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.764Z] self.save_base(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.764Z] updated = self._save_table(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.764Z] results = self._do_insert(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.764Z] return manager._insert(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.764Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.764Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.764Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.764Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.764Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.764Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.764Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.764Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.764Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fcb90>
[2024-11-23T20:01:20.764Z] 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-23T20:01:20.764Z] params = ('md5$uAukHOCgl4WIX7CjaTsdaT$49eee6a6a60e622b0c544e2016e11065', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.764Z] if params is None:
[2024-11-23T20:01:20.764Z] return super().execute(query)
[2024-11-23T20:01:20.764Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.764Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.764Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.764Z] > return super().execute(query, params)
[2024-11-23T20:01:20.764Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.764Z] __ CustomKeywordTokenAuthTests.test_fail_authentication_if_user_is_not_active __
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb31d8b0>
[2024-11-23T20:01:20.764Z] 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-23T20:01:20.764Z] params = ('md5$1JkAPYTX7i3QPEXUqIYFWS$2d86c806f5563f2cef70115972639877', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.764Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb31d8b0>})
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.764Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.764Z] # ever set during testing).
[2024-11-23T20:01:20.764Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.764Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.764Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.764Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.764Z] if params is None:
[2024-11-23T20:01:20.764Z] # params default might be backend specific.
[2024-11-23T20:01:20.764Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.764Z] else:
[2024-11-23T20:01:20.764Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.764Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec8560f0>
[2024-11-23T20:01:20.764Z] 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-23T20:01:20.764Z] params = ('md5$1JkAPYTX7i3QPEXUqIYFWS$2d86c806f5563f2cef70115972639877', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.764Z] if params is None:
[2024-11-23T20:01:20.764Z] return super().execute(query)
[2024-11-23T20:01:20.764Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.764Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.764Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.764Z] > return super().execute(query, params)
[2024-11-23T20:01:20.764Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_authentication_if_user_is_not_active>
[2024-11-23T20:01:20.764Z]
[2024-11-23T20:01:20.764Z] def setUp(self):
[2024-11-23T20:01:20.764Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.764Z] self.username = 'john'
[2024-11-23T20:01:20.764Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.764Z] self.password = 'password'
[2024-11-23T20:01:20.765Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.765Z] self.username, self.email, self.password
[2024-11-23T20:01:20.765Z] )
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.765Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.765Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.765Z] user.save(using=self._db)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.765Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.765Z] self.save_base(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.765Z] updated = self._save_table(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.765Z] results = self._do_insert(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.765Z] return manager._insert(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.765Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.765Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.765Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.765Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.765Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.765Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.765Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.765Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.765Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec8560f0>
[2024-11-23T20:01:20.765Z] 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-23T20:01:20.765Z] params = ('md5$1JkAPYTX7i3QPEXUqIYFWS$2d86c806f5563f2cef70115972639877', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.765Z] if params is None:
[2024-11-23T20:01:20.765Z] return super().execute(query)
[2024-11-23T20:01:20.765Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.765Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.765Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.765Z] > return super().execute(query, params)
[2024-11-23T20:01:20.765Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.765Z] __ CustomKeywordTokenAuthTests.test_fail_post_form_passing_invalid_token_auth __
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb31d430>
[2024-11-23T20:01:20.765Z] 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-23T20:01:20.765Z] params = ('md5$GM11DkE1gGxuHDEuJdTXj0$8ea8338340fe0f3170adb44772f3ff87', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.765Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb31d430>})
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.765Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.765Z] # ever set during testing).
[2024-11-23T20:01:20.765Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.765Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.765Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.765Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.765Z] if params is None:
[2024-11-23T20:01:20.765Z] # params default might be backend specific.
[2024-11-23T20:01:20.765Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.765Z] else:
[2024-11-23T20:01:20.765Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.765Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fecc0>
[2024-11-23T20:01:20.765Z] 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-23T20:01:20.765Z] params = ('md5$GM11DkE1gGxuHDEuJdTXj0$8ea8338340fe0f3170adb44772f3ff87', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.765Z] if params is None:
[2024-11-23T20:01:20.765Z] return super().execute(query)
[2024-11-23T20:01:20.765Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.765Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.765Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.765Z] > return super().execute(query, params)
[2024-11-23T20:01:20.765Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_form_passing_invalid_token_auth>
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def setUp(self):
[2024-11-23T20:01:20.765Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.765Z] self.username = 'john'
[2024-11-23T20:01:20.765Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.765Z] self.password = 'password'
[2024-11-23T20:01:20.765Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.765Z] self.username, self.email, self.password
[2024-11-23T20:01:20.765Z] )
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.765Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.765Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.765Z] user.save(using=self._db)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.765Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.765Z] self.save_base(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.765Z] updated = self._save_table(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.765Z] results = self._do_insert(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.765Z] return manager._insert(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.765Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.765Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.765Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.765Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.765Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.765Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.765Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.765Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.765Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fecc0>
[2024-11-23T20:01:20.765Z] 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-23T20:01:20.765Z] params = ('md5$GM11DkE1gGxuHDEuJdTXj0$8ea8338340fe0f3170adb44772f3ff87', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.765Z] if params is None:
[2024-11-23T20:01:20.765Z] return super().execute(query)
[2024-11-23T20:01:20.765Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.765Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.765Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.765Z] > return super().execute(query, params)
[2024-11-23T20:01:20.765Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.765Z] _ CustomKeywordTokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth _
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb31e690>
[2024-11-23T20:01:20.765Z] 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-23T20:01:20.765Z] params = ('md5$cM0eXl4EnPNT3nwhYiXiQm$35afe3929ed98369ea47f39cd2830853', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.765Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb31e690>})
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.765Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.765Z] # ever set during testing).
[2024-11-23T20:01:20.765Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.765Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.765Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.765Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.765Z] if params is None:
[2024-11-23T20:01:20.765Z] # params default might be backend specific.
[2024-11-23T20:01:20.765Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.765Z] else:
[2024-11-23T20:01:20.765Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.765Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe0f0>
[2024-11-23T20:01:20.765Z] 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-23T20:01:20.765Z] params = ('md5$cM0eXl4EnPNT3nwhYiXiQm$35afe3929ed98369ea47f39cd2830853', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.765Z]
[2024-11-23T20:01:20.765Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.766Z] if params is None:
[2024-11-23T20:01:20.766Z] return super().execute(query)
[2024-11-23T20:01:20.766Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.766Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.766Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.766Z] > return super().execute(query, params)
[2024-11-23T20:01:20.766Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_form_passing_nonexistent_token_auth>
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] def setUp(self):
[2024-11-23T20:01:20.766Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.766Z] self.username = 'john'
[2024-11-23T20:01:20.766Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.766Z] self.password = 'password'
[2024-11-23T20:01:20.766Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.766Z] self.username, self.email, self.password
[2024-11-23T20:01:20.766Z] )
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.766Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.766Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.766Z] user.save(using=self._db)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.766Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.766Z] self.save_base(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.766Z] updated = self._save_table(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.766Z] results = self._do_insert(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.766Z] return manager._insert(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.766Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.766Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.766Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.766Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.766Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.766Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.766Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.766Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.766Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe0f0>
[2024-11-23T20:01:20.766Z] 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-23T20:01:20.766Z] params = ('md5$cM0eXl4EnPNT3nwhYiXiQm$35afe3929ed98369ea47f39cd2830853', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.766Z] if params is None:
[2024-11-23T20:01:20.766Z] return super().execute(query)
[2024-11-23T20:01:20.766Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.766Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.766Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.766Z] > return super().execute(query, params)
[2024-11-23T20:01:20.766Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.766Z] _____ CustomKeywordTokenAuthTests.test_fail_post_if_token_contains_spaces ______
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2ec890>
[2024-11-23T20:01:20.766Z] 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-23T20:01:20.766Z] params = ('md5$uRNTLBmn9W2mFXEJcDcGMn$39baf01ee79296dc56b2def61ed251f0', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.766Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2ec890>})
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.766Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.766Z] # ever set during testing).
[2024-11-23T20:01:20.766Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.766Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.766Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.766Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.766Z] if params is None:
[2024-11-23T20:01:20.766Z] # params default might be backend specific.
[2024-11-23T20:01:20.766Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.766Z] else:
[2024-11-23T20:01:20.766Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.766Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec8560f0>
[2024-11-23T20:01:20.766Z] 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-23T20:01:20.766Z] params = ('md5$uRNTLBmn9W2mFXEJcDcGMn$39baf01ee79296dc56b2def61ed251f0', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.766Z] if params is None:
[2024-11-23T20:01:20.766Z] return super().execute(query)
[2024-11-23T20:01:20.766Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.766Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.766Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.766Z] > return super().execute(query, params)
[2024-11-23T20:01:20.766Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_if_token_contains_spaces>
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] def setUp(self):
[2024-11-23T20:01:20.766Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.766Z] self.username = 'john'
[2024-11-23T20:01:20.766Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.766Z] self.password = 'password'
[2024-11-23T20:01:20.766Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.766Z] self.username, self.email, self.password
[2024-11-23T20:01:20.766Z] )
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.766Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.766Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.766Z] user.save(using=self._db)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.766Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.766Z] self.save_base(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.766Z] updated = self._save_table(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.766Z] results = self._do_insert(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.766Z] return manager._insert(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.766Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.766Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.766Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.766Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.766Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.766Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.766Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.766Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.766Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec8560f0>
[2024-11-23T20:01:20.766Z] 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-23T20:01:20.766Z] params = ('md5$uRNTLBmn9W2mFXEJcDcGMn$39baf01ee79296dc56b2def61ed251f0', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.766Z] if params is None:
[2024-11-23T20:01:20.766Z] return super().execute(query)
[2024-11-23T20:01:20.766Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.766Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.766Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.766Z] > return super().execute(query, params)
[2024-11-23T20:01:20.766Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.766Z] ________ CustomKeywordTokenAuthTests.test_fail_post_if_token_is_missing ________
[2024-11-23T20:01:20.766Z]
[2024-11-23T20:01:20.766Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb316690>
[2024-11-23T20:01:20.766Z] 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-23T20:01:20.766Z] params = ('md5$d0Ec5tCxZuBiMCcN1C4Ax9$58337accfbdd333235f59d2929470115', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.767Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb316690>})
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.767Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.767Z] # ever set during testing).
[2024-11-23T20:01:20.767Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.767Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.767Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.767Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.767Z] if params is None:
[2024-11-23T20:01:20.767Z] # params default might be backend specific.
[2024-11-23T20:01:20.767Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.767Z] else:
[2024-11-23T20:01:20.767Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.767Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff020>
[2024-11-23T20:01:20.767Z] 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-23T20:01:20.767Z] params = ('md5$d0Ec5tCxZuBiMCcN1C4Ax9$58337accfbdd333235f59d2929470115', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.767Z] if params is None:
[2024-11-23T20:01:20.767Z] return super().execute(query)
[2024-11-23T20:01:20.767Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.767Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.767Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.767Z] > return super().execute(query, params)
[2024-11-23T20:01:20.767Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_if_token_is_missing>
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def setUp(self):
[2024-11-23T20:01:20.767Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.767Z] self.username = 'john'
[2024-11-23T20:01:20.767Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.767Z] self.password = 'password'
[2024-11-23T20:01:20.767Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.767Z] self.username, self.email, self.password
[2024-11-23T20:01:20.767Z] )
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.767Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.767Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.767Z] user.save(using=self._db)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.767Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.767Z] self.save_base(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.767Z] updated = self._save_table(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.767Z] results = self._do_insert(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.767Z] return manager._insert(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.767Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.767Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.767Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.767Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.767Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.767Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.767Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.767Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.767Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff020>
[2024-11-23T20:01:20.767Z] 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-23T20:01:20.767Z] params = ('md5$d0Ec5tCxZuBiMCcN1C4Ax9$58337accfbdd333235f59d2929470115', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.767Z] if params is None:
[2024-11-23T20:01:20.767Z] return super().execute(query)
[2024-11-23T20:01:20.767Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.767Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.767Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.767Z] > return super().execute(query, params)
[2024-11-23T20:01:20.767Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.767Z] ________ CustomKeywordTokenAuthTests.test_post_form_failing_token_auth _________
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f4710>
[2024-11-23T20:01:20.767Z] 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-23T20:01:20.767Z] params = ('md5$ILtHnbLiaI9JWvNElIxWMs$b02b6c1bc34a4d7960323ea73b3bce50', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.767Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f4710>})
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.767Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.767Z] # ever set during testing).
[2024-11-23T20:01:20.767Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.767Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.767Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.767Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.767Z] if params is None:
[2024-11-23T20:01:20.767Z] # params default might be backend specific.
[2024-11-23T20:01:20.767Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.767Z] else:
[2024-11-23T20:01:20.767Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.767Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec8560f0>
[2024-11-23T20:01:20.767Z] 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-23T20:01:20.767Z] params = ('md5$ILtHnbLiaI9JWvNElIxWMs$b02b6c1bc34a4d7960323ea73b3bce50', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.767Z] if params is None:
[2024-11-23T20:01:20.767Z] return super().execute(query)
[2024-11-23T20:01:20.767Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.767Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.767Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.767Z] > return super().execute(query, params)
[2024-11-23T20:01:20.767Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_form_failing_token_auth>
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def setUp(self):
[2024-11-23T20:01:20.767Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.767Z] self.username = 'john'
[2024-11-23T20:01:20.767Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.767Z] self.password = 'password'
[2024-11-23T20:01:20.767Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.767Z] self.username, self.email, self.password
[2024-11-23T20:01:20.767Z] )
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.767Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.767Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.767Z] user.save(using=self._db)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.767Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.767Z] self.save_base(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.767Z] updated = self._save_table(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.767Z] results = self._do_insert(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.767Z] return manager._insert(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.767Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.767Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.767Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.767Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.767Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.767Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.767Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.767Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.767Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.767Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ec8560f0>
[2024-11-23T20:01:20.767Z] 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-23T20:01:20.767Z] params = ('md5$ILtHnbLiaI9JWvNElIxWMs$b02b6c1bc34a4d7960323ea73b3bce50', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.767Z]
[2024-11-23T20:01:20.767Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.767Z] if params is None:
[2024-11-23T20:01:20.767Z] return super().execute(query)
[2024-11-23T20:01:20.767Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.768Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.768Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.768Z] > return super().execute(query, params)
[2024-11-23T20:01:20.768Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.768Z] ________ CustomKeywordTokenAuthTests.test_post_form_passing_token_auth _________
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb3177d0>
[2024-11-23T20:01:20.768Z] 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-23T20:01:20.768Z] params = ('md5$31Oum1MNeuhBZQqcnqUHW9$69899bc6de2f41403f13e7ba7af45bda', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.768Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb3177d0>})
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.768Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.768Z] # ever set during testing).
[2024-11-23T20:01:20.768Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.768Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.768Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.768Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.768Z] if params is None:
[2024-11-23T20:01:20.768Z] # params default might be backend specific.
[2024-11-23T20:01:20.768Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.768Z] else:
[2024-11-23T20:01:20.768Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.768Z] 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-23T20:01:20.768Z] params = ('md5$31Oum1MNeuhBZQqcnqUHW9$69899bc6de2f41403f13e7ba7af45bda', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.768Z] if params is None:
[2024-11-23T20:01:20.768Z] return super().execute(query)
[2024-11-23T20:01:20.768Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.768Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.768Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.768Z] > return super().execute(query, params)
[2024-11-23T20:01:20.768Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_form_passing_token_auth>
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def setUp(self):
[2024-11-23T20:01:20.768Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.768Z] self.username = 'john'
[2024-11-23T20:01:20.768Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.768Z] self.password = 'password'
[2024-11-23T20:01:20.768Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.768Z] self.username, self.email, self.password
[2024-11-23T20:01:20.768Z] )
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.768Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.768Z] user.save(using=self._db)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.768Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.768Z] self.save_base(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.768Z] updated = self._save_table(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.768Z] results = self._do_insert(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.768Z] return manager._insert(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.768Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.768Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.768Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.768Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.768Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.768Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.768Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.768Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.768Z] 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-23T20:01:20.768Z] params = ('md5$31Oum1MNeuhBZQqcnqUHW9$69899bc6de2f41403f13e7ba7af45bda', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.768Z] if params is None:
[2024-11-23T20:01:20.768Z] return super().execute(query)
[2024-11-23T20:01:20.768Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.768Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.768Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.768Z] > return super().execute(query, params)
[2024-11-23T20:01:20.768Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.768Z] ________ CustomKeywordTokenAuthTests.test_post_json_failing_token_auth _________
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb314e30>
[2024-11-23T20:01:20.768Z] 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-23T20:01:20.768Z] params = ('md5$TnpFF3G6shhsXXUJh3A64O$db7ad206c178013303457f7b08299836', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.768Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb314e30>})
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.768Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.768Z] # ever set during testing).
[2024-11-23T20:01:20.768Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.768Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.768Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.768Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.768Z] if params is None:
[2024-11-23T20:01:20.768Z] # params default might be backend specific.
[2024-11-23T20:01:20.768Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.768Z] else:
[2024-11-23T20:01:20.768Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff2f0>
[2024-11-23T20:01:20.768Z] 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-23T20:01:20.768Z] params = ('md5$TnpFF3G6shhsXXUJh3A64O$db7ad206c178013303457f7b08299836', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.768Z] if params is None:
[2024-11-23T20:01:20.768Z] return super().execute(query)
[2024-11-23T20:01:20.768Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.768Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.768Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.768Z] > return super().execute(query, params)
[2024-11-23T20:01:20.768Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_json_failing_token_auth>
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] def setUp(self):
[2024-11-23T20:01:20.768Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.768Z] self.username = 'john'
[2024-11-23T20:01:20.768Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.768Z] self.password = 'password'
[2024-11-23T20:01:20.768Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.768Z] self.username, self.email, self.password
[2024-11-23T20:01:20.768Z] )
[2024-11-23T20:01:20.768Z]
[2024-11-23T20:01:20.768Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.768Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.768Z] user.save(using=self._db)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.768Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.768Z] self.save_base(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.768Z] updated = self._save_table(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.768Z] results = self._do_insert(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.768Z] return manager._insert(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.768Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.768Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.768Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.768Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.768Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.768Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.768Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.768Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.769Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.769Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff2f0>
[2024-11-23T20:01:20.769Z] 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-23T20:01:20.769Z] params = ('md5$TnpFF3G6shhsXXUJh3A64O$db7ad206c178013303457f7b08299836', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.769Z] if params is None:
[2024-11-23T20:01:20.769Z] return super().execute(query)
[2024-11-23T20:01:20.769Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.769Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.769Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.769Z] > return super().execute(query, params)
[2024-11-23T20:01:20.769Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.769Z] ________ CustomKeywordTokenAuthTests.test_post_json_makes_one_db_query _________
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2ec890>
[2024-11-23T20:01:20.769Z] 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-23T20:01:20.769Z] params = ('md5$kV34FYbwu36HHf3cib71xj$281d3f414d148aecc35efd04d6efb9a8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.769Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2ec890>})
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.769Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.769Z] # ever set during testing).
[2024-11-23T20:01:20.769Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.769Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.769Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.769Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.769Z] if params is None:
[2024-11-23T20:01:20.769Z] # params default might be backend specific.
[2024-11-23T20:01:20.769Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.769Z] else:
[2024-11-23T20:01:20.769Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.769Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d31d0>
[2024-11-23T20:01:20.769Z] 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-23T20:01:20.769Z] params = ('md5$kV34FYbwu36HHf3cib71xj$281d3f414d148aecc35efd04d6efb9a8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.769Z] if params is None:
[2024-11-23T20:01:20.769Z] return super().execute(query)
[2024-11-23T20:01:20.769Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.769Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.769Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.769Z] > return super().execute(query, params)
[2024-11-23T20:01:20.769Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_json_makes_one_db_query>
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def setUp(self):
[2024-11-23T20:01:20.769Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.769Z] self.username = 'john'
[2024-11-23T20:01:20.769Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.769Z] self.password = 'password'
[2024-11-23T20:01:20.769Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.769Z] self.username, self.email, self.password
[2024-11-23T20:01:20.769Z] )
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.769Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.769Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.769Z] user.save(using=self._db)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.769Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.769Z] self.save_base(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.769Z] updated = self._save_table(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.769Z] results = self._do_insert(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.769Z] return manager._insert(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.769Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.769Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.769Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.769Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.769Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.769Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.769Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.769Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.769Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d31d0>
[2024-11-23T20:01:20.769Z] 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-23T20:01:20.769Z] params = ('md5$kV34FYbwu36HHf3cib71xj$281d3f414d148aecc35efd04d6efb9a8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.769Z] if params is None:
[2024-11-23T20:01:20.769Z] return super().execute(query)
[2024-11-23T20:01:20.769Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.769Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.769Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.769Z] > return super().execute(query, params)
[2024-11-23T20:01:20.769Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.769Z] ________ CustomKeywordTokenAuthTests.test_post_json_passing_token_auth _________
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f3d10>
[2024-11-23T20:01:20.769Z] 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-23T20:01:20.769Z] params = ('md5$g1wqizQlh2oR5ikMpdmFY9$e1f7dbf2db4f4f2547f4254ad9c43f21', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.769Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f3d10>})
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.769Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.769Z] # ever set during testing).
[2024-11-23T20:01:20.769Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.769Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.769Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.769Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.769Z] if params is None:
[2024-11-23T20:01:20.769Z] # params default might be backend specific.
[2024-11-23T20:01:20.769Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.769Z] else:
[2024-11-23T20:01:20.769Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.769Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff2f0>
[2024-11-23T20:01:20.769Z] 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-23T20:01:20.769Z] params = ('md5$g1wqizQlh2oR5ikMpdmFY9$e1f7dbf2db4f4f2547f4254ad9c43f21', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.769Z] if params is None:
[2024-11-23T20:01:20.769Z] return super().execute(query)
[2024-11-23T20:01:20.769Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.769Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.769Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.769Z] > return super().execute(query, params)
[2024-11-23T20:01:20.769Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_json_passing_token_auth>
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] def setUp(self):
[2024-11-23T20:01:20.769Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.769Z] self.username = 'john'
[2024-11-23T20:01:20.769Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.769Z] self.password = 'password'
[2024-11-23T20:01:20.769Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.769Z] self.username, self.email, self.password
[2024-11-23T20:01:20.769Z] )
[2024-11-23T20:01:20.769Z]
[2024-11-23T20:01:20.769Z] tests/authentication/test_authentication.py:298:
[2024-11-23T20:01:20.769Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.769Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.769Z] user.save(using=self._db)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.769Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.769Z] self.save_base(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.769Z] updated = self._save_table(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.769Z] results = self._do_insert(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.769Z] return manager._insert(
[2024-11-23T20:01:20.769Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.769Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.770Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.770Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.770Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.770Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.770Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.770Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.770Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.770Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff2f0>
[2024-11-23T20:01:20.770Z] 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-23T20:01:20.770Z] params = ('md5$g1wqizQlh2oR5ikMpdmFY9$e1f7dbf2db4f4f2547f4254ad9c43f21', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.770Z] if params is None:
[2024-11-23T20:01:20.770Z] return super().execute(query)
[2024-11-23T20:01:20.770Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.770Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.770Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.770Z] > return super().execute(query, params)
[2024-11-23T20:01:20.770Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.770Z] _ BasicAuthenticationUnitTests.test_basic_authentication_raises_error_if_user_not_found _
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2f2930>
[2024-11-23T20:01:20.770Z] 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-23T20:01:20.770Z] params = ('invalid id',)
[2024-11-23T20:01:20.770Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2f2930>})
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.770Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.770Z] # ever set during testing).
[2024-11-23T20:01:20.770Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.770Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.770Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.770Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.770Z] if params is None:
[2024-11-23T20:01:20.770Z] # params default might be backend specific.
[2024-11-23T20:01:20.770Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.770Z] else:
[2024-11-23T20:01:20.770Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.770Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0cb0>
[2024-11-23T20:01:20.770Z] 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-23T20:01:20.770Z] params = ('invalid id',)
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.770Z] if params is None:
[2024-11-23T20:01:20.770Z] return super().execute(query)
[2024-11-23T20:01:20.770Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.770Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.770Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.770Z] > return super().execute(query, params)
[2024-11-23T20:01:20.770Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <tests.authentication.test_authentication.BasicAuthenticationUnitTests testMethod=test_basic_authentication_raises_error_if_user_not_found>
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def test_basic_authentication_raises_error_if_user_not_found(self):
[2024-11-23T20:01:20.770Z] auth = BasicAuthentication()
[2024-11-23T20:01:20.770Z] with pytest.raises(exceptions.AuthenticationFailed):
[2024-11-23T20:01:20.770Z] > auth.authenticate_credentials('invalid id', 'invalid password')
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] tests/authentication/test_authentication.py:567:
[2024-11-23T20:01:20.770Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.770Z] rest_framework/authentication.py:98: in authenticate_credentials
[2024-11-23T20:01:20.770Z] user = authenticate(request=request, **credentials)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/views/decorators/debug.py:75: in sensitive_variables_wrapper
[2024-11-23T20:01:20.770Z] return func(*func_args, **func_kwargs)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/contrib/auth/__init__.py:79: in authenticate
[2024-11-23T20:01:20.770Z] user = backend.authenticate(request, **credentials)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/contrib/auth/backends.py:42: in authenticate
[2024-11-23T20:01:20.770Z] user = UserModel._default_manager.get_by_natural_key(username)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:37: in get_by_natural_key
[2024-11-23T20:01:20.770Z] return self.get(**{self.model.USERNAME_FIELD: username})
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.770Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:645: in get
[2024-11-23T20:01:20.770Z] num = len(clone)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:382: in __len__
[2024-11-23T20:01:20.770Z] self._fetch_all()
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1928: in _fetch_all
[2024-11-23T20:01:20.770Z] self._result_cache = list(self._iterable_class(self))
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:91: in __iter__
[2024-11-23T20:01:20.770Z] results = compiler.execute_sql(
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T20:01:20.770Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.770Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.770Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.770Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.770Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.770Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.770Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d0cb0>
[2024-11-23T20:01:20.770Z] 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-23T20:01:20.770Z] params = ('invalid id',)
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.770Z] if params is None:
[2024-11-23T20:01:20.770Z] return super().execute(query)
[2024-11-23T20:01:20.770Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.770Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.770Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.770Z] > return super().execute(query, params)
[2024-11-23T20:01:20.770Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.770Z] ___________ RemoteUserAuthenticationUnitTests.test_remote_user_works ___________
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb3875f0>
[2024-11-23T20:01:20.770Z] 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-23T20:01:20.770Z] params = ('md5$nUqNToZbQbZJQxKxadiqm4$802cf62cbc7974c14836f63facc2bfac', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.770Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb3875f0>})
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.770Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.770Z] # ever set during testing).
[2024-11-23T20:01:20.770Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.770Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.770Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.770Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.770Z] if params is None:
[2024-11-23T20:01:20.770Z] # params default might be backend specific.
[2024-11-23T20:01:20.770Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.770Z] else:
[2024-11-23T20:01:20.770Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.770Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe9f0>
[2024-11-23T20:01:20.770Z] 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-23T20:01:20.770Z] params = ('md5$nUqNToZbQbZJQxKxadiqm4$802cf62cbc7974c14836f63facc2bfac', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.770Z] if params is None:
[2024-11-23T20:01:20.770Z] return super().execute(query)
[2024-11-23T20:01:20.770Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.770Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.770Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.770Z] > return super().execute(query, params)
[2024-11-23T20:01:20.770Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.770Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.770Z]
[2024-11-23T20:01:20.771Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <tests.authentication.test_authentication.RemoteUserAuthenticationUnitTests testMethod=test_remote_user_works>
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def setUp(self):
[2024-11-23T20:01:20.771Z] self.username = 'john'
[2024-11-23T20:01:20.771Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.771Z] self.password = 'password'
[2024-11-23T20:01:20.771Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.771Z] self.username, self.email, self.password
[2024-11-23T20:01:20.771Z] )
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] tests/authentication/test_authentication.py:592:
[2024-11-23T20:01:20.771Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.771Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.771Z] user.save(using=self._db)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.771Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.771Z] self.save_base(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.771Z] updated = self._save_table(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.771Z] results = self._do_insert(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.771Z] return manager._insert(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.771Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.771Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.771Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.771Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.771Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.771Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.771Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.771Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.771Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3fe9f0>
[2024-11-23T20:01:20.771Z] 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-23T20:01:20.771Z] params = ('md5$nUqNToZbQbZJQxKxadiqm4$802cf62cbc7974c14836f63facc2bfac', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.771Z] if params is None:
[2024-11-23T20:01:20.771Z] return super().execute(query)
[2024-11-23T20:01:20.771Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.771Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.771Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.771Z] > return super().execute(query, params)
[2024-11-23T20:01:20.771Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.771Z] _ AnonymousUserTests.test_get_raises_typeerror_when_anonymous_user_in_queryset_filter _
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_raises_typeerror_when_anonymous_user_in_queryset_filter>
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def test_get_raises_typeerror_when_anonymous_user_in_queryset_filter(self):
[2024-11-23T20:01:20.771Z] > with self.assertRaises(TypeError):
[2024-11-23T20:01:20.771Z] E AssertionError: TypeError not raised
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] tests/browsable_api/test_browsable_api.py:21: AssertionError
[2024-11-23T20:01:20.771Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.771Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.771Z] Traceback (most recent call last):
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.771Z] response = get_response(request)
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.771Z] response = self.process_request(request)
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.771Z] host = request.get_host()
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.771Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.771Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.771Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T20:01:20.771Z] ____ AnonymousUserTests.test_get_returns_http_forbidden_when_anonymous_user ____
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_returns_http_forbidden_when_anonymous_user>
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def test_get_returns_http_forbidden_when_anonymous_user(self):
[2024-11-23T20:01:20.771Z] old_permissions = BasicModelWithUsersViewSet.permission_classes
[2024-11-23T20:01:20.771Z] BasicModelWithUsersViewSet.permission_classes = [IsAuthenticated, OrganizationPermissions]
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] response = self.client.get('/basicviewset')
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] BasicModelWithUsersViewSet.permission_classes = old_permissions
[2024-11-23T20:01:20.771Z] > self.assertEqual(response.status_code, 403)
[2024-11-23T20:01:20.771Z] E AssertionError: 400 != 403
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] tests/browsable_api/test_browsable_api.py:31: AssertionError
[2024-11-23T20:01:20.771Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.771Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.771Z] Traceback (most recent call last):
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.771Z] response = get_response(request)
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.771Z] response = self.process_request(request)
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.771Z] host = request.get_host()
[2024-11-23T20:01:20.771Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.771Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.771Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.771Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T20:01:20.771Z] ___________ DropdownWithAuthTests.test_dropdown_contains_logout_form ___________
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb071550>
[2024-11-23T20:01:20.771Z] 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-23T20:01:20.771Z] params = ('md5$27kVxR8FhJiiPIgQrcDen9$3fdf7a4ef100c09f68123c36180fa357', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.771Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb071550>})
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.771Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.771Z] # ever set during testing).
[2024-11-23T20:01:20.771Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.771Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.771Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.771Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.771Z] if params is None:
[2024-11-23T20:01:20.771Z] # params default might be backend specific.
[2024-11-23T20:01:20.771Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.771Z] else:
[2024-11-23T20:01:20.771Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.771Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8a9f0>
[2024-11-23T20:01:20.771Z] 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-23T20:01:20.771Z] params = ('md5$27kVxR8FhJiiPIgQrcDen9$3fdf7a4ef100c09f68123c36180fa357', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.771Z] if params is None:
[2024-11-23T20:01:20.771Z] return super().execute(query)
[2024-11-23T20:01:20.771Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.771Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.771Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.771Z] > return super().execute(query, params)
[2024-11-23T20:01:20.771Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_dropdown_contains_logout_form>
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] def setUp(self):
[2024-11-23T20:01:20.771Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.771Z] self.username = 'john'
[2024-11-23T20:01:20.771Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.771Z] self.password = 'password'
[2024-11-23T20:01:20.771Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.771Z] self.username,
[2024-11-23T20:01:20.771Z] self.email,
[2024-11-23T20:01:20.771Z] self.password
[2024-11-23T20:01:20.771Z] )
[2024-11-23T20:01:20.771Z]
[2024-11-23T20:01:20.771Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T20:01:20.771Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.771Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.771Z] user.save(using=self._db)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.771Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.771Z] self.save_base(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.771Z] updated = self._save_table(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.771Z] results = self._do_insert(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.771Z] return manager._insert(
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.771Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.771Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.771Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.771Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.772Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.772Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.772Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.772Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.772Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.772Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8a9f0>
[2024-11-23T20:01:20.772Z] 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-23T20:01:20.772Z] params = ('md5$27kVxR8FhJiiPIgQrcDen9$3fdf7a4ef100c09f68123c36180fa357', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.772Z] if params is None:
[2024-11-23T20:01:20.772Z] return super().execute(query)
[2024-11-23T20:01:20.772Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.772Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.772Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.772Z] > return super().execute(query, params)
[2024-11-23T20:01:20.772Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.772Z] ____________ DropdownWithAuthTests.test_login_shown_when_logged_out ____________
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb05fef0>
[2024-11-23T20:01:20.772Z] 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-23T20:01:20.772Z] params = ('md5$zCWFelVYyTTMsZfPBxmjx1$442e502866c07fa2388998a2c58fe323', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.772Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb05fef0>})
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.772Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.772Z] # ever set during testing).
[2024-11-23T20:01:20.772Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.772Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.772Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.772Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.772Z] if params is None:
[2024-11-23T20:01:20.772Z] # params default might be backend specific.
[2024-11-23T20:01:20.772Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.772Z] else:
[2024-11-23T20:01:20.772Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.772Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8a960>
[2024-11-23T20:01:20.772Z] 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-23T20:01:20.772Z] params = ('md5$zCWFelVYyTTMsZfPBxmjx1$442e502866c07fa2388998a2c58fe323', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.772Z] if params is None:
[2024-11-23T20:01:20.772Z] return super().execute(query)
[2024-11-23T20:01:20.772Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.772Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.772Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.772Z] > return super().execute(query, params)
[2024-11-23T20:01:20.772Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_login_shown_when_logged_out>
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def setUp(self):
[2024-11-23T20:01:20.772Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.772Z] self.username = 'john'
[2024-11-23T20:01:20.772Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.772Z] self.password = 'password'
[2024-11-23T20:01:20.772Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.772Z] self.username,
[2024-11-23T20:01:20.772Z] self.email,
[2024-11-23T20:01:20.772Z] self.password
[2024-11-23T20:01:20.772Z] )
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T20:01:20.772Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.772Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.772Z] user.save(using=self._db)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.772Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.772Z] self.save_base(
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.772Z] updated = self._save_table(
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.772Z] results = self._do_insert(
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.772Z] return manager._insert(
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.772Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.772Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.772Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.772Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.772Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.772Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.772Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.772Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.772Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8a960>
[2024-11-23T20:01:20.772Z] 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-23T20:01:20.772Z] params = ('md5$zCWFelVYyTTMsZfPBxmjx1$442e502866c07fa2388998a2c58fe323', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.772Z] if params is None:
[2024-11-23T20:01:20.772Z] return super().execute(query)
[2024-11-23T20:01:20.772Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.772Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.772Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.772Z] > return super().execute(query, params)
[2024-11-23T20:01:20.772Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.772Z] ____________ DropdownWithAuthTests.test_logout_shown_when_logged_in ____________
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eafcf770>
[2024-11-23T20:01:20.772Z] 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-23T20:01:20.772Z] params = ('md5$jbujcnAczPdkPUKplnSwro$92ebfbc7bfc1fcc51323268a5d932736', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.772Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eafcf770>})
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.772Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.772Z] # ever set during testing).
[2024-11-23T20:01:20.772Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.772Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.772Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.772Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.772Z] if params is None:
[2024-11-23T20:01:20.772Z] # params default might be backend specific.
[2024-11-23T20:01:20.772Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.772Z] else:
[2024-11-23T20:01:20.772Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.772Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bd10>
[2024-11-23T20:01:20.772Z] 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-23T20:01:20.772Z] params = ('md5$jbujcnAczPdkPUKplnSwro$92ebfbc7bfc1fcc51323268a5d932736', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.772Z] if params is None:
[2024-11-23T20:01:20.772Z] return super().execute(query)
[2024-11-23T20:01:20.772Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.772Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.772Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.772Z] > return super().execute(query, params)
[2024-11-23T20:01:20.772Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_logout_shown_when_logged_in>
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] def setUp(self):
[2024-11-23T20:01:20.772Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.772Z] self.username = 'john'
[2024-11-23T20:01:20.772Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.772Z] self.password = 'password'
[2024-11-23T20:01:20.772Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.772Z] self.username,
[2024-11-23T20:01:20.772Z] self.email,
[2024-11-23T20:01:20.772Z] self.password
[2024-11-23T20:01:20.772Z] )
[2024-11-23T20:01:20.772Z]
[2024-11-23T20:01:20.772Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T20:01:20.772Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.772Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.772Z] user.save(using=self._db)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.772Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.772Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.773Z] self.save_base(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.773Z] updated = self._save_table(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.773Z] results = self._do_insert(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.773Z] return manager._insert(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.773Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.773Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.773Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.773Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.773Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.773Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.773Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.773Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.773Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bd10>
[2024-11-23T20:01:20.773Z] 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-23T20:01:20.773Z] params = ('md5$jbujcnAczPdkPUKplnSwro$92ebfbc7bfc1fcc51323268a5d932736', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.773Z] if params is None:
[2024-11-23T20:01:20.773Z] return super().execute(query)
[2024-11-23T20:01:20.773Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.773Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.773Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.773Z] > return super().execute(query, params)
[2024-11-23T20:01:20.773Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.773Z] _____________ DropdownWithAuthTests.test_name_shown_when_logged_in _____________
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eafcc8f0>
[2024-11-23T20:01:20.773Z] 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-23T20:01:20.773Z] params = ('md5$2aSBPj1D0l5BvWJQUwtmbi$a4a94bf021055e5b6d170983b15b469f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.773Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eafcc8f0>})
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.773Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.773Z] # ever set during testing).
[2024-11-23T20:01:20.773Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.773Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.773Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.773Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.773Z] if params is None:
[2024-11-23T20:01:20.773Z] # params default might be backend specific.
[2024-11-23T20:01:20.773Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.773Z] else:
[2024-11-23T20:01:20.773Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.773Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf89ac0>
[2024-11-23T20:01:20.773Z] 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-23T20:01:20.773Z] params = ('md5$2aSBPj1D0l5BvWJQUwtmbi$a4a94bf021055e5b6d170983b15b469f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.773Z] if params is None:
[2024-11-23T20:01:20.773Z] return super().execute(query)
[2024-11-23T20:01:20.773Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.773Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.773Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.773Z] > return super().execute(query, params)
[2024-11-23T20:01:20.773Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_name_shown_when_logged_in>
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def setUp(self):
[2024-11-23T20:01:20.773Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.773Z] self.username = 'john'
[2024-11-23T20:01:20.773Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.773Z] self.password = 'password'
[2024-11-23T20:01:20.773Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.773Z] self.username,
[2024-11-23T20:01:20.773Z] self.email,
[2024-11-23T20:01:20.773Z] self.password
[2024-11-23T20:01:20.773Z] )
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T20:01:20.773Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.773Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.773Z] user.save(using=self._db)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.773Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.773Z] self.save_base(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.773Z] updated = self._save_table(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.773Z] results = self._do_insert(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.773Z] return manager._insert(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.773Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.773Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.773Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.773Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.773Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.773Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.773Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.773Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.773Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf89ac0>
[2024-11-23T20:01:20.773Z] 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-23T20:01:20.773Z] params = ('md5$2aSBPj1D0l5BvWJQUwtmbi$a4a94bf021055e5b6d170983b15b469f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.773Z] if params is None:
[2024-11-23T20:01:20.773Z] return super().execute(query)
[2024-11-23T20:01:20.773Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.773Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.773Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.773Z] > return super().execute(query, params)
[2024-11-23T20:01:20.773Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.773Z] ______ NoDropdownWithoutAuthTests.test_dropdown_not_shown_when_logged_in _______
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eafce150>
[2024-11-23T20:01:20.773Z] 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-23T20:01:20.773Z] params = ('md5$0uBFeEBbNQTgW7fWmCyssd$321feb90ab0d31d875ebf6ad7858566a', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.773Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eafce150>})
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.773Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.773Z] # ever set during testing).
[2024-11-23T20:01:20.773Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.773Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.773Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.773Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.773Z] if params is None:
[2024-11-23T20:01:20.773Z] # params default might be backend specific.
[2024-11-23T20:01:20.773Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.773Z] else:
[2024-11-23T20:01:20.773Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.773Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8a720>
[2024-11-23T20:01:20.773Z] 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-23T20:01:20.773Z] params = ('md5$0uBFeEBbNQTgW7fWmCyssd$321feb90ab0d31d875ebf6ad7858566a', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.773Z] if params is None:
[2024-11-23T20:01:20.773Z] return super().execute(query)
[2024-11-23T20:01:20.773Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.773Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.773Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.773Z] > return super().execute(query, params)
[2024-11-23T20:01:20.773Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] self = <tests.browsable_api.test_browsable_api.NoDropdownWithoutAuthTests testMethod=test_dropdown_not_shown_when_logged_in>
[2024-11-23T20:01:20.773Z]
[2024-11-23T20:01:20.773Z] def setUp(self):
[2024-11-23T20:01:20.773Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.773Z] self.username = 'john'
[2024-11-23T20:01:20.774Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.774Z] self.password = 'password'
[2024-11-23T20:01:20.774Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.774Z] self.username,
[2024-11-23T20:01:20.774Z] self.email,
[2024-11-23T20:01:20.774Z] self.password
[2024-11-23T20:01:20.774Z] )
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] tests/browsable_api/test_browsable_api.py:83:
[2024-11-23T20:01:20.774Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.774Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.774Z] user.save(using=self._db)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.774Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.774Z] self.save_base(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.774Z] updated = self._save_table(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.774Z] results = self._do_insert(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.774Z] return manager._insert(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.774Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.774Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.774Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.774Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.774Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.774Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.774Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.774Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.774Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8a720>
[2024-11-23T20:01:20.774Z] 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-23T20:01:20.774Z] params = ('md5$0uBFeEBbNQTgW7fWmCyssd$321feb90ab0d31d875ebf6ad7858566a', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.774Z] if params is None:
[2024-11-23T20:01:20.774Z] return super().execute(query)
[2024-11-23T20:01:20.774Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.774Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.774Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.774Z] > return super().execute(query, params)
[2024-11-23T20:01:20.774Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.774Z] ______ NoDropdownWithoutAuthTests.test_dropdown_not_shown_when_logged_out ______
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaf554f0>
[2024-11-23T20:01:20.774Z] 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-23T20:01:20.774Z] params = ('md5$8zaGgatku5SkhjBng8fcqm$b8be3a684077349178c441c56e34f3e6', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.774Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaf554f0>})
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.774Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.774Z] # ever set during testing).
[2024-11-23T20:01:20.774Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.774Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.774Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.774Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.774Z] if params is None:
[2024-11-23T20:01:20.774Z] # params default might be backend specific.
[2024-11-23T20:01:20.774Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.774Z] else:
[2024-11-23T20:01:20.774Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.774Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf89ac0>
[2024-11-23T20:01:20.774Z] 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-23T20:01:20.774Z] params = ('md5$8zaGgatku5SkhjBng8fcqm$b8be3a684077349178c441c56e34f3e6', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.774Z] if params is None:
[2024-11-23T20:01:20.774Z] return super().execute(query)
[2024-11-23T20:01:20.774Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.774Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.774Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.774Z] > return super().execute(query, params)
[2024-11-23T20:01:20.774Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] self = <tests.browsable_api.test_browsable_api.NoDropdownWithoutAuthTests testMethod=test_dropdown_not_shown_when_logged_out>
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] def setUp(self):
[2024-11-23T20:01:20.774Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.774Z] self.username = 'john'
[2024-11-23T20:01:20.774Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.774Z] self.password = 'password'
[2024-11-23T20:01:20.774Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.774Z] self.username,
[2024-11-23T20:01:20.774Z] self.email,
[2024-11-23T20:01:20.774Z] self.password
[2024-11-23T20:01:20.774Z] )
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] tests/browsable_api/test_browsable_api.py:83:
[2024-11-23T20:01:20.774Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.774Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.774Z] user.save(using=self._db)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.774Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.774Z] self.save_base(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.774Z] updated = self._save_table(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.774Z] results = self._do_insert(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.774Z] return manager._insert(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.774Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.774Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.774Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.774Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.774Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.774Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.774Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.774Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.774Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf89ac0>
[2024-11-23T20:01:20.774Z] 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-23T20:01:20.774Z] params = ('md5$8zaGgatku5SkhjBng8fcqm$b8be3a684077349178c441c56e34f3e6', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.774Z] if params is None:
[2024-11-23T20:01:20.774Z] return super().execute(query)
[2024-11-23T20:01:20.774Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.774Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.774Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.774Z] > return super().execute(query, params)
[2024-11-23T20:01:20.774Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.774Z] __________ NoDropdownWithoutAuthTests.test_name_shown_when_logged_in ___________
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaf55df0>
[2024-11-23T20:01:20.774Z] 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-23T20:01:20.774Z] params = ('md5$EQFrY8JX5hnw1H30cLzGz6$6619213d664ed95c54f8dced743ed97f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.774Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaf55df0>})
[2024-11-23T20:01:20.774Z]
[2024-11-23T20:01:20.774Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.774Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.774Z] # ever set during testing).
[2024-11-23T20:01:20.775Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.775Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.775Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.775Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.775Z] if params is None:
[2024-11-23T20:01:20.775Z] # params default might be backend specific.
[2024-11-23T20:01:20.775Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.775Z] else:
[2024-11-23T20:01:20.775Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.775Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0c9400>
[2024-11-23T20:01:20.775Z] 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-23T20:01:20.775Z] params = ('md5$EQFrY8JX5hnw1H30cLzGz6$6619213d664ed95c54f8dced743ed97f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.775Z] if params is None:
[2024-11-23T20:01:20.775Z] return super().execute(query)
[2024-11-23T20:01:20.775Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.775Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.775Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.775Z] > return super().execute(query, params)
[2024-11-23T20:01:20.775Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <tests.browsable_api.test_browsable_api.NoDropdownWithoutAuthTests testMethod=test_name_shown_when_logged_in>
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] def setUp(self):
[2024-11-23T20:01:20.775Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:20.775Z] self.username = 'john'
[2024-11-23T20:01:20.775Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:20.775Z] self.password = 'password'
[2024-11-23T20:01:20.775Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:20.775Z] self.username,
[2024-11-23T20:01:20.775Z] self.email,
[2024-11-23T20:01:20.775Z] self.password
[2024-11-23T20:01:20.775Z] )
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] tests/browsable_api/test_browsable_api.py:83:
[2024-11-23T20:01:20.775Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.775Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.775Z] user.save(using=self._db)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.775Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.775Z] self.save_base(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.775Z] updated = self._save_table(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.775Z] results = self._do_insert(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.775Z] return manager._insert(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.775Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.775Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.775Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.775Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.775Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.775Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.775Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.775Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.775Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0c9400>
[2024-11-23T20:01:20.775Z] 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-23T20:01:20.775Z] params = ('md5$EQFrY8JX5hnw1H30cLzGz6$6619213d664ed95c54f8dced743ed97f', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.775Z] if params is None:
[2024-11-23T20:01:20.775Z] return super().execute(query)
[2024-11-23T20:01:20.775Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.775Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.775Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.775Z] > return super().execute(query, params)
[2024-11-23T20:01:20.775Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.775Z] _______________________ DropdownWithAuthTests.test_login _______________________
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <tests.browsable_api.test_browsable_nested_api.DropdownWithAuthTests testMethod=test_login>
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] @override_settings(ROOT_URLCONF='tests.browsable_api.test_browsable_nested_api')
[2024-11-23T20:01:20.775Z] def test_login(self):
[2024-11-23T20:01:20.775Z] response = self.client.get('/api/')
[2024-11-23T20:01:20.775Z] > assert 200 == response.status_code
[2024-11-23T20:01:20.775Z] E assert 200 == 400
[2024-11-23T20:01:20.775Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] tests/browsable_api/test_browsable_nested_api.py:36: AssertionError
[2024-11-23T20:01:20.775Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.775Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.775Z] Traceback (most recent call last):
[2024-11-23T20:01:20.775Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.775Z] response = get_response(request)
[2024-11-23T20:01:20.775Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.775Z] response = self.process_request(request)
[2024-11-23T20:01:20.775Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.775Z] host = request.get_host()
[2024-11-23T20:01:20.775Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.775Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.775Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.775Z] WARNING django.request:log.py:248 Bad Request: /api/
[2024-11-23T20:01:20.775Z] __________________ TestManyPostView.test_post_many_post_view ___________________
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eafd9310>
[2024-11-23T20:01:20.775Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.775Z] params = ('foo',)
[2024-11-23T20:01:20.775Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eafd9310>})
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.775Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.775Z] # ever set during testing).
[2024-11-23T20:01:20.775Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.775Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.775Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.775Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.775Z] if params is None:
[2024-11-23T20:01:20.775Z] # params default might be backend specific.
[2024-11-23T20:01:20.775Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.775Z] else:
[2024-11-23T20:01:20.775Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.775Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0c99a0>
[2024-11-23T20:01:20.775Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.775Z] params = ('foo',)
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.775Z] if params is None:
[2024-11-23T20:01:20.775Z] return super().execute(query)
[2024-11-23T20:01:20.775Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.775Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.775Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.775Z] > return super().execute(query, params)
[2024-11-23T20:01:20.775Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <tests.browsable_api.test_form_rendering.TestManyPostView testMethod=test_post_many_post_view>
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] def setUp(self):
[2024-11-23T20:01:20.775Z] """
[2024-11-23T20:01:20.775Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.775Z] """
[2024-11-23T20:01:20.775Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.775Z] for item in items:
[2024-11-23T20:01:20.775Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] tests/browsable_api/test_form_rendering.py:64:
[2024-11-23T20:01:20.775Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.775Z] self.save_base(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.775Z] updated = self._save_table(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.775Z] results = self._do_insert(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.775Z] return manager._insert(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.775Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.775Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.775Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.775Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.775Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.775Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.775Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.775Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.775Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.775Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.775Z]
[2024-11-23T20:01:20.775Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0c99a0>
[2024-11-23T20:01:20.776Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.776Z] params = ('foo',)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] return super().execute(query)
[2024-11-23T20:01:20.776Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.776Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.776Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.776Z] > return super().execute(query, params)
[2024-11-23T20:01:20.776Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.776Z] _____________________ TestGenericRelations.test_generic_fk _____________________
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eafd91f0>
[2024-11-23T20:01:20.776Z] sql = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (%s) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T20:01:20.776Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T20:01:20.776Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eafd91f0>})
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.776Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.776Z] # ever set during testing).
[2024-11-23T20:01:20.776Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.776Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.776Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.776Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] # params default might be backend specific.
[2024-11-23T20:01:20.776Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.776Z] else:
[2024-11-23T20:01:20.776Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.776Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0cb4a0>
[2024-11-23T20:01:20.776Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T20:01:20.776Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] return super().execute(query)
[2024-11-23T20:01:20.776Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.776Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.776Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.776Z] > return super().execute(query, params)
[2024-11-23T20:01:20.776Z] E sqlite3.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <tests.generic_relations.test_generic_relations.TestGenericRelations testMethod=test_generic_fk>
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def setUp(self):
[2024-11-23T20:01:20.776Z] > self.bookmark = Bookmark.objects.create(url='https://www.djangoproject.com/')
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] tests/generic_relations/test_generic_relations.py:10:
[2024-11-23T20:01:20.776Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.776Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.776Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.776Z] self.save_base(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.776Z] updated = self._save_table(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.776Z] results = self._do_insert(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.776Z] return manager._insert(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.776Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.776Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.776Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.776Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.776Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.776Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.776Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.776Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.776Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0cb4a0>
[2024-11-23T20:01:20.776Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T20:01:20.776Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] return super().execute(query)
[2024-11-23T20:01:20.776Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.776Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.776Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.776Z] > return super().execute(query, params)
[2024-11-23T20:01:20.776Z] E django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.776Z] __________________ TestGenericRelations.test_generic_relation __________________
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb49a3f0>
[2024-11-23T20:01:20.776Z] sql = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (%s) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T20:01:20.776Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T20:01:20.776Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb49a3f0>})
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.776Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.776Z] # ever set during testing).
[2024-11-23T20:01:20.776Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.776Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.776Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.776Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] # params default might be backend specific.
[2024-11-23T20:01:20.776Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.776Z] else:
[2024-11-23T20:01:20.776Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.776Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bbf0>
[2024-11-23T20:01:20.776Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T20:01:20.776Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] return super().execute(query)
[2024-11-23T20:01:20.776Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.776Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.776Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.776Z] > return super().execute(query, params)
[2024-11-23T20:01:20.776Z] E sqlite3.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <tests.generic_relations.test_generic_relations.TestGenericRelations testMethod=test_generic_relation>
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def setUp(self):
[2024-11-23T20:01:20.776Z] > self.bookmark = Bookmark.objects.create(url='https://www.djangoproject.com/')
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] tests/generic_relations/test_generic_relations.py:10:
[2024-11-23T20:01:20.776Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.776Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.776Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.776Z] self.save_base(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.776Z] updated = self._save_table(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.776Z] results = self._do_insert(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.776Z] return manager._insert(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.776Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.776Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.776Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.776Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.776Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.776Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.776Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.776Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.776Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.776Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bbf0>
[2024-11-23T20:01:20.776Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T20:01:20.776Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.776Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.776Z] if params is None:
[2024-11-23T20:01:20.776Z] return super().execute(query)
[2024-11-23T20:01:20.776Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.776Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.776Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.776Z] > return super().execute(query, params)
[2024-11-23T20:01:20.776Z] E django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T20:01:20.776Z]
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.777Z] ___________ DBTransactionTests.test_no_exception_commit_transaction ____________
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <django.db.backends.utils.CursorDebugWrapper object at 0x7176ec353e00>
[2024-11-23T20:01:20.777Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.777Z] params = ('',)
[2024-11-23T20:01:20.777Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7176ec353e00>})
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.777Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.777Z] # ever set during testing).
[2024-11-23T20:01:20.777Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.777Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.777Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.777Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.777Z] if params is None:
[2024-11-23T20:01:20.777Z] # params default might be backend specific.
[2024-11-23T20:01:20.777Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.777Z] else:
[2024-11-23T20:01:20.777Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.777Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0c8e60>
[2024-11-23T20:01:20.777Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.777Z] params = ('',)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.777Z] if params is None:
[2024-11-23T20:01:20.777Z] return super().execute(query)
[2024-11-23T20:01:20.777Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.777Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.777Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.777Z] > return super().execute(query, params)
[2024-11-23T20:01:20.777Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <tests.test_atomic_requests.DBTransactionTests testMethod=test_no_exception_commit_transaction>
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def test_no_exception_commit_transaction(self):
[2024-11-23T20:01:20.777Z] request = factory.post('/')
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] with self.assertNumQueries(1):
[2024-11-23T20:01:20.777Z] > response = self.view(request)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] tests/test_atomic_requests.py:67:
[2024-11-23T20:01:20.777Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.777Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.777Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.777Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.777Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.777Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.777Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.777Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.777Z] raise exc
[2024-11-23T20:01:20.777Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.777Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.777Z] tests/test_atomic_requests.py:20: in post
[2024-11-23T20:01:20.777Z] BasicModel.objects.create()
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.777Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.777Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.777Z] self.save_base(
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.777Z] updated = self._save_table(
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.777Z] results = self._do_insert(
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.777Z] return manager._insert(
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.777Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.777Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.777Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:122: in execute
[2024-11-23T20:01:20.777Z] return super().execute(sql, params)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.777Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.777Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.777Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.777Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.777Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.777Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0c8e60>
[2024-11-23T20:01:20.777Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.777Z] params = ('',)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.777Z] if params is None:
[2024-11-23T20:01:20.777Z] return super().execute(query)
[2024-11-23T20:01:20.777Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.777Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.777Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.777Z] > return super().execute(query, params)
[2024-11-23T20:01:20.777Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.777Z] _ DBTransactionErrorTests.test_generic_exception_delegate_transaction_management _
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <tests.test_atomic_requests.DBTransactionErrorTests testMethod=test_generic_exception_delegate_transaction_management>
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def test_generic_exception_delegate_transaction_management(self):
[2024-11-23T20:01:20.777Z] """
[2024-11-23T20:01:20.777Z] Transaction is eventually managed by outer-most transaction atomic
[2024-11-23T20:01:20.777Z] block. DRF do not try to interfere here.
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] We let django deal with the transaction when it will catch the Exception.
[2024-11-23T20:01:20.777Z] """
[2024-11-23T20:01:20.777Z] request = factory.post('/')
[2024-11-23T20:01:20.777Z] with self.assertNumQueries(3):
[2024-11-23T20:01:20.777Z] # 1 - begin savepoint
[2024-11-23T20:01:20.777Z] # 2 - insert
[2024-11-23T20:01:20.777Z] # 3 - release savepoint
[2024-11-23T20:01:20.777Z] with transaction.atomic():
[2024-11-23T20:01:20.777Z] self.assertRaises(Exception, self.view, request)
[2024-11-23T20:01:20.777Z] > assert not transaction.get_rollback()
[2024-11-23T20:01:20.777Z] E assert not True
[2024-11-23T20:01:20.777Z] E + where True = <function get_rollback at 0x7176ed2a09a0>()
[2024-11-23T20:01:20.777Z] E + where <function get_rollback at 0x7176ed2a09a0> = transaction.get_rollback
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] tests/test_atomic_requests.py:99: AssertionError
[2024-11-23T20:01:20.777Z] ____ DBTransactionAPIExceptionTests.test_api_exception_rollback_transaction ____
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <django.db.backends.utils.CursorDebugWrapper object at 0x7176eb1c0490>
[2024-11-23T20:01:20.777Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.777Z] params = ('',)
[2024-11-23T20:01:20.777Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7176eb1c0490>})
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.777Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.777Z] # ever set during testing).
[2024-11-23T20:01:20.777Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.777Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.777Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.777Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.777Z] if params is None:
[2024-11-23T20:01:20.777Z] # params default might be backend specific.
[2024-11-23T20:01:20.777Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.777Z] else:
[2024-11-23T20:01:20.777Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.777Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8ab10>
[2024-11-23T20:01:20.777Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.777Z] params = ('',)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.777Z] if params is None:
[2024-11-23T20:01:20.777Z] return super().execute(query)
[2024-11-23T20:01:20.777Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.777Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.777Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.777Z] > return super().execute(query, params)
[2024-11-23T20:01:20.777Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] self = <tests.test_atomic_requests.DBTransactionAPIExceptionTests testMethod=test_api_exception_rollback_transaction>
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] def test_api_exception_rollback_transaction(self):
[2024-11-23T20:01:20.777Z] """
[2024-11-23T20:01:20.777Z] Transaction is rollbacked by our transaction atomic block.
[2024-11-23T20:01:20.777Z] """
[2024-11-23T20:01:20.777Z] request = factory.post('/')
[2024-11-23T20:01:20.777Z] num_queries = 4 if connection.features.can_release_savepoints else 3
[2024-11-23T20:01:20.777Z] with self.assertNumQueries(num_queries):
[2024-11-23T20:01:20.777Z] # 1 - begin savepoint
[2024-11-23T20:01:20.777Z] # 2 - insert
[2024-11-23T20:01:20.777Z] # 3 - rollback savepoint
[2024-11-23T20:01:20.777Z] # 4 - release savepoint
[2024-11-23T20:01:20.777Z] with transaction.atomic():
[2024-11-23T20:01:20.777Z] > response = self.view(request)
[2024-11-23T20:01:20.777Z]
[2024-11-23T20:01:20.777Z] tests/test_atomic_requests.py:127:
[2024-11-23T20:01:20.777Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.777Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.777Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.777Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.777Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.777Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.777Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.777Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.777Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.777Z] raise exc
[2024-11-23T20:01:20.778Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.778Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.778Z] tests/test_atomic_requests.py:32: in post
[2024-11-23T20:01:20.778Z] BasicModel.objects.create()
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.778Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.778Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.778Z] self.save_base(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.778Z] updated = self._save_table(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.778Z] results = self._do_insert(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.778Z] return manager._insert(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.778Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.778Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.778Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:122: in execute
[2024-11-23T20:01:20.778Z] return super().execute(sql, params)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.778Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.778Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.778Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.778Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.778Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.778Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8ab10>
[2024-11-23T20:01:20.778Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.778Z] params = ('',)
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.778Z] if params is None:
[2024-11-23T20:01:20.778Z] return super().execute(query)
[2024-11-23T20:01:20.778Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.778Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.778Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.778Z] > return super().execute(query, params)
[2024-11-23T20:01:20.778Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.778Z] _ MultiDBTransactionAPIExceptionTests.test_api_exception_rollback_transaction __
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] self = <django.db.backends.utils.CursorDebugWrapper object at 0x7176eb03e7b0>
[2024-11-23T20:01:20.778Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.778Z] params = ('',)
[2024-11-23T20:01:20.778Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7176eb03e7b0>})
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.778Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.778Z] # ever set during testing).
[2024-11-23T20:01:20.778Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.778Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.778Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.778Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.778Z] if params is None:
[2024-11-23T20:01:20.778Z] # params default might be backend specific.
[2024-11-23T20:01:20.778Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.778Z] else:
[2024-11-23T20:01:20.778Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.778Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.778Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.778Z] params = ('',)
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.778Z] if params is None:
[2024-11-23T20:01:20.778Z] return super().execute(query)
[2024-11-23T20:01:20.778Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.778Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.778Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.778Z] > return super().execute(query, params)
[2024-11-23T20:01:20.778Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] self = <tests.test_atomic_requests.MultiDBTransactionAPIExceptionTests testMethod=test_api_exception_rollback_transaction>
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] def test_api_exception_rollback_transaction(self):
[2024-11-23T20:01:20.778Z] """
[2024-11-23T20:01:20.778Z] Transaction is rollbacked by our transaction atomic block.
[2024-11-23T20:01:20.778Z] """
[2024-11-23T20:01:20.778Z] request = factory.post('/')
[2024-11-23T20:01:20.778Z] num_queries = 4 if connection.features.can_release_savepoints else 3
[2024-11-23T20:01:20.778Z] with self.assertNumQueries(num_queries):
[2024-11-23T20:01:20.778Z] # 1 - begin savepoint
[2024-11-23T20:01:20.778Z] # 2 - insert
[2024-11-23T20:01:20.778Z] # 3 - rollback savepoint
[2024-11-23T20:01:20.778Z] # 4 - release savepoint
[2024-11-23T20:01:20.778Z] with transaction.atomic(), transaction.atomic(using='secondary'):
[2024-11-23T20:01:20.778Z] > response = self.view(request)
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] tests/test_atomic_requests.py:161:
[2024-11-23T20:01:20.778Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.778Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.778Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.778Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.778Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.778Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.778Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.778Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.778Z] raise exc
[2024-11-23T20:01:20.778Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.778Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.778Z] tests/test_atomic_requests.py:32: in post
[2024-11-23T20:01:20.778Z] BasicModel.objects.create()
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.778Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.778Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.778Z] self.save_base(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.778Z] updated = self._save_table(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.778Z] results = self._do_insert(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.778Z] return manager._insert(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.778Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.778Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.778Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:122: in execute
[2024-11-23T20:01:20.778Z] return super().execute(sql, params)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.778Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.778Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.778Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.778Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.778Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.778Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.778Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.778Z] params = ('',)
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.778Z] if params is None:
[2024-11-23T20:01:20.778Z] return super().execute(query)
[2024-11-23T20:01:20.778Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.778Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.778Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.778Z] > return super().execute(query, params)
[2024-11-23T20:01:20.778Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.778Z] _ NonAtomicDBTransactionAPIExceptionTests.test_api_exception_rollback_transaction_non_atomic_view _
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] self = <tests.test_atomic_requests.NonAtomicDBTransactionAPIExceptionTests testMethod=test_api_exception_rollback_transaction_non_atomic_view>
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] def test_api_exception_rollback_transaction_non_atomic_view(self):
[2024-11-23T20:01:20.778Z] response = self.client.get('/')
[2024-11-23T20:01:20.778Z]
[2024-11-23T20:01:20.778Z] # without checking connection.in_atomic_block view raises 500
[2024-11-23T20:01:20.778Z] # due attempt to rollback without transaction
[2024-11-23T20:01:20.778Z] > assert response.status_code == status.HTTP_404_NOT_FOUND
[2024-11-23T20:01:20.778Z] E assert 400 == 404
[2024-11-23T20:01:20.779Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:20.779Z] E + and 404 = status.HTTP_404_NOT_FOUND
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] tests/test_atomic_requests.py:185: AssertionError
[2024-11-23T20:01:20.779Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.779Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.779Z] Traceback (most recent call last):
[2024-11-23T20:01:20.779Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.779Z] response = get_response(request)
[2024-11-23T20:01:20.779Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.779Z] response = self.process_request(request)
[2024-11-23T20:01:20.779Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.779Z] host = request.get_host()
[2024-11-23T20:01:20.779Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.779Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.779Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.779Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:20.779Z] _ AuthTokenTests.test_authtoken_can_be_imported_when_not_included_in_installed_apps _
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb44fbf0>
[2024-11-23T20:01:20.779Z] 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-23T20:01:20.779Z] params = ('!a69PUvVJ8sEIMGhRDgtoqjLj1gZSshEiKehzdpuk', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.779Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb44fbf0>})
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.779Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.779Z] # ever set during testing).
[2024-11-23T20:01:20.779Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.779Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.779Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.779Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.779Z] if params is None:
[2024-11-23T20:01:20.779Z] # params default might be backend specific.
[2024-11-23T20:01:20.779Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.779Z] else:
[2024-11-23T20:01:20.779Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.779Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f380>
[2024-11-23T20:01:20.779Z] 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-23T20:01:20.779Z] params = ('!a69PUvVJ8sEIMGhRDgtoqjLj1gZSshEiKehzdpuk', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.779Z] if params is None:
[2024-11-23T20:01:20.779Z] return super().execute(query)
[2024-11-23T20:01:20.779Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.779Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.779Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.779Z] > return super().execute(query, params)
[2024-11-23T20:01:20.779Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_authtoken_can_be_imported_when_not_included_in_installed_apps>
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def setUp(self):
[2024-11-23T20:01:20.779Z] self.site = site
[2024-11-23T20:01:20.779Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] tests/test_authtoken.py:22:
[2024-11-23T20:01:20.779Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.779Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.779Z] user.save(using=self._db)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.779Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.779Z] self.save_base(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.779Z] updated = self._save_table(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.779Z] results = self._do_insert(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.779Z] return manager._insert(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.779Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.779Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.779Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.779Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.779Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.779Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.779Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.779Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.779Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f380>
[2024-11-23T20:01:20.779Z] 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-23T20:01:20.779Z] params = ('!a69PUvVJ8sEIMGhRDgtoqjLj1gZSshEiKehzdpuk', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.779Z] if params is None:
[2024-11-23T20:01:20.779Z] return super().execute(query)
[2024-11-23T20:01:20.779Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.779Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.779Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.779Z] > return super().execute(query, params)
[2024-11-23T20:01:20.779Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.779Z] _______________ AuthTokenTests.test_model_admin_displayed_fields _______________
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb44f410>
[2024-11-23T20:01:20.779Z] 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-23T20:01:20.779Z] params = ('!enSGwMCtA8tZGMIVUDan58Tx2FnOdIQwhpSI1CU4', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.779Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb44f410>})
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.779Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.779Z] # ever set during testing).
[2024-11-23T20:01:20.779Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.779Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.779Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.779Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.779Z] if params is None:
[2024-11-23T20:01:20.779Z] # params default might be backend specific.
[2024-11-23T20:01:20.779Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.779Z] else:
[2024-11-23T20:01:20.779Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.779Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff020>
[2024-11-23T20:01:20.779Z] 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-23T20:01:20.779Z] params = ('!enSGwMCtA8tZGMIVUDan58Tx2FnOdIQwhpSI1CU4', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.779Z] if params is None:
[2024-11-23T20:01:20.779Z] return super().execute(query)
[2024-11-23T20:01:20.779Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.779Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.779Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.779Z] > return super().execute(query, params)
[2024-11-23T20:01:20.779Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_model_admin_displayed_fields>
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] def setUp(self):
[2024-11-23T20:01:20.779Z] self.site = site
[2024-11-23T20:01:20.779Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.779Z]
[2024-11-23T20:01:20.779Z] tests/test_authtoken.py:22:
[2024-11-23T20:01:20.779Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.779Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.779Z] user.save(using=self._db)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.779Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.779Z] self.save_base(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.779Z] updated = self._save_table(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.779Z] results = self._do_insert(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.779Z] return manager._insert(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.779Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.779Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.779Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.779Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.779Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.779Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.779Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.780Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.780Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.780Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff020>
[2024-11-23T20:01:20.780Z] 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-23T20:01:20.780Z] params = ('!enSGwMCtA8tZGMIVUDan58Tx2FnOdIQwhpSI1CU4', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.780Z] if params is None:
[2024-11-23T20:01:20.780Z] return super().execute(query)
[2024-11-23T20:01:20.780Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.780Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.780Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.780Z] > return super().execute(query, params)
[2024-11-23T20:01:20.780Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.780Z] _______________ AuthTokenTests.test_token_string_representation ________________
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb4589b0>
[2024-11-23T20:01:20.780Z] 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-23T20:01:20.780Z] params = ('!hpZIkuyVenDQHb6pljUsIBy28rjCoiRkJ6vzlZSG', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.780Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb4589b0>})
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.780Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.780Z] # ever set during testing).
[2024-11-23T20:01:20.780Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.780Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.780Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.780Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.780Z] if params is None:
[2024-11-23T20:01:20.780Z] # params default might be backend specific.
[2024-11-23T20:01:20.780Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.780Z] else:
[2024-11-23T20:01:20.780Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.780Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.780Z] 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-23T20:01:20.780Z] params = ('!hpZIkuyVenDQHb6pljUsIBy28rjCoiRkJ6vzlZSG', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.780Z] if params is None:
[2024-11-23T20:01:20.780Z] return super().execute(query)
[2024-11-23T20:01:20.780Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.780Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.780Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.780Z] > return super().execute(query, params)
[2024-11-23T20:01:20.780Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_token_string_representation>
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def setUp(self):
[2024-11-23T20:01:20.780Z] self.site = site
[2024-11-23T20:01:20.780Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] tests/test_authtoken.py:22:
[2024-11-23T20:01:20.780Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.780Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.780Z] user.save(using=self._db)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.780Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.780Z] self.save_base(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.780Z] updated = self._save_table(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.780Z] results = self._do_insert(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.780Z] return manager._insert(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.780Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.780Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.780Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.780Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.780Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.780Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.780Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.780Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.780Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb7d3890>
[2024-11-23T20:01:20.780Z] 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-23T20:01:20.780Z] params = ('!hpZIkuyVenDQHb6pljUsIBy28rjCoiRkJ6vzlZSG', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.780Z] if params is None:
[2024-11-23T20:01:20.780Z] return super().execute(query)
[2024-11-23T20:01:20.780Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.780Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.780Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.780Z] > return super().execute(query, params)
[2024-11-23T20:01:20.780Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.780Z] _____ AuthTokenTests.test_validate_raise_error_if_no_credentials_provided ______
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb459d90>
[2024-11-23T20:01:20.780Z] 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-23T20:01:20.780Z] params = ('!QRgQ4XwwIRl21qTbC9AWehIp0pwUsrZIRo23Q3zW', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.780Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb459d90>})
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.780Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.780Z] # ever set during testing).
[2024-11-23T20:01:20.780Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.780Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.780Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.780Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.780Z] if params is None:
[2024-11-23T20:01:20.780Z] # params default might be backend specific.
[2024-11-23T20:01:20.780Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.780Z] else:
[2024-11-23T20:01:20.780Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.780Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f800>
[2024-11-23T20:01:20.780Z] 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-23T20:01:20.780Z] params = ('!QRgQ4XwwIRl21qTbC9AWehIp0pwUsrZIRo23Q3zW', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.780Z] if params is None:
[2024-11-23T20:01:20.780Z] return super().execute(query)
[2024-11-23T20:01:20.780Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.780Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.780Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.780Z] > return super().execute(query, params)
[2024-11-23T20:01:20.780Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_validate_raise_error_if_no_credentials_provided>
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] def setUp(self):
[2024-11-23T20:01:20.780Z] self.site = site
[2024-11-23T20:01:20.780Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.780Z]
[2024-11-23T20:01:20.780Z] tests/test_authtoken.py:22:
[2024-11-23T20:01:20.780Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.780Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.780Z] user.save(using=self._db)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.780Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.780Z] self.save_base(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.780Z] updated = self._save_table(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.780Z] results = self._do_insert(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.780Z] return manager._insert(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.780Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.780Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.780Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.780Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.780Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.781Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.781Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.781Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.781Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.781Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f800>
[2024-11-23T20:01:20.781Z] 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-23T20:01:20.781Z] params = ('!QRgQ4XwwIRl21qTbC9AWehIp0pwUsrZIRo23Q3zW', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.781Z] if params is None:
[2024-11-23T20:01:20.781Z] return super().execute(query)
[2024-11-23T20:01:20.781Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.781Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.781Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.781Z] > return super().execute(query, params)
[2024-11-23T20:01:20.781Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.781Z] __________________ AuthTokenTests.test_whitespace_in_password __________________
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb459df0>
[2024-11-23T20:01:20.781Z] 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-23T20:01:20.781Z] params = ('!zbMM8ShmS5QSo54GCForrh02xd5o4B7u61HC6kjh', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.781Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb459df0>})
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.781Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.781Z] # ever set during testing).
[2024-11-23T20:01:20.781Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.781Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.781Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.781Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.781Z] if params is None:
[2024-11-23T20:01:20.781Z] # params default might be backend specific.
[2024-11-23T20:01:20.781Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.781Z] else:
[2024-11-23T20:01:20.781Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.781Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff020>
[2024-11-23T20:01:20.781Z] 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-23T20:01:20.781Z] params = ('!zbMM8ShmS5QSo54GCForrh02xd5o4B7u61HC6kjh', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.781Z] if params is None:
[2024-11-23T20:01:20.781Z] return super().execute(query)
[2024-11-23T20:01:20.781Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.781Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.781Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.781Z] > return super().execute(query, params)
[2024-11-23T20:01:20.781Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_whitespace_in_password>
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def setUp(self):
[2024-11-23T20:01:20.781Z] self.site = site
[2024-11-23T20:01:20.781Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] tests/test_authtoken.py:22:
[2024-11-23T20:01:20.781Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.781Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.781Z] user.save(using=self._db)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.781Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.781Z] self.save_base(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.781Z] updated = self._save_table(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.781Z] results = self._do_insert(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.781Z] return manager._insert(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.781Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.781Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.781Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.781Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.781Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.781Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.781Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.781Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.781Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb3ff020>
[2024-11-23T20:01:20.781Z] 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-23T20:01:20.781Z] params = ('!zbMM8ShmS5QSo54GCForrh02xd5o4B7u61HC6kjh', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.781Z] if params is None:
[2024-11-23T20:01:20.781Z] return super().execute(query)
[2024-11-23T20:01:20.781Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.781Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.781Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.781Z] > return super().execute(query, params)
[2024-11-23T20:01:20.781Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.781Z] _____________ AuthTokenCommandTests.test_command_create_user_token _____________
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb4a7350>
[2024-11-23T20:01:20.781Z] 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-23T20:01:20.781Z] params = ('!eU7DQMoayXWVv7y60g5sYDFIU1FlK3gAlTWWH6mS', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.781Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb4a7350>})
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.781Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.781Z] # ever set during testing).
[2024-11-23T20:01:20.781Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.781Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.781Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.781Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.781Z] if params is None:
[2024-11-23T20:01:20.781Z] # params default might be backend specific.
[2024-11-23T20:01:20.781Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.781Z] else:
[2024-11-23T20:01:20.781Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.781Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f890>
[2024-11-23T20:01:20.781Z] 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-23T20:01:20.781Z] params = ('!eU7DQMoayXWVv7y60g5sYDFIU1FlK3gAlTWWH6mS', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.781Z] if params is None:
[2024-11-23T20:01:20.781Z] return super().execute(query)
[2024-11-23T20:01:20.781Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.781Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.781Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.781Z] > return super().execute(query, params)
[2024-11-23T20:01:20.781Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_create_user_token>
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] def setUp(self):
[2024-11-23T20:01:20.781Z] self.site = site
[2024-11-23T20:01:20.781Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.781Z]
[2024-11-23T20:01:20.781Z] tests/test_authtoken.py:56:
[2024-11-23T20:01:20.781Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.781Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.781Z] user.save(using=self._db)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.781Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.781Z] self.save_base(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.781Z] updated = self._save_table(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.781Z] results = self._do_insert(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.781Z] return manager._insert(
[2024-11-23T20:01:20.781Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.781Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.782Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.782Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.782Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.782Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.782Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.782Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.782Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.782Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f890>
[2024-11-23T20:01:20.782Z] 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-23T20:01:20.782Z] params = ('!eU7DQMoayXWVv7y60g5sYDFIU1FlK3gAlTWWH6mS', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.782Z] if params is None:
[2024-11-23T20:01:20.782Z] return super().execute(query)
[2024-11-23T20:01:20.782Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.782Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.782Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.782Z] > return super().execute(query, params)
[2024-11-23T20:01:20.782Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.782Z] ______ AuthTokenCommandTests.test_command_create_user_token_invalid_user _______
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb4a4f50>
[2024-11-23T20:01:20.782Z] 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-23T20:01:20.782Z] params = ('!wvhcQZtcyLSlcOyeTUcyR5FIy8cMzjXoEp33UjzR', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.782Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb4a4f50>})
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.782Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.782Z] # ever set during testing).
[2024-11-23T20:01:20.782Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.782Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.782Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.782Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.782Z] if params is None:
[2024-11-23T20:01:20.782Z] # params default might be backend specific.
[2024-11-23T20:01:20.782Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.782Z] else:
[2024-11-23T20:01:20.782Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.782Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f2f0>
[2024-11-23T20:01:20.782Z] 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-23T20:01:20.782Z] params = ('!wvhcQZtcyLSlcOyeTUcyR5FIy8cMzjXoEp33UjzR', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.782Z] if params is None:
[2024-11-23T20:01:20.782Z] return super().execute(query)
[2024-11-23T20:01:20.782Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.782Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.782Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.782Z] > return super().execute(query, params)
[2024-11-23T20:01:20.782Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_create_user_token_invalid_user>
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def setUp(self):
[2024-11-23T20:01:20.782Z] self.site = site
[2024-11-23T20:01:20.782Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] tests/test_authtoken.py:56:
[2024-11-23T20:01:20.782Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.782Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.782Z] user.save(using=self._db)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.782Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.782Z] self.save_base(
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.782Z] updated = self._save_table(
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.782Z] results = self._do_insert(
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.782Z] return manager._insert(
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.782Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.782Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.782Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.782Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.782Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.782Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.782Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.782Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.782Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f2f0>
[2024-11-23T20:01:20.782Z] 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-23T20:01:20.782Z] params = ('!wvhcQZtcyLSlcOyeTUcyR5FIy8cMzjXoEp33UjzR', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.782Z] if params is None:
[2024-11-23T20:01:20.782Z] return super().execute(query)
[2024-11-23T20:01:20.782Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.782Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.782Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.782Z] > return super().execute(query, params)
[2024-11-23T20:01:20.782Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.782Z] __________ AuthTokenCommandTests.test_command_do_not_reset_user_token __________
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb45ac90>
[2024-11-23T20:01:20.782Z] 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-23T20:01:20.782Z] params = ('!gF0nT9AVQiXZNZXOSjXOFsp1Q0ZFZ6ommxWd78HG', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.782Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb45ac90>})
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.782Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.782Z] # ever set during testing).
[2024-11-23T20:01:20.782Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.782Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.782Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.782Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.782Z] if params is None:
[2024-11-23T20:01:20.782Z] # params default might be backend specific.
[2024-11-23T20:01:20.782Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.782Z] else:
[2024-11-23T20:01:20.782Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.782Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49e3c0>
[2024-11-23T20:01:20.782Z] 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-23T20:01:20.782Z] params = ('!gF0nT9AVQiXZNZXOSjXOFsp1Q0ZFZ6ommxWd78HG', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.782Z] if params is None:
[2024-11-23T20:01:20.782Z] return super().execute(query)
[2024-11-23T20:01:20.782Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.782Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.782Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.782Z] > return super().execute(query, params)
[2024-11-23T20:01:20.782Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_do_not_reset_user_token>
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] def setUp(self):
[2024-11-23T20:01:20.782Z] self.site = site
[2024-11-23T20:01:20.782Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.782Z]
[2024-11-23T20:01:20.782Z] tests/test_authtoken.py:56:
[2024-11-23T20:01:20.783Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.783Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.783Z] user.save(using=self._db)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.783Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.783Z] self.save_base(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.783Z] updated = self._save_table(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.783Z] results = self._do_insert(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.783Z] return manager._insert(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.783Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.783Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.783Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.783Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.783Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.783Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.783Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.783Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.783Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49e3c0>
[2024-11-23T20:01:20.783Z] 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-23T20:01:20.783Z] params = ('!gF0nT9AVQiXZNZXOSjXOFsp1Q0ZFZ6ommxWd78HG', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.783Z] if params is None:
[2024-11-23T20:01:20.783Z] return super().execute(query)
[2024-11-23T20:01:20.783Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.783Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.783Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.783Z] > return super().execute(query, params)
[2024-11-23T20:01:20.783Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.783Z] __________________ AuthTokenCommandTests.test_command_output ___________________
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb4a4770>
[2024-11-23T20:01:20.783Z] 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-23T20:01:20.783Z] params = ('!8LBM8z1mJoRQ6DABVPoPby4AEzLcVlSDvjrZHvpE', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.783Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb4a4770>})
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.783Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.783Z] # ever set during testing).
[2024-11-23T20:01:20.783Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.783Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.783Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.783Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.783Z] if params is None:
[2024-11-23T20:01:20.783Z] # params default might be backend specific.
[2024-11-23T20:01:20.783Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.783Z] else:
[2024-11-23T20:01:20.783Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.783Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49ecc0>
[2024-11-23T20:01:20.783Z] 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-23T20:01:20.783Z] params = ('!8LBM8z1mJoRQ6DABVPoPby4AEzLcVlSDvjrZHvpE', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.783Z] if params is None:
[2024-11-23T20:01:20.783Z] return super().execute(query)
[2024-11-23T20:01:20.783Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.783Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.783Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.783Z] > return super().execute(query, params)
[2024-11-23T20:01:20.783Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_output>
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def setUp(self):
[2024-11-23T20:01:20.783Z] self.site = site
[2024-11-23T20:01:20.783Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] tests/test_authtoken.py:56:
[2024-11-23T20:01:20.783Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.783Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.783Z] user.save(using=self._db)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.783Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.783Z] self.save_base(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.783Z] updated = self._save_table(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.783Z] results = self._do_insert(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.783Z] return manager._insert(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.783Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.783Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.783Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.783Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.783Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.783Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.783Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.783Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.783Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49ecc0>
[2024-11-23T20:01:20.783Z] 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-23T20:01:20.783Z] params = ('!8LBM8z1mJoRQ6DABVPoPby4AEzLcVlSDvjrZHvpE', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.783Z] if params is None:
[2024-11-23T20:01:20.783Z] return super().execute(query)
[2024-11-23T20:01:20.783Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.783Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.783Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.783Z] > return super().execute(query, params)
[2024-11-23T20:01:20.783Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.783Z] ______ AuthTokenCommandTests.test_command_raising_error_for_invalid_user _______
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb4a4a70>
[2024-11-23T20:01:20.783Z] 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-23T20:01:20.783Z] params = ('!dKwAaZdC0gesvbtLobtROlrLEyGcPz0UHoSl3uQS', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.783Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb4a4a70>})
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.783Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.783Z] # ever set during testing).
[2024-11-23T20:01:20.783Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.783Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.783Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.783Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.783Z] if params is None:
[2024-11-23T20:01:20.783Z] # params default might be backend specific.
[2024-11-23T20:01:20.783Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.783Z] else:
[2024-11-23T20:01:20.783Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.783Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f9b0>
[2024-11-23T20:01:20.783Z] 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-23T20:01:20.783Z] params = ('!dKwAaZdC0gesvbtLobtROlrLEyGcPz0UHoSl3uQS', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.783Z] if params is None:
[2024-11-23T20:01:20.783Z] return super().execute(query)
[2024-11-23T20:01:20.783Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.783Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.783Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.783Z] > return super().execute(query, params)
[2024-11-23T20:01:20.783Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_raising_error_for_invalid_user>
[2024-11-23T20:01:20.783Z]
[2024-11-23T20:01:20.783Z] def setUp(self):
[2024-11-23T20:01:20.783Z] self.site = site
[2024-11-23T20:01:20.784Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] tests/test_authtoken.py:56:
[2024-11-23T20:01:20.784Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.784Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.784Z] user.save(using=self._db)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.784Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.784Z] self.save_base(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.784Z] updated = self._save_table(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.784Z] results = self._do_insert(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.784Z] return manager._insert(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.784Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.784Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.784Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.784Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.784Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.784Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.784Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.784Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.784Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f9b0>
[2024-11-23T20:01:20.784Z] 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-23T20:01:20.784Z] params = ('!dKwAaZdC0gesvbtLobtROlrLEyGcPz0UHoSl3uQS', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.784Z] if params is None:
[2024-11-23T20:01:20.784Z] return super().execute(query)
[2024-11-23T20:01:20.784Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.784Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.784Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.784Z] > return super().execute(query, params)
[2024-11-23T20:01:20.784Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.784Z] _____________ AuthTokenCommandTests.test_command_reset_user_token ______________
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb46b050>
[2024-11-23T20:01:20.784Z] 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-23T20:01:20.784Z] params = ('!kYwSUpYZ67OgrQFog52FMGqj1Im3KzMgUek5xi64', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.784Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb46b050>})
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.784Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.784Z] # ever set during testing).
[2024-11-23T20:01:20.784Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.784Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.784Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.784Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.784Z] if params is None:
[2024-11-23T20:01:20.784Z] # params default might be backend specific.
[2024-11-23T20:01:20.784Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.784Z] else:
[2024-11-23T20:01:20.784Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.784Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f800>
[2024-11-23T20:01:20.784Z] 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-23T20:01:20.784Z] params = ('!kYwSUpYZ67OgrQFog52FMGqj1Im3KzMgUek5xi64', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.784Z] if params is None:
[2024-11-23T20:01:20.784Z] return super().execute(query)
[2024-11-23T20:01:20.784Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.784Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.784Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.784Z] > return super().execute(query, params)
[2024-11-23T20:01:20.784Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_reset_user_token>
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def setUp(self):
[2024-11-23T20:01:20.784Z] self.site = site
[2024-11-23T20:01:20.784Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] tests/test_authtoken.py:56:
[2024-11-23T20:01:20.784Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.784Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.784Z] user.save(using=self._db)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.784Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.784Z] self.save_base(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.784Z] updated = self._save_table(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.784Z] results = self._do_insert(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.784Z] return manager._insert(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.784Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.784Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.784Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.784Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.784Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.784Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.784Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.784Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.784Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f800>
[2024-11-23T20:01:20.784Z] 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-23T20:01:20.784Z] params = ('!kYwSUpYZ67OgrQFog52FMGqj1Im3KzMgUek5xi64', None, False, 'test_user', '', '', ...)
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.784Z] if params is None:
[2024-11-23T20:01:20.784Z] return super().execute(query)
[2024-11-23T20:01:20.784Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.784Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.784Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.784Z] > return super().execute(query, params)
[2024-11-23T20:01:20.784Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.784Z] _________ TestListFieldWithDjangoValidationErrors.test_invalid_inputs __________
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eacab470>
[2024-11-23T20:01:20.784Z] sql = 'SELECT "tests_uuidforeignkeytarget"."uuid", "tests_uuidforeignkeytarget"."name" FROM "tests_uuidforeignkeytarget" WHERE "tests_uuidforeignkeytarget"."uuid" = %s LIMIT 21'
[2024-11-23T20:01:20.784Z] params = ('d7364368d1b34455aaa356439b460ca2',)
[2024-11-23T20:01:20.784Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eacab470>})
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.784Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.784Z] # ever set during testing).
[2024-11-23T20:01:20.784Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.784Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.784Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.784Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.784Z] if params is None:
[2024-11-23T20:01:20.784Z] # params default might be backend specific.
[2024-11-23T20:01:20.784Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.784Z] else:
[2024-11-23T20:01:20.784Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.784Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac61760>
[2024-11-23T20:01:20.784Z] query = 'SELECT "tests_uuidforeignkeytarget"."uuid", "tests_uuidforeignkeytarget"."name" FROM "tests_uuidforeignkeytarget" WHERE "tests_uuidforeignkeytarget"."uuid" = ? LIMIT 21'
[2024-11-23T20:01:20.784Z] params = ('d7364368d1b34455aaa356439b460ca2',)
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.784Z] if params is None:
[2024-11-23T20:01:20.784Z] return super().execute(query)
[2024-11-23T20:01:20.784Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.784Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.784Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.784Z] > return super().execute(query, params)
[2024-11-23T20:01:20.784Z] E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.784Z]
[2024-11-23T20:01:20.784Z] self = <tests.test_fields.TestListFieldWithDjangoValidationErrors testMethod=test_invalid_inputs>
[2024-11-23T20:01:20.784Z] args = ()
[2024-11-23T20:01:20.785Z] input_value = ['not-a-valid-uuid', 'd7364368-d1b3-4455-aaa3-56439b460ca2', 'some-other-invalid-uuid']
[2024-11-23T20:01:20.785Z] 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-23T20:01:20.785Z] exc_info = <ExceptionInfo for raises contextmanager>
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def test_invalid_inputs(self, *args):
[2024-11-23T20:01:20.785Z] """
[2024-11-23T20:01:20.785Z] Ensure that invalid values raise the expected validation error.
[2024-11-23T20:01:20.785Z] """
[2024-11-23T20:01:20.785Z] for input_value, expected_failure in get_items(self.invalid_inputs):
[2024-11-23T20:01:20.785Z] with pytest.raises(serializers.ValidationError) as exc_info:
[2024-11-23T20:01:20.785Z] > self.field.run_validation(input_value)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] tests/test_fields.py:682:
[2024-11-23T20:01:20.785Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.785Z] rest_framework/fields.py:538: in run_validation
[2024-11-23T20:01:20.785Z] value = self.to_internal_value(data)
[2024-11-23T20:01:20.785Z] rest_framework/fields.py:1648: in to_internal_value
[2024-11-23T20:01:20.785Z] return self.run_child_validation(data)
[2024-11-23T20:01:20.785Z] rest_framework/fields.py:1662: in run_child_validation
[2024-11-23T20:01:20.785Z] result.append(self.child.run_validation(item))
[2024-11-23T20:01:20.785Z] rest_framework/relations.py:155: in run_validation
[2024-11-23T20:01:20.785Z] return super().run_validation(data)
[2024-11-23T20:01:20.785Z] rest_framework/fields.py:538: in run_validation
[2024-11-23T20:01:20.785Z] value = self.to_internal_value(data)
[2024-11-23T20:01:20.785Z] rest_framework/relations.py:259: in to_internal_value
[2024-11-23T20:01:20.785Z] return queryset.get(pk=data)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:645: in get
[2024-11-23T20:01:20.785Z] num = len(clone)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:382: in __len__
[2024-11-23T20:01:20.785Z] self._fetch_all()
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1928: in _fetch_all
[2024-11-23T20:01:20.785Z] self._result_cache = list(self._iterable_class(self))
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:91: in __iter__
[2024-11-23T20:01:20.785Z] results = compiler.execute_sql(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T20:01:20.785Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.785Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.785Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.785Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.785Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.785Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.785Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac61760>
[2024-11-23T20:01:20.785Z] query = 'SELECT "tests_uuidforeignkeytarget"."uuid", "tests_uuidforeignkeytarget"."name" FROM "tests_uuidforeignkeytarget" WHERE "tests_uuidforeignkeytarget"."uuid" = ? LIMIT 21'
[2024-11-23T20:01:20.785Z] params = ('d7364368d1b34455aaa356439b460ca2',)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.785Z] if params is None:
[2024-11-23T20:01:20.785Z] return super().execute(query)
[2024-11-23T20:01:20.785Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.785Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.785Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.785Z] > return super().execute(query, params)
[2024-11-23T20:01:20.785Z] E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.785Z] _____________________ SearchFilterM2MTests.test_m2m_search _____________________
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eacf6e70>
[2024-11-23T20:01:20.785Z] sql = 'INSERT INTO "tests_attributemodel" ("label") VALUES (%s) RETURNING "tests_attributemodel"."id"'
[2024-11-23T20:01:20.785Z] params = ('w',)
[2024-11-23T20:01:20.785Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eacf6e70>})
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.785Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.785Z] # ever set during testing).
[2024-11-23T20:01:20.785Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.785Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.785Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.785Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.785Z] if params is None:
[2024-11-23T20:01:20.785Z] # params default might be backend specific.
[2024-11-23T20:01:20.785Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.785Z] else:
[2024-11-23T20:01:20.785Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.785Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f800>
[2024-11-23T20:01:20.785Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T20:01:20.785Z] params = ('w',)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.785Z] if params is None:
[2024-11-23T20:01:20.785Z] return super().execute(query)
[2024-11-23T20:01:20.785Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.785Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.785Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.785Z] > return super().execute(query, params)
[2024-11-23T20:01:20.785Z] E sqlite3.OperationalError: no such table: tests_attributemodel
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <tests.test_filters.SearchFilterM2MTests testMethod=test_m2m_search>
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def setUp(self):
[2024-11-23T20:01:20.785Z] # Sequence of title/text/attributes is:
[2024-11-23T20:01:20.785Z] #
[2024-11-23T20:01:20.785Z] # z abc [1, 2, 3]
[2024-11-23T20:01:20.785Z] # zz bcd [1, 2, 3]
[2024-11-23T20:01:20.785Z] # zzz cde [1, 2, 3]
[2024-11-23T20:01:20.785Z] # ...
[2024-11-23T20:01:20.785Z] for idx in range(3):
[2024-11-23T20:01:20.785Z] label = 'w' * (idx + 1)
[2024-11-23T20:01:20.785Z] > AttributeModel.objects.create(label=label)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] tests/test_filters.py:379:
[2024-11-23T20:01:20.785Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.785Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.785Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.785Z] self.save_base(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.785Z] updated = self._save_table(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.785Z] results = self._do_insert(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.785Z] return manager._insert(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.785Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.785Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.785Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.785Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.785Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.785Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.785Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.785Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.785Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb49f800>
[2024-11-23T20:01:20.785Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T20:01:20.785Z] params = ('w',)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.785Z] if params is None:
[2024-11-23T20:01:20.785Z] return super().execute(query)
[2024-11-23T20:01:20.785Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.785Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.785Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.785Z] > return super().execute(query, params)
[2024-11-23T20:01:20.785Z] E django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.785Z] _________________ SearchFilterM2MTests.test_must_call_distinct _________________
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eadbb3b0>
[2024-11-23T20:01:20.785Z] sql = 'INSERT INTO "tests_attributemodel" ("label") VALUES (%s) RETURNING "tests_attributemodel"."id"'
[2024-11-23T20:01:20.785Z] params = ('w',)
[2024-11-23T20:01:20.785Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eadbb3b0>})
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.785Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.785Z] # ever set during testing).
[2024-11-23T20:01:20.785Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.785Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.785Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.785Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.785Z] if params is None:
[2024-11-23T20:01:20.785Z] # params default might be backend specific.
[2024-11-23T20:01:20.785Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.785Z] else:
[2024-11-23T20:01:20.785Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.785Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead992e0>
[2024-11-23T20:01:20.785Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T20:01:20.785Z] params = ('w',)
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.785Z] if params is None:
[2024-11-23T20:01:20.785Z] return super().execute(query)
[2024-11-23T20:01:20.785Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.785Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.785Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.785Z] > return super().execute(query, params)
[2024-11-23T20:01:20.785Z] E sqlite3.OperationalError: no such table: tests_attributemodel
[2024-11-23T20:01:20.785Z]
[2024-11-23T20:01:20.785Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <tests.test_filters.SearchFilterM2MTests testMethod=test_must_call_distinct>
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def setUp(self):
[2024-11-23T20:01:20.786Z] # Sequence of title/text/attributes is:
[2024-11-23T20:01:20.786Z] #
[2024-11-23T20:01:20.786Z] # z abc [1, 2, 3]
[2024-11-23T20:01:20.786Z] # zz bcd [1, 2, 3]
[2024-11-23T20:01:20.786Z] # zzz cde [1, 2, 3]
[2024-11-23T20:01:20.786Z] # ...
[2024-11-23T20:01:20.786Z] for idx in range(3):
[2024-11-23T20:01:20.786Z] label = 'w' * (idx + 1)
[2024-11-23T20:01:20.786Z] > AttributeModel.objects.create(label=label)
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] tests/test_filters.py:379:
[2024-11-23T20:01:20.786Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.786Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.786Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.786Z] self.save_base(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.786Z] updated = self._save_table(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.786Z] results = self._do_insert(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.786Z] return manager._insert(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.786Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.786Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.786Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.786Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.786Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.786Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.786Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.786Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.786Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead992e0>
[2024-11-23T20:01:20.786Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T20:01:20.786Z] params = ('w',)
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.786Z] if params is None:
[2024-11-23T20:01:20.786Z] return super().execute(query)
[2024-11-23T20:01:20.786Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.786Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.786Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.786Z] > return super().execute(query, params)
[2024-11-23T20:01:20.786Z] E django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.786Z] __________________ OrderingFilterTests.test_default_ordering ___________________
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eadbba70>
[2024-11-23T20:01:20.786Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.786Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.786Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eadbba70>})
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.786Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.786Z] # ever set during testing).
[2024-11-23T20:01:20.786Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.786Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.786Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.786Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.786Z] if params is None:
[2024-11-23T20:01:20.786Z] # params default might be backend specific.
[2024-11-23T20:01:20.786Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.786Z] else:
[2024-11-23T20:01:20.786Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.786Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99e20>
[2024-11-23T20:01:20.786Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.786Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.786Z] if params is None:
[2024-11-23T20:01:20.786Z] return super().execute(query)
[2024-11-23T20:01:20.786Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.786Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.786Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.786Z] > return super().execute(query, params)
[2024-11-23T20:01:20.786Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_default_ordering>
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def setUp(self):
[2024-11-23T20:01:20.786Z] # Sequence of title/text is:
[2024-11-23T20:01:20.786Z] #
[2024-11-23T20:01:20.786Z] # zyx abc
[2024-11-23T20:01:20.786Z] # yxw bcd
[2024-11-23T20:01:20.786Z] # xwv cde
[2024-11-23T20:01:20.786Z] for idx in range(3):
[2024-11-23T20:01:20.786Z] title = (
[2024-11-23T20:01:20.786Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.786Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.786Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.786Z] )
[2024-11-23T20:01:20.786Z] text = (
[2024-11-23T20:01:20.786Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.786Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.786Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.786Z] )
[2024-11-23T20:01:20.786Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.786Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.786Z] self.save_base(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.786Z] updated = self._save_table(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.786Z] results = self._do_insert(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.786Z] return manager._insert(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.786Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.786Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.786Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.786Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.786Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.786Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.786Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.786Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.786Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99e20>
[2024-11-23T20:01:20.786Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.786Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.786Z] if params is None:
[2024-11-23T20:01:20.786Z] return super().execute(query)
[2024-11-23T20:01:20.786Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.786Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.786Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.786Z] > return super().execute(query, params)
[2024-11-23T20:01:20.786Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.786Z] ____________ OrderingFilterTests.test_default_ordering_using_string ____________
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead38dd0>
[2024-11-23T20:01:20.786Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.786Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.786Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead38dd0>})
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.786Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.786Z] # ever set during testing).
[2024-11-23T20:01:20.786Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.786Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.786Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.786Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.786Z] if params is None:
[2024-11-23T20:01:20.786Z] # params default might be backend specific.
[2024-11-23T20:01:20.786Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.786Z] else:
[2024-11-23T20:01:20.786Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.786Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.786Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.786Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99f40>
[2024-11-23T20:01:20.787Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.787Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.787Z] if params is None:
[2024-11-23T20:01:20.787Z] return super().execute(query)
[2024-11-23T20:01:20.787Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.787Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.787Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.787Z] > return super().execute(query, params)
[2024-11-23T20:01:20.787Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_default_ordering_using_string>
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def setUp(self):
[2024-11-23T20:01:20.787Z] # Sequence of title/text is:
[2024-11-23T20:01:20.787Z] #
[2024-11-23T20:01:20.787Z] # zyx abc
[2024-11-23T20:01:20.787Z] # yxw bcd
[2024-11-23T20:01:20.787Z] # xwv cde
[2024-11-23T20:01:20.787Z] for idx in range(3):
[2024-11-23T20:01:20.787Z] title = (
[2024-11-23T20:01:20.787Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.787Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.787Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.787Z] )
[2024-11-23T20:01:20.787Z] text = (
[2024-11-23T20:01:20.787Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.787Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.787Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.787Z] )
[2024-11-23T20:01:20.787Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.787Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.787Z] self.save_base(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.787Z] updated = self._save_table(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.787Z] results = self._do_insert(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.787Z] return manager._insert(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.787Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.787Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.787Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.787Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.787Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.787Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.787Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.787Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.787Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99f40>
[2024-11-23T20:01:20.787Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.787Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.787Z] if params is None:
[2024-11-23T20:01:20.787Z] return super().execute(query)
[2024-11-23T20:01:20.787Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.787Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.787Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.787Z] > return super().execute(query, params)
[2024-11-23T20:01:20.787Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.787Z] ________________ OrderingFilterTests.test_get_template_context _________________
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead39d30>
[2024-11-23T20:01:20.787Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.787Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.787Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead39d30>})
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.787Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.787Z] # ever set during testing).
[2024-11-23T20:01:20.787Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.787Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.787Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.787Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.787Z] if params is None:
[2024-11-23T20:01:20.787Z] # params default might be backend specific.
[2024-11-23T20:01:20.787Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.787Z] else:
[2024-11-23T20:01:20.787Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.787Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98cb0>
[2024-11-23T20:01:20.787Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.787Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.787Z] if params is None:
[2024-11-23T20:01:20.787Z] return super().execute(query)
[2024-11-23T20:01:20.787Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.787Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.787Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.787Z] > return super().execute(query, params)
[2024-11-23T20:01:20.787Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_get_template_context>
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def setUp(self):
[2024-11-23T20:01:20.787Z] # Sequence of title/text is:
[2024-11-23T20:01:20.787Z] #
[2024-11-23T20:01:20.787Z] # zyx abc
[2024-11-23T20:01:20.787Z] # yxw bcd
[2024-11-23T20:01:20.787Z] # xwv cde
[2024-11-23T20:01:20.787Z] for idx in range(3):
[2024-11-23T20:01:20.787Z] title = (
[2024-11-23T20:01:20.787Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.787Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.787Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.787Z] )
[2024-11-23T20:01:20.787Z] text = (
[2024-11-23T20:01:20.787Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.787Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.787Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.787Z] )
[2024-11-23T20:01:20.787Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.787Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.787Z] self.save_base(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.787Z] updated = self._save_table(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.787Z] results = self._do_insert(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.787Z] return manager._insert(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.787Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.787Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.787Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.787Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.787Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.787Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.787Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.787Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.787Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98cb0>
[2024-11-23T20:01:20.787Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.787Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.787Z] if params is None:
[2024-11-23T20:01:20.787Z] return super().execute(query)
[2024-11-23T20:01:20.787Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.787Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.787Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.787Z] > return super().execute(query, params)
[2024-11-23T20:01:20.787Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.787Z] _______________ OrderingFilterTests.test_incorrectfield_ordering _______________
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead3a090>
[2024-11-23T20:01:20.787Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.787Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.787Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead3a090>})
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.787Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.787Z] # ever set during testing).
[2024-11-23T20:01:20.787Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.787Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.787Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.787Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.787Z] if params is None:
[2024-11-23T20:01:20.787Z] # params default might be backend specific.
[2024-11-23T20:01:20.787Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.787Z] else:
[2024-11-23T20:01:20.787Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.787Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.787Z]
[2024-11-23T20:01:20.787Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a060>
[2024-11-23T20:01:20.788Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.788Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.788Z] if params is None:
[2024-11-23T20:01:20.788Z] return super().execute(query)
[2024-11-23T20:01:20.788Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.788Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.788Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.788Z] > return super().execute(query, params)
[2024-11-23T20:01:20.788Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_incorrectfield_ordering>
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def setUp(self):
[2024-11-23T20:01:20.788Z] # Sequence of title/text is:
[2024-11-23T20:01:20.788Z] #
[2024-11-23T20:01:20.788Z] # zyx abc
[2024-11-23T20:01:20.788Z] # yxw bcd
[2024-11-23T20:01:20.788Z] # xwv cde
[2024-11-23T20:01:20.788Z] for idx in range(3):
[2024-11-23T20:01:20.788Z] title = (
[2024-11-23T20:01:20.788Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.788Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.788Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.788Z] )
[2024-11-23T20:01:20.788Z] text = (
[2024-11-23T20:01:20.788Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.788Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.788Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.788Z] )
[2024-11-23T20:01:20.788Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.788Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.788Z] self.save_base(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.788Z] updated = self._save_table(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.788Z] results = self._do_insert(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.788Z] return manager._insert(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.788Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.788Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.788Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.788Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.788Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.788Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.788Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.788Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.788Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a060>
[2024-11-23T20:01:20.788Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.788Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.788Z] if params is None:
[2024-11-23T20:01:20.788Z] return super().execute(query)
[2024-11-23T20:01:20.788Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.788Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.788Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.788Z] > return super().execute(query, params)
[2024-11-23T20:01:20.788Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.788Z] _________ OrderingFilterTests.test_incorrecturl_extrahyphens_ordering __________
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb0ec410>
[2024-11-23T20:01:20.788Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.788Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.788Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb0ec410>})
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.788Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.788Z] # ever set during testing).
[2024-11-23T20:01:20.788Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.788Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.788Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.788Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.788Z] if params is None:
[2024-11-23T20:01:20.788Z] # params default might be backend specific.
[2024-11-23T20:01:20.788Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.788Z] else:
[2024-11-23T20:01:20.788Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.788Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead992e0>
[2024-11-23T20:01:20.788Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.788Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.788Z] if params is None:
[2024-11-23T20:01:20.788Z] return super().execute(query)
[2024-11-23T20:01:20.788Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.788Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.788Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.788Z] > return super().execute(query, params)
[2024-11-23T20:01:20.788Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_incorrecturl_extrahyphens_ordering>
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def setUp(self):
[2024-11-23T20:01:20.788Z] # Sequence of title/text is:
[2024-11-23T20:01:20.788Z] #
[2024-11-23T20:01:20.788Z] # zyx abc
[2024-11-23T20:01:20.788Z] # yxw bcd
[2024-11-23T20:01:20.788Z] # xwv cde
[2024-11-23T20:01:20.788Z] for idx in range(3):
[2024-11-23T20:01:20.788Z] title = (
[2024-11-23T20:01:20.788Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.788Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.788Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.788Z] )
[2024-11-23T20:01:20.788Z] text = (
[2024-11-23T20:01:20.788Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.788Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.788Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.788Z] )
[2024-11-23T20:01:20.788Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.788Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.788Z] self.save_base(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.788Z] updated = self._save_table(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.788Z] results = self._do_insert(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.788Z] return manager._insert(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.788Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.788Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.788Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.788Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.788Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.788Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.788Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.788Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.788Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead992e0>
[2024-11-23T20:01:20.788Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.788Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.788Z] if params is None:
[2024-11-23T20:01:20.788Z] return super().execute(query)
[2024-11-23T20:01:20.788Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.788Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.788Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.788Z] > return super().execute(query, params)
[2024-11-23T20:01:20.788Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.788Z] ______________________ OrderingFilterTests.test_ordering _______________________
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb0ecfb0>
[2024-11-23T20:01:20.788Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.788Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.788Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb0ecfb0>})
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.788Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.788Z] # ever set during testing).
[2024-11-23T20:01:20.788Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.788Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.788Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.788Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.788Z] if params is None:
[2024-11-23T20:01:20.788Z] # params default might be backend specific.
[2024-11-23T20:01:20.788Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.788Z] else:
[2024-11-23T20:01:20.788Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.788Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.788Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.788Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98560>
[2024-11-23T20:01:20.789Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.789Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.789Z] if params is None:
[2024-11-23T20:01:20.789Z] return super().execute(query)
[2024-11-23T20:01:20.789Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.789Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.789Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.789Z] > return super().execute(query, params)
[2024-11-23T20:01:20.789Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering>
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def setUp(self):
[2024-11-23T20:01:20.789Z] # Sequence of title/text is:
[2024-11-23T20:01:20.789Z] #
[2024-11-23T20:01:20.789Z] # zyx abc
[2024-11-23T20:01:20.789Z] # yxw bcd
[2024-11-23T20:01:20.789Z] # xwv cde
[2024-11-23T20:01:20.789Z] for idx in range(3):
[2024-11-23T20:01:20.789Z] title = (
[2024-11-23T20:01:20.789Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.789Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.789Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.789Z] )
[2024-11-23T20:01:20.789Z] text = (
[2024-11-23T20:01:20.789Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.789Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.789Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.789Z] )
[2024-11-23T20:01:20.789Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.789Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.789Z] self.save_base(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.789Z] updated = self._save_table(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.789Z] results = self._do_insert(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.789Z] return manager._insert(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.789Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.789Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.789Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.789Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.789Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.789Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.789Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.789Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.789Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98560>
[2024-11-23T20:01:20.789Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.789Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.789Z] if params is None:
[2024-11-23T20:01:20.789Z] return super().execute(query)
[2024-11-23T20:01:20.789Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.789Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.789Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.789Z] > return super().execute(query, params)
[2024-11-23T20:01:20.789Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.789Z] _____________ OrderingFilterTests.test_ordering_by_aggregate_field _____________
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead3aa50>
[2024-11-23T20:01:20.789Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.789Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.789Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead3aa50>})
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.789Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.789Z] # ever set during testing).
[2024-11-23T20:01:20.789Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.789Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.789Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.789Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.789Z] if params is None:
[2024-11-23T20:01:20.789Z] # params default might be backend specific.
[2024-11-23T20:01:20.789Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.789Z] else:
[2024-11-23T20:01:20.789Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.789Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a210>
[2024-11-23T20:01:20.789Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.789Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.789Z] if params is None:
[2024-11-23T20:01:20.789Z] return super().execute(query)
[2024-11-23T20:01:20.789Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.789Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.789Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.789Z] > return super().execute(query, params)
[2024-11-23T20:01:20.789Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_by_aggregate_field>
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def setUp(self):
[2024-11-23T20:01:20.789Z] # Sequence of title/text is:
[2024-11-23T20:01:20.789Z] #
[2024-11-23T20:01:20.789Z] # zyx abc
[2024-11-23T20:01:20.789Z] # yxw bcd
[2024-11-23T20:01:20.789Z] # xwv cde
[2024-11-23T20:01:20.789Z] for idx in range(3):
[2024-11-23T20:01:20.789Z] title = (
[2024-11-23T20:01:20.789Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.789Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.789Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.789Z] )
[2024-11-23T20:01:20.789Z] text = (
[2024-11-23T20:01:20.789Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.789Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.789Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.789Z] )
[2024-11-23T20:01:20.789Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.789Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.789Z] self.save_base(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.789Z] updated = self._save_table(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.789Z] results = self._do_insert(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.789Z] return manager._insert(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.789Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.789Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.789Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.789Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.789Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.789Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.789Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.789Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.789Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a210>
[2024-11-23T20:01:20.789Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.789Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.789Z] if params is None:
[2024-11-23T20:01:20.789Z] return super().execute(query)
[2024-11-23T20:01:20.789Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.789Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.789Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.789Z] > return super().execute(query, params)
[2024-11-23T20:01:20.789Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.789Z] ______________ OrderingFilterTests.test_ordering_by_dotted_source ______________
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb0ee7b0>
[2024-11-23T20:01:20.789Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.789Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.789Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb0ee7b0>})
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.789Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.789Z] # ever set during testing).
[2024-11-23T20:01:20.789Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.789Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.789Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.789Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.789Z] if params is None:
[2024-11-23T20:01:20.789Z] # params default might be backend specific.
[2024-11-23T20:01:20.789Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.789Z] else:
[2024-11-23T20:01:20.789Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.789Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.789Z]
[2024-11-23T20:01:20.789Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a180>
[2024-11-23T20:01:20.790Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.790Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.790Z] if params is None:
[2024-11-23T20:01:20.790Z] return super().execute(query)
[2024-11-23T20:01:20.790Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.790Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.790Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.790Z] > return super().execute(query, params)
[2024-11-23T20:01:20.790Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_by_dotted_source>
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def setUp(self):
[2024-11-23T20:01:20.790Z] # Sequence of title/text is:
[2024-11-23T20:01:20.790Z] #
[2024-11-23T20:01:20.790Z] # zyx abc
[2024-11-23T20:01:20.790Z] # yxw bcd
[2024-11-23T20:01:20.790Z] # xwv cde
[2024-11-23T20:01:20.790Z] for idx in range(3):
[2024-11-23T20:01:20.790Z] title = (
[2024-11-23T20:01:20.790Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.790Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.790Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.790Z] )
[2024-11-23T20:01:20.790Z] text = (
[2024-11-23T20:01:20.790Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.790Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.790Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.790Z] )
[2024-11-23T20:01:20.790Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.790Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.790Z] self.save_base(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.790Z] updated = self._save_table(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.790Z] results = self._do_insert(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.790Z] return manager._insert(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.790Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.790Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.790Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.790Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.790Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.790Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.790Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.790Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.790Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a180>
[2024-11-23T20:01:20.790Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.790Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.790Z] if params is None:
[2024-11-23T20:01:20.790Z] return super().execute(query)
[2024-11-23T20:01:20.790Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.790Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.790Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.790Z] > return super().execute(query, params)
[2024-11-23T20:01:20.790Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.790Z] ________ OrderingFilterTests.test_ordering_with_improper_configuration _________
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb0ed970>
[2024-11-23T20:01:20.790Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.790Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.790Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb0ed970>})
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.790Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.790Z] # ever set during testing).
[2024-11-23T20:01:20.790Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.790Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.790Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.790Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.790Z] if params is None:
[2024-11-23T20:01:20.790Z] # params default might be backend specific.
[2024-11-23T20:01:20.790Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.790Z] else:
[2024-11-23T20:01:20.790Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.790Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99370>
[2024-11-23T20:01:20.790Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.790Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.790Z] if params is None:
[2024-11-23T20:01:20.790Z] return super().execute(query)
[2024-11-23T20:01:20.790Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.790Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.790Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.790Z] > return super().execute(query, params)
[2024-11-23T20:01:20.790Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_with_improper_configuration>
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def setUp(self):
[2024-11-23T20:01:20.790Z] # Sequence of title/text is:
[2024-11-23T20:01:20.790Z] #
[2024-11-23T20:01:20.790Z] # zyx abc
[2024-11-23T20:01:20.790Z] # yxw bcd
[2024-11-23T20:01:20.790Z] # xwv cde
[2024-11-23T20:01:20.790Z] for idx in range(3):
[2024-11-23T20:01:20.790Z] title = (
[2024-11-23T20:01:20.790Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.790Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.790Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.790Z] )
[2024-11-23T20:01:20.790Z] text = (
[2024-11-23T20:01:20.790Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.790Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.790Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.790Z] )
[2024-11-23T20:01:20.790Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.790Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.790Z] self.save_base(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.790Z] updated = self._save_table(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.790Z] results = self._do_insert(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.790Z] return manager._insert(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.790Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.790Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.790Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.790Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.790Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.790Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.790Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.790Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.790Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99370>
[2024-11-23T20:01:20.790Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.790Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.790Z] if params is None:
[2024-11-23T20:01:20.790Z] return super().execute(query)
[2024-11-23T20:01:20.790Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.790Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.790Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.790Z] > return super().execute(query, params)
[2024-11-23T20:01:20.790Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.790Z] ______ OrderingFilterTests.test_ordering_with_nonstandard_ordering_param _______
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb0ee1b0>
[2024-11-23T20:01:20.790Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.790Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.790Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb0ee1b0>})
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.790Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.790Z] # ever set during testing).
[2024-11-23T20:01:20.790Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.790Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.790Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.790Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.790Z] if params is None:
[2024-11-23T20:01:20.790Z] # params default might be backend specific.
[2024-11-23T20:01:20.790Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.790Z] else:
[2024-11-23T20:01:20.790Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.790Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.790Z]
[2024-11-23T20:01:20.790Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a690>
[2024-11-23T20:01:20.791Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.791Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.791Z] if params is None:
[2024-11-23T20:01:20.791Z] return super().execute(query)
[2024-11-23T20:01:20.791Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.791Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.791Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.791Z] > return super().execute(query, params)
[2024-11-23T20:01:20.791Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_with_nonstandard_ordering_param>
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def setUp(self):
[2024-11-23T20:01:20.791Z] # Sequence of title/text is:
[2024-11-23T20:01:20.791Z] #
[2024-11-23T20:01:20.791Z] # zyx abc
[2024-11-23T20:01:20.791Z] # yxw bcd
[2024-11-23T20:01:20.791Z] # xwv cde
[2024-11-23T20:01:20.791Z] for idx in range(3):
[2024-11-23T20:01:20.791Z] title = (
[2024-11-23T20:01:20.791Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.791Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.791Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.791Z] )
[2024-11-23T20:01:20.791Z] text = (
[2024-11-23T20:01:20.791Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.791Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.791Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.791Z] )
[2024-11-23T20:01:20.791Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.791Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.791Z] self.save_base(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.791Z] updated = self._save_table(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.791Z] results = self._do_insert(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.791Z] return manager._insert(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.791Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.791Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.791Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.791Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.791Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.791Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.791Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.791Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.791Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a690>
[2024-11-23T20:01:20.791Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.791Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.791Z] if params is None:
[2024-11-23T20:01:20.791Z] return super().execute(query)
[2024-11-23T20:01:20.791Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.791Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.791Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.791Z] > return super().execute(query, params)
[2024-11-23T20:01:20.791Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.791Z] ____ OrderingFilterTests.test_ordering_with_overridden_get_serializer_class ____
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1c40b0>
[2024-11-23T20:01:20.791Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.791Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.791Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1c40b0>})
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.791Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.791Z] # ever set during testing).
[2024-11-23T20:01:20.791Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.791Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.791Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.791Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.791Z] if params is None:
[2024-11-23T20:01:20.791Z] # params default might be backend specific.
[2024-11-23T20:01:20.791Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.791Z] else:
[2024-11-23T20:01:20.791Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.791Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bbf0>
[2024-11-23T20:01:20.791Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.791Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.791Z] if params is None:
[2024-11-23T20:01:20.791Z] return super().execute(query)
[2024-11-23T20:01:20.791Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.791Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.791Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.791Z] > return super().execute(query, params)
[2024-11-23T20:01:20.791Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_with_overridden_get_serializer_class>
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def setUp(self):
[2024-11-23T20:01:20.791Z] # Sequence of title/text is:
[2024-11-23T20:01:20.791Z] #
[2024-11-23T20:01:20.791Z] # zyx abc
[2024-11-23T20:01:20.791Z] # yxw bcd
[2024-11-23T20:01:20.791Z] # xwv cde
[2024-11-23T20:01:20.791Z] for idx in range(3):
[2024-11-23T20:01:20.791Z] title = (
[2024-11-23T20:01:20.791Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.791Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.791Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.791Z] )
[2024-11-23T20:01:20.791Z] text = (
[2024-11-23T20:01:20.791Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.791Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.791Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.791Z] )
[2024-11-23T20:01:20.791Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.791Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.791Z] self.save_base(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.791Z] updated = self._save_table(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.791Z] results = self._do_insert(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.791Z] return manager._insert(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.791Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.791Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.791Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.791Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.791Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.791Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.791Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.791Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.791Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bbf0>
[2024-11-23T20:01:20.791Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.791Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.791Z] if params is None:
[2024-11-23T20:01:20.791Z] return super().execute(query)
[2024-11-23T20:01:20.791Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.791Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.791Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.791Z] > return super().execute(query, params)
[2024-11-23T20:01:20.791Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.791Z] __________ OrderingFilterTests.test_ordering_without_ordering_fields ___________
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1c51f0>
[2024-11-23T20:01:20.791Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.791Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.791Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1c51f0>})
[2024-11-23T20:01:20.791Z]
[2024-11-23T20:01:20.791Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.792Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.792Z] # ever set during testing).
[2024-11-23T20:01:20.792Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.792Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.792Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.792Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.792Z] if params is None:
[2024-11-23T20:01:20.792Z] # params default might be backend specific.
[2024-11-23T20:01:20.792Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.792Z] else:
[2024-11-23T20:01:20.792Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.792Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0ca450>
[2024-11-23T20:01:20.792Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.792Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.792Z] if params is None:
[2024-11-23T20:01:20.792Z] return super().execute(query)
[2024-11-23T20:01:20.792Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.792Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.792Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.792Z] > return super().execute(query, params)
[2024-11-23T20:01:20.792Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_without_ordering_fields>
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def setUp(self):
[2024-11-23T20:01:20.792Z] # Sequence of title/text is:
[2024-11-23T20:01:20.792Z] #
[2024-11-23T20:01:20.792Z] # zyx abc
[2024-11-23T20:01:20.792Z] # yxw bcd
[2024-11-23T20:01:20.792Z] # xwv cde
[2024-11-23T20:01:20.792Z] for idx in range(3):
[2024-11-23T20:01:20.792Z] title = (
[2024-11-23T20:01:20.792Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.792Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.792Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.792Z] )
[2024-11-23T20:01:20.792Z] text = (
[2024-11-23T20:01:20.792Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.792Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.792Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.792Z] )
[2024-11-23T20:01:20.792Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.792Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.792Z] self.save_base(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.792Z] updated = self._save_table(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.792Z] results = self._do_insert(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.792Z] return manager._insert(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.792Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.792Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.792Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.792Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.792Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.792Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.792Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.792Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.792Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0ca450>
[2024-11-23T20:01:20.792Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.792Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.792Z] if params is None:
[2024-11-23T20:01:20.792Z] return super().execute(query)
[2024-11-23T20:01:20.792Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.792Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.792Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.792Z] > return super().execute(query, params)
[2024-11-23T20:01:20.792Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.792Z] __________________ OrderingFilterTests.test_reverse_ordering ___________________
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ead5b890>
[2024-11-23T20:01:20.792Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.792Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.792Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ead5b890>})
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.792Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.792Z] # ever set during testing).
[2024-11-23T20:01:20.792Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.792Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.792Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.792Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.792Z] if params is None:
[2024-11-23T20:01:20.792Z] # params default might be backend specific.
[2024-11-23T20:01:20.792Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.792Z] else:
[2024-11-23T20:01:20.792Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.792Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bbf0>
[2024-11-23T20:01:20.792Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.792Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.792Z] if params is None:
[2024-11-23T20:01:20.792Z] return super().execute(query)
[2024-11-23T20:01:20.792Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.792Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.792Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.792Z] > return super().execute(query, params)
[2024-11-23T20:01:20.792Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_reverse_ordering>
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def setUp(self):
[2024-11-23T20:01:20.792Z] # Sequence of title/text is:
[2024-11-23T20:01:20.792Z] #
[2024-11-23T20:01:20.792Z] # zyx abc
[2024-11-23T20:01:20.792Z] # yxw bcd
[2024-11-23T20:01:20.792Z] # xwv cde
[2024-11-23T20:01:20.792Z] for idx in range(3):
[2024-11-23T20:01:20.792Z] title = (
[2024-11-23T20:01:20.792Z] chr(ord('z') - idx) +
[2024-11-23T20:01:20.792Z] chr(ord('y') - idx) +
[2024-11-23T20:01:20.792Z] chr(ord('x') - idx)
[2024-11-23T20:01:20.792Z] )
[2024-11-23T20:01:20.792Z] text = (
[2024-11-23T20:01:20.792Z] chr(idx + ord('a')) +
[2024-11-23T20:01:20.792Z] chr(idx + ord('b')) +
[2024-11-23T20:01:20.792Z] chr(idx + ord('c'))
[2024-11-23T20:01:20.792Z] )
[2024-11-23T20:01:20.792Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] tests/test_filters.py:585:
[2024-11-23T20:01:20.792Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.792Z] self.save_base(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.792Z] updated = self._save_table(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.792Z] results = self._do_insert(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.792Z] return manager._insert(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.792Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.792Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.792Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.792Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.792Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.792Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.792Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.792Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.792Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaf8bbf0>
[2024-11-23T20:01:20.792Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T20:01:20.792Z] params = ('zyx', 'abc')
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.792Z] if params is None:
[2024-11-23T20:01:20.792Z] return super().execute(query)
[2024-11-23T20:01:20.792Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.792Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.792Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.792Z] > return super().execute(query, params)
[2024-11-23T20:01:20.792Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.792Z] ___ SensitiveOrderingFilterTests.test_cannot_order_by_non_serializer_fields ____
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eadbae10>
[2024-11-23T20:01:20.792Z] sql = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (%s, %s) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T20:01:20.792Z] params = ('userA', 'passA')
[2024-11-23T20:01:20.792Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eadbae10>})
[2024-11-23T20:01:20.792Z]
[2024-11-23T20:01:20.792Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.793Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.793Z] # ever set during testing).
[2024-11-23T20:01:20.793Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.793Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.793Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.793Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] # params default might be backend specific.
[2024-11-23T20:01:20.793Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.793Z] else:
[2024-11-23T20:01:20.793Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.793Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T20:01:20.793Z] params = ('userA', 'passA')
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] return super().execute(query)
[2024-11-23T20:01:20.793Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.793Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.793Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.793Z] > return super().execute(query, params)
[2024-11-23T20:01:20.793Z] E sqlite3.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <tests.test_filters.SensitiveOrderingFilterTests testMethod=test_cannot_order_by_non_serializer_fields>
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def setUp(self):
[2024-11-23T20:01:20.793Z] for idx in range(3):
[2024-11-23T20:01:20.793Z] username = {0: 'userA', 1: 'userB', 2: 'userC'}[idx]
[2024-11-23T20:01:20.793Z] password = {0: 'passA', 1: 'passC', 2: 'passB'}[idx]
[2024-11-23T20:01:20.793Z] > SensitiveOrderingFilterModel(username=username, password=password).save()
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] tests/test_filters.py:889:
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.793Z] self.save_base(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.793Z] updated = self._save_table(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.793Z] results = self._do_insert(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.793Z] return manager._insert(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.793Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.793Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.793Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.793Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.793Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.793Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.793Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.793Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.793Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T20:01:20.793Z] params = ('userA', 'passA')
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] return super().execute(query)
[2024-11-23T20:01:20.793Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.793Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.793Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.793Z] > return super().execute(query, params)
[2024-11-23T20:01:20.793Z] E django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.793Z] _________ SensitiveOrderingFilterTests.test_order_by_serializer_fields _________
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1c48f0>
[2024-11-23T20:01:20.793Z] sql = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (%s, %s) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T20:01:20.793Z] params = ('userA', 'passA')
[2024-11-23T20:01:20.793Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1c48f0>})
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.793Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.793Z] # ever set during testing).
[2024-11-23T20:01:20.793Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.793Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.793Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.793Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] # params default might be backend specific.
[2024-11-23T20:01:20.793Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.793Z] else:
[2024-11-23T20:01:20.793Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.793Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T20:01:20.793Z] params = ('userA', 'passA')
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] return super().execute(query)
[2024-11-23T20:01:20.793Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.793Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.793Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.793Z] > return super().execute(query, params)
[2024-11-23T20:01:20.793Z] E sqlite3.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <tests.test_filters.SensitiveOrderingFilterTests testMethod=test_order_by_serializer_fields>
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def setUp(self):
[2024-11-23T20:01:20.793Z] for idx in range(3):
[2024-11-23T20:01:20.793Z] username = {0: 'userA', 1: 'userB', 2: 'userC'}[idx]
[2024-11-23T20:01:20.793Z] password = {0: 'passA', 1: 'passC', 2: 'passB'}[idx]
[2024-11-23T20:01:20.793Z] > SensitiveOrderingFilterModel(username=username, password=password).save()
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] tests/test_filters.py:889:
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.793Z] self.save_base(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.793Z] updated = self._save_table(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.793Z] results = self._do_insert(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.793Z] return manager._insert(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.793Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.793Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.793Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.793Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.793Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.793Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.793Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.793Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.793Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T20:01:20.793Z] params = ('userA', 'passA')
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] return super().execute(query)
[2024-11-23T20:01:20.793Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.793Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.793Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.793Z] > return super().execute(query, params)
[2024-11-23T20:01:20.793Z] E django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.793Z] ______________________ TestRootView.test_delete_root_view ______________________
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1c5fd0>
[2024-11-23T20:01:20.793Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.793Z] params = ('foo',)
[2024-11-23T20:01:20.793Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1c5fd0>})
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.793Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.793Z] # ever set during testing).
[2024-11-23T20:01:20.793Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.793Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.793Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.793Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.793Z] if params is None:
[2024-11-23T20:01:20.793Z] # params default might be backend specific.
[2024-11-23T20:01:20.793Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.793Z] else:
[2024-11-23T20:01:20.793Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.793Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.793Z]
[2024-11-23T20:01:20.793Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead991c0>
[2024-11-23T20:01:20.794Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] return super().execute(query)
[2024-11-23T20:01:20.794Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.794Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.794Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.794Z] > return super().execute(query, params)
[2024-11-23T20:01:20.794Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <tests.test_generics.TestRootView testMethod=test_delete_root_view>
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def setUp(self):
[2024-11-23T20:01:20.794Z] """
[2024-11-23T20:01:20.794Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.794Z] """
[2024-11-23T20:01:20.794Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.794Z] for item in items:
[2024-11-23T20:01:20.794Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.794Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.794Z] self.save_base(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.794Z] updated = self._save_table(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.794Z] results = self._do_insert(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.794Z] return manager._insert(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.794Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.794Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.794Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.794Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.794Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.794Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.794Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.794Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.794Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead991c0>
[2024-11-23T20:01:20.794Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] return super().execute(query)
[2024-11-23T20:01:20.794Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.794Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.794Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.794Z] > return super().execute(query, params)
[2024-11-23T20:01:20.794Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.794Z] _______________________ TestRootView.test_get_root_view ________________________
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb197710>
[2024-11-23T20:01:20.794Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb197710>})
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.794Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.794Z] # ever set during testing).
[2024-11-23T20:01:20.794Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.794Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.794Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.794Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] # params default might be backend specific.
[2024-11-23T20:01:20.794Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.794Z] else:
[2024-11-23T20:01:20.794Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.794Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.794Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] return super().execute(query)
[2024-11-23T20:01:20.794Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.794Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.794Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.794Z] > return super().execute(query, params)
[2024-11-23T20:01:20.794Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <tests.test_generics.TestRootView testMethod=test_get_root_view>
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def setUp(self):
[2024-11-23T20:01:20.794Z] """
[2024-11-23T20:01:20.794Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.794Z] """
[2024-11-23T20:01:20.794Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.794Z] for item in items:
[2024-11-23T20:01:20.794Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.794Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.794Z] self.save_base(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.794Z] updated = self._save_table(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.794Z] results = self._do_insert(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.794Z] return manager._insert(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.794Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.794Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.794Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.794Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.794Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.794Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.794Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.794Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.794Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.794Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] return super().execute(query)
[2024-11-23T20:01:20.794Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.794Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.794Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.794Z] > return super().execute(query, params)
[2024-11-23T20:01:20.794Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.794Z] _______________________ TestRootView.test_head_root_view _______________________
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb10d670>
[2024-11-23T20:01:20.794Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb10d670>})
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.794Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.794Z] # ever set during testing).
[2024-11-23T20:01:20.794Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.794Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.794Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.794Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] # params default might be backend specific.
[2024-11-23T20:01:20.794Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.794Z] else:
[2024-11-23T20:01:20.794Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.794Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9ab10>
[2024-11-23T20:01:20.794Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.794Z] params = ('foo',)
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.794Z] if params is None:
[2024-11-23T20:01:20.794Z] return super().execute(query)
[2024-11-23T20:01:20.794Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.794Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.794Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.794Z] > return super().execute(query, params)
[2024-11-23T20:01:20.794Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] self = <tests.test_generics.TestRootView testMethod=test_head_root_view>
[2024-11-23T20:01:20.794Z]
[2024-11-23T20:01:20.794Z] def setUp(self):
[2024-11-23T20:01:20.794Z] """
[2024-11-23T20:01:20.794Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.794Z] """
[2024-11-23T20:01:20.795Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.795Z] for item in items:
[2024-11-23T20:01:20.795Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.795Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.795Z] self.save_base(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.795Z] updated = self._save_table(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.795Z] results = self._do_insert(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.795Z] return manager._insert(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.795Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.795Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.795Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.795Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.795Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.795Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.795Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.795Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.795Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9ab10>
[2024-11-23T20:01:20.795Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.795Z] params = ('foo',)
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.795Z] if params is None:
[2024-11-23T20:01:20.795Z] return super().execute(query)
[2024-11-23T20:01:20.795Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.795Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.795Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.795Z] > return super().execute(query, params)
[2024-11-23T20:01:20.795Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.795Z] _____________________ TestRootView.test_post_cannot_set_id _____________________
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb10db50>
[2024-11-23T20:01:20.795Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.795Z] params = ('foo',)
[2024-11-23T20:01:20.795Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb10db50>})
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.795Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.795Z] # ever set during testing).
[2024-11-23T20:01:20.795Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.795Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.795Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.795Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.795Z] if params is None:
[2024-11-23T20:01:20.795Z] # params default might be backend specific.
[2024-11-23T20:01:20.795Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.795Z] else:
[2024-11-23T20:01:20.795Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.795Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.795Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.795Z] params = ('foo',)
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.795Z] if params is None:
[2024-11-23T20:01:20.795Z] return super().execute(query)
[2024-11-23T20:01:20.795Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.795Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.795Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.795Z] > return super().execute(query, params)
[2024-11-23T20:01:20.795Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <tests.test_generics.TestRootView testMethod=test_post_cannot_set_id>
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def setUp(self):
[2024-11-23T20:01:20.795Z] """
[2024-11-23T20:01:20.795Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.795Z] """
[2024-11-23T20:01:20.795Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.795Z] for item in items:
[2024-11-23T20:01:20.795Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.795Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.795Z] self.save_base(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.795Z] updated = self._save_table(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.795Z] results = self._do_insert(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.795Z] return manager._insert(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.795Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.795Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.795Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.795Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.795Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.795Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.795Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.795Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.795Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.795Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.795Z] params = ('foo',)
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.795Z] if params is None:
[2024-11-23T20:01:20.795Z] return super().execute(query)
[2024-11-23T20:01:20.795Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.795Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.795Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.795Z] > return super().execute(query, params)
[2024-11-23T20:01:20.795Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.795Z] ____________________ TestRootView.test_post_error_root_view ____________________
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb10d970>
[2024-11-23T20:01:20.795Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.795Z] params = ('foo',)
[2024-11-23T20:01:20.795Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb10d970>})
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.795Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.795Z] # ever set during testing).
[2024-11-23T20:01:20.795Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.795Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.795Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.795Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.795Z] if params is None:
[2024-11-23T20:01:20.795Z] # params default might be backend specific.
[2024-11-23T20:01:20.795Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.795Z] else:
[2024-11-23T20:01:20.795Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.795Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a570>
[2024-11-23T20:01:20.795Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.795Z] params = ('foo',)
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.795Z] if params is None:
[2024-11-23T20:01:20.795Z] return super().execute(query)
[2024-11-23T20:01:20.795Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.795Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.795Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.795Z] > return super().execute(query, params)
[2024-11-23T20:01:20.795Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] self = <tests.test_generics.TestRootView testMethod=test_post_error_root_view>
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] def setUp(self):
[2024-11-23T20:01:20.795Z] """
[2024-11-23T20:01:20.795Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.795Z] """
[2024-11-23T20:01:20.795Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.795Z] for item in items:
[2024-11-23T20:01:20.795Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.795Z]
[2024-11-23T20:01:20.795Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.796Z] self.save_base(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.796Z] updated = self._save_table(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.796Z] results = self._do_insert(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.796Z] return manager._insert(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.796Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.796Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.796Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.796Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.796Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.796Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.796Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.796Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9a570>
[2024-11-23T20:01:20.796Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.796Z] params = ('foo',)
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.796Z] if params is None:
[2024-11-23T20:01:20.796Z] return super().execute(query)
[2024-11-23T20:01:20.796Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.796Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.796Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.796Z] > return super().execute(query, params)
[2024-11-23T20:01:20.796Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.796Z] _______________________ TestRootView.test_post_root_view _______________________
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb118d10>
[2024-11-23T20:01:20.796Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.796Z] params = ('foo',)
[2024-11-23T20:01:20.796Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb118d10>})
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.796Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.796Z] # ever set during testing).
[2024-11-23T20:01:20.796Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.796Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.796Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.796Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.796Z] if params is None:
[2024-11-23T20:01:20.796Z] # params default might be backend specific.
[2024-11-23T20:01:20.796Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.796Z] else:
[2024-11-23T20:01:20.796Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.796Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.796Z] params = ('foo',)
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.796Z] if params is None:
[2024-11-23T20:01:20.796Z] return super().execute(query)
[2024-11-23T20:01:20.796Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.796Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.796Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.796Z] > return super().execute(query, params)
[2024-11-23T20:01:20.796Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <tests.test_generics.TestRootView testMethod=test_post_root_view>
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def setUp(self):
[2024-11-23T20:01:20.796Z] """
[2024-11-23T20:01:20.796Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.796Z] """
[2024-11-23T20:01:20.796Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.796Z] for item in items:
[2024-11-23T20:01:20.796Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.796Z] self.save_base(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.796Z] updated = self._save_table(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.796Z] results = self._do_insert(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.796Z] return manager._insert(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.796Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.796Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.796Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.796Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.796Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.796Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.796Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.796Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac612e0>
[2024-11-23T20:01:20.796Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.796Z] params = ('foo',)
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.796Z] if params is None:
[2024-11-23T20:01:20.796Z] return super().execute(query)
[2024-11-23T20:01:20.796Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.796Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.796Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.796Z] > return super().execute(query, params)
[2024-11-23T20:01:20.796Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.796Z] _______________________ TestRootView.test_put_root_view ________________________
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb119550>
[2024-11-23T20:01:20.796Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.796Z] params = ('foo',)
[2024-11-23T20:01:20.796Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb119550>})
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.796Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.796Z] # ever set during testing).
[2024-11-23T20:01:20.796Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.796Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.796Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.796Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.796Z] if params is None:
[2024-11-23T20:01:20.796Z] # params default might be backend specific.
[2024-11-23T20:01:20.796Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.796Z] else:
[2024-11-23T20:01:20.796Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99400>
[2024-11-23T20:01:20.796Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.796Z] params = ('foo',)
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.796Z] if params is None:
[2024-11-23T20:01:20.796Z] return super().execute(query)
[2024-11-23T20:01:20.796Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.796Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.796Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.796Z] > return super().execute(query, params)
[2024-11-23T20:01:20.796Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] self = <tests.test_generics.TestRootView testMethod=test_put_root_view>
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] def setUp(self):
[2024-11-23T20:01:20.796Z] """
[2024-11-23T20:01:20.796Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.796Z] """
[2024-11-23T20:01:20.796Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.796Z] for item in items:
[2024-11-23T20:01:20.796Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.796Z]
[2024-11-23T20:01:20.796Z] tests/test_generics.py:88:
[2024-11-23T20:01:20.796Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.796Z] self.save_base(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.796Z] updated = self._save_table(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.796Z] results = self._do_insert(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.796Z] return manager._insert(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.796Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.796Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.796Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.796Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.796Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.796Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.797Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.797Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.797Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99400>
[2024-11-23T20:01:20.797Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] return super().execute(query)
[2024-11-23T20:01:20.797Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.797Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.797Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.797Z] > return super().execute(query, params)
[2024-11-23T20:01:20.797Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.797Z] __________________ TestInstanceView.test_delete_instance_view __________________
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb10e9f0>
[2024-11-23T20:01:20.797Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb10e9f0>})
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.797Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.797Z] # ever set during testing).
[2024-11-23T20:01:20.797Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.797Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.797Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.797Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] # params default might be backend specific.
[2024-11-23T20:01:20.797Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.797Z] else:
[2024-11-23T20:01:20.797Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.797Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] return super().execute(query)
[2024-11-23T20:01:20.797Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.797Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.797Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.797Z] > return super().execute(query, params)
[2024-11-23T20:01:20.797Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <tests.test_generics.TestInstanceView testMethod=test_delete_instance_view>
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def setUp(self):
[2024-11-23T20:01:20.797Z] """
[2024-11-23T20:01:20.797Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.797Z] """
[2024-11-23T20:01:20.797Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.797Z] for item in items:
[2024-11-23T20:01:20.797Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.797Z] self.save_base(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.797Z] updated = self._save_table(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.797Z] results = self._do_insert(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.797Z] return manager._insert(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.797Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.797Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.797Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.797Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.797Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.797Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.797Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.797Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.797Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] return super().execute(query)
[2024-11-23T20:01:20.797Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.797Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.797Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.797Z] > return super().execute(query, params)
[2024-11-23T20:01:20.797Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.797Z] ___________________ TestInstanceView.test_get_instance_view ____________________
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb11bc50>
[2024-11-23T20:01:20.797Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb11bc50>})
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.797Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.797Z] # ever set during testing).
[2024-11-23T20:01:20.797Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.797Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.797Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.797Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] # params default might be backend specific.
[2024-11-23T20:01:20.797Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.797Z] else:
[2024-11-23T20:01:20.797Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98440>
[2024-11-23T20:01:20.797Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] return super().execute(query)
[2024-11-23T20:01:20.797Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.797Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.797Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.797Z] > return super().execute(query, params)
[2024-11-23T20:01:20.797Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <tests.test_generics.TestInstanceView testMethod=test_get_instance_view>
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def setUp(self):
[2024-11-23T20:01:20.797Z] """
[2024-11-23T20:01:20.797Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.797Z] """
[2024-11-23T20:01:20.797Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.797Z] for item in items:
[2024-11-23T20:01:20.797Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.797Z] self.save_base(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.797Z] updated = self._save_table(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.797Z] results = self._do_insert(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.797Z] return manager._insert(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.797Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.797Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.797Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.797Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.797Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.797Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.797Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.797Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.797Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.797Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98440>
[2024-11-23T20:01:20.797Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.797Z] params = ('foo',)
[2024-11-23T20:01:20.797Z]
[2024-11-23T20:01:20.797Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.797Z] if params is None:
[2024-11-23T20:01:20.797Z] return super().execute(query)
[2024-11-23T20:01:20.797Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.797Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.797Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.797Z] > return super().execute(query, params)
[2024-11-23T20:01:20.798Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.798Z] ____________ TestInstanceView.test_get_instance_view_incorrect_arg _____________
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb119430>
[2024-11-23T20:01:20.798Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb119430>})
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.798Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.798Z] # ever set during testing).
[2024-11-23T20:01:20.798Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.798Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.798Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.798Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.798Z] if params is None:
[2024-11-23T20:01:20.798Z] # params default might be backend specific.
[2024-11-23T20:01:20.798Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.798Z] else:
[2024-11-23T20:01:20.798Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.798Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.798Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.798Z] if params is None:
[2024-11-23T20:01:20.798Z] return super().execute(query)
[2024-11-23T20:01:20.798Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.798Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.798Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.798Z] > return super().execute(query, params)
[2024-11-23T20:01:20.798Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <tests.test_generics.TestInstanceView testMethod=test_get_instance_view_incorrect_arg>
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def setUp(self):
[2024-11-23T20:01:20.798Z] """
[2024-11-23T20:01:20.798Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.798Z] """
[2024-11-23T20:01:20.798Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.798Z] for item in items:
[2024-11-23T20:01:20.798Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.798Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.798Z] self.save_base(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.798Z] updated = self._save_table(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.798Z] results = self._do_insert(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.798Z] return manager._insert(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.798Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.798Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.798Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.798Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.798Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.798Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.798Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.798Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.798Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.798Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.798Z] if params is None:
[2024-11-23T20:01:20.798Z] return super().execute(query)
[2024-11-23T20:01:20.798Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.798Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.798Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.798Z] > return super().execute(query, params)
[2024-11-23T20:01:20.798Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.798Z] _____________ TestInstanceView.test_patch_cannot_create_an_object ______________
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb11ac90>
[2024-11-23T20:01:20.798Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb11ac90>})
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.798Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.798Z] # ever set during testing).
[2024-11-23T20:01:20.798Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.798Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.798Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.798Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.798Z] if params is None:
[2024-11-23T20:01:20.798Z] # params default might be backend specific.
[2024-11-23T20:01:20.798Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.798Z] else:
[2024-11-23T20:01:20.798Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.798Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99f40>
[2024-11-23T20:01:20.798Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.798Z] if params is None:
[2024-11-23T20:01:20.798Z] return super().execute(query)
[2024-11-23T20:01:20.798Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.798Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.798Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.798Z] > return super().execute(query, params)
[2024-11-23T20:01:20.798Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <tests.test_generics.TestInstanceView testMethod=test_patch_cannot_create_an_object>
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def setUp(self):
[2024-11-23T20:01:20.798Z] """
[2024-11-23T20:01:20.798Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.798Z] """
[2024-11-23T20:01:20.798Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.798Z] for item in items:
[2024-11-23T20:01:20.798Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.798Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.798Z] self.save_base(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.798Z] updated = self._save_table(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.798Z] results = self._do_insert(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.798Z] return manager._insert(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.798Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.798Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.798Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.798Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.798Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.798Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.798Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.798Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.798Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99f40>
[2024-11-23T20:01:20.798Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.798Z] if params is None:
[2024-11-23T20:01:20.798Z] return super().execute(query)
[2024-11-23T20:01:20.798Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.798Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.798Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.798Z] > return super().execute(query, params)
[2024-11-23T20:01:20.798Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.798Z] __________________ TestInstanceView.test_patch_instance_view ___________________
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb157950>
[2024-11-23T20:01:20.798Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.798Z] params = ('foo',)
[2024-11-23T20:01:20.798Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb157950>})
[2024-11-23T20:01:20.798Z]
[2024-11-23T20:01:20.798Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.798Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.798Z] # ever set during testing).
[2024-11-23T20:01:20.798Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.798Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.798Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.798Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] # params default might be backend specific.
[2024-11-23T20:01:20.799Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.799Z] else:
[2024-11-23T20:01:20.799Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.799Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.799Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.799Z] params = ('foo',)
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] return super().execute(query)
[2024-11-23T20:01:20.799Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.799Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.799Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.799Z] > return super().execute(query, params)
[2024-11-23T20:01:20.799Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <tests.test_generics.TestInstanceView testMethod=test_patch_instance_view>
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def setUp(self):
[2024-11-23T20:01:20.799Z] """
[2024-11-23T20:01:20.799Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.799Z] """
[2024-11-23T20:01:20.799Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.799Z] for item in items:
[2024-11-23T20:01:20.799Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.799Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.799Z] self.save_base(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.799Z] updated = self._save_table(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.799Z] results = self._do_insert(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.799Z] return manager._insert(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.799Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.799Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.799Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.799Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.799Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.799Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.799Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.799Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.799Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.799Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.799Z] params = ('foo',)
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] return super().execute(query)
[2024-11-23T20:01:20.799Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.799Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.799Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.799Z] > return super().execute(query, params)
[2024-11-23T20:01:20.799Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.799Z] ___________________ TestInstanceView.test_post_instance_view ___________________
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb154410>
[2024-11-23T20:01:20.799Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.799Z] params = ('foo',)
[2024-11-23T20:01:20.799Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb154410>})
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.799Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.799Z] # ever set during testing).
[2024-11-23T20:01:20.799Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.799Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.799Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.799Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] # params default might be backend specific.
[2024-11-23T20:01:20.799Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.799Z] else:
[2024-11-23T20:01:20.799Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.799Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9aba0>
[2024-11-23T20:01:20.799Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.799Z] params = ('foo',)
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] return super().execute(query)
[2024-11-23T20:01:20.799Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.799Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.799Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.799Z] > return super().execute(query, params)
[2024-11-23T20:01:20.799Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <tests.test_generics.TestInstanceView testMethod=test_post_instance_view>
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def setUp(self):
[2024-11-23T20:01:20.799Z] """
[2024-11-23T20:01:20.799Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.799Z] """
[2024-11-23T20:01:20.799Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.799Z] for item in items:
[2024-11-23T20:01:20.799Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.799Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.799Z] self.save_base(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.799Z] updated = self._save_table(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.799Z] results = self._do_insert(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.799Z] return manager._insert(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.799Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.799Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.799Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.799Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.799Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.799Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.799Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.799Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.799Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9aba0>
[2024-11-23T20:01:20.799Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.799Z] params = ('foo',)
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] return super().execute(query)
[2024-11-23T20:01:20.799Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.799Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.799Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.799Z] > return super().execute(query, params)
[2024-11-23T20:01:20.799Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.799Z] ___________________ TestInstanceView.test_put_cannot_set_id ____________________
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1284d0>
[2024-11-23T20:01:20.799Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.799Z] params = ('foo',)
[2024-11-23T20:01:20.799Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1284d0>})
[2024-11-23T20:01:20.799Z]
[2024-11-23T20:01:20.799Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.799Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.799Z] # ever set during testing).
[2024-11-23T20:01:20.799Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.799Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.799Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.799Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.799Z] if params is None:
[2024-11-23T20:01:20.799Z] # params default might be backend specific.
[2024-11-23T20:01:20.799Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.799Z] else:
[2024-11-23T20:01:20.800Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.800Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] return super().execute(query)
[2024-11-23T20:01:20.800Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.800Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.800Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.800Z] > return super().execute(query, params)
[2024-11-23T20:01:20.800Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_cannot_set_id>
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def setUp(self):
[2024-11-23T20:01:20.800Z] """
[2024-11-23T20:01:20.800Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.800Z] """
[2024-11-23T20:01:20.800Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.800Z] for item in items:
[2024-11-23T20:01:20.800Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.800Z] self.save_base(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.800Z] updated = self._save_table(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.800Z] results = self._do_insert(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.800Z] return manager._insert(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.800Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.800Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.800Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.800Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.800Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.800Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.800Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.800Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.800Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] return super().execute(query)
[2024-11-23T20:01:20.800Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.800Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.800Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.800Z] > return super().execute(query, params)
[2024-11-23T20:01:20.800Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.800Z] ________________ TestInstanceView.test_put_error_instance_view _________________
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb128ef0>
[2024-11-23T20:01:20.800Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb128ef0>})
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.800Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.800Z] # ever set during testing).
[2024-11-23T20:01:20.800Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.800Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.800Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.800Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] # params default might be backend specific.
[2024-11-23T20:01:20.800Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.800Z] else:
[2024-11-23T20:01:20.800Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99fd0>
[2024-11-23T20:01:20.800Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] return super().execute(query)
[2024-11-23T20:01:20.800Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.800Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.800Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.800Z] > return super().execute(query, params)
[2024-11-23T20:01:20.800Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_error_instance_view>
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def setUp(self):
[2024-11-23T20:01:20.800Z] """
[2024-11-23T20:01:20.800Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.800Z] """
[2024-11-23T20:01:20.800Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.800Z] for item in items:
[2024-11-23T20:01:20.800Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.800Z] self.save_base(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.800Z] updated = self._save_table(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.800Z] results = self._do_insert(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.800Z] return manager._insert(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.800Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.800Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.800Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.800Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.800Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.800Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.800Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.800Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99fd0>
[2024-11-23T20:01:20.800Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] return super().execute(query)
[2024-11-23T20:01:20.800Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.800Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.800Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.800Z] > return super().execute(query, params)
[2024-11-23T20:01:20.800Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.800Z] ___________________ TestInstanceView.test_put_instance_view ____________________
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1540b0>
[2024-11-23T20:01:20.800Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1540b0>})
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.800Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.800Z] # ever set during testing).
[2024-11-23T20:01:20.800Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.800Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.800Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.800Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] # params default might be backend specific.
[2024-11-23T20:01:20.800Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.800Z] else:
[2024-11-23T20:01:20.800Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.800Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.800Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.800Z] params = ('foo',)
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.800Z] if params is None:
[2024-11-23T20:01:20.800Z] return super().execute(query)
[2024-11-23T20:01:20.800Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.800Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.800Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.800Z] > return super().execute(query, params)
[2024-11-23T20:01:20.800Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.800Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.800Z]
[2024-11-23T20:01:20.801Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_instance_view>
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def setUp(self):
[2024-11-23T20:01:20.801Z] """
[2024-11-23T20:01:20.801Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.801Z] """
[2024-11-23T20:01:20.801Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.801Z] for item in items:
[2024-11-23T20:01:20.801Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.801Z] self.save_base(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.801Z] updated = self._save_table(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.801Z] results = self._do_insert(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.801Z] return manager._insert(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.801Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.801Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.801Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.801Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.801Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.801Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.801Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.801Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.801Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.801Z] params = ('foo',)
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.801Z] if params is None:
[2024-11-23T20:01:20.801Z] return super().execute(query)
[2024-11-23T20:01:20.801Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.801Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.801Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.801Z] > return super().execute(query, params)
[2024-11-23T20:01:20.801Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.801Z] ________________ TestInstanceView.test_put_to_deleted_instance _________________
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1546b0>
[2024-11-23T20:01:20.801Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.801Z] params = ('foo',)
[2024-11-23T20:01:20.801Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1546b0>})
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.801Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.801Z] # ever set during testing).
[2024-11-23T20:01:20.801Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.801Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.801Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.801Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.801Z] if params is None:
[2024-11-23T20:01:20.801Z] # params default might be backend specific.
[2024-11-23T20:01:20.801Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.801Z] else:
[2024-11-23T20:01:20.801Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9af00>
[2024-11-23T20:01:20.801Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.801Z] params = ('foo',)
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.801Z] if params is None:
[2024-11-23T20:01:20.801Z] return super().execute(query)
[2024-11-23T20:01:20.801Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.801Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.801Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.801Z] > return super().execute(query, params)
[2024-11-23T20:01:20.801Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_to_deleted_instance>
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def setUp(self):
[2024-11-23T20:01:20.801Z] """
[2024-11-23T20:01:20.801Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.801Z] """
[2024-11-23T20:01:20.801Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.801Z] for item in items:
[2024-11-23T20:01:20.801Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.801Z] self.save_base(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.801Z] updated = self._save_table(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.801Z] results = self._do_insert(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.801Z] return manager._insert(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.801Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.801Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.801Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.801Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.801Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.801Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.801Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.801Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9af00>
[2024-11-23T20:01:20.801Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.801Z] params = ('foo',)
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.801Z] if params is None:
[2024-11-23T20:01:20.801Z] return super().execute(query)
[2024-11-23T20:01:20.801Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.801Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.801Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.801Z] > return super().execute(query, params)
[2024-11-23T20:01:20.801Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.801Z] ______________ TestInstanceView.test_put_to_filtered_out_instance ______________
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb14c6b0>
[2024-11-23T20:01:20.801Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.801Z] params = ('foo',)
[2024-11-23T20:01:20.801Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb14c6b0>})
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.801Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.801Z] # ever set during testing).
[2024-11-23T20:01:20.801Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.801Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.801Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.801Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.801Z] if params is None:
[2024-11-23T20:01:20.801Z] # params default might be backend specific.
[2024-11-23T20:01:20.801Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.801Z] else:
[2024-11-23T20:01:20.801Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0ca450>
[2024-11-23T20:01:20.801Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.801Z] params = ('foo',)
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.801Z] if params is None:
[2024-11-23T20:01:20.801Z] return super().execute(query)
[2024-11-23T20:01:20.801Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.801Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.801Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.801Z] > return super().execute(query, params)
[2024-11-23T20:01:20.801Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_to_filtered_out_instance>
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] def setUp(self):
[2024-11-23T20:01:20.801Z] """
[2024-11-23T20:01:20.801Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.801Z] """
[2024-11-23T20:01:20.801Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T20:01:20.801Z] for item in items:
[2024-11-23T20:01:20.801Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.801Z]
[2024-11-23T20:01:20.801Z] tests/test_generics.py:183:
[2024-11-23T20:01:20.801Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.801Z] self.save_base(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.801Z] updated = self._save_table(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.801Z] results = self._do_insert(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.801Z] return manager._insert(
[2024-11-23T20:01:20.801Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.802Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.802Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.802Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.802Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.802Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.802Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.802Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.802Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.802Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb0ca450>
[2024-11-23T20:01:20.802Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.802Z] params = ('foo',)
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.802Z] if params is None:
[2024-11-23T20:01:20.802Z] return super().execute(query)
[2024-11-23T20:01:20.802Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.802Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.802Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.802Z] > return super().execute(query, params)
[2024-11-23T20:01:20.802Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.802Z] ___________ TestOverriddenGetObject.test_overridden_get_object_view ____________
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb14c0b0>
[2024-11-23T20:01:20.802Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.802Z] params = ('foo',)
[2024-11-23T20:01:20.802Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb14c0b0>})
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.802Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.802Z] # ever set during testing).
[2024-11-23T20:01:20.802Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.802Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.802Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.802Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.802Z] if params is None:
[2024-11-23T20:01:20.802Z] # params default might be backend specific.
[2024-11-23T20:01:20.802Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.802Z] else:
[2024-11-23T20:01:20.802Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.802Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.802Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.802Z] params = ('foo',)
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.802Z] if params is None:
[2024-11-23T20:01:20.802Z] return super().execute(query)
[2024-11-23T20:01:20.802Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.802Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.802Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.802Z] > return super().execute(query, params)
[2024-11-23T20:01:20.802Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <tests.test_generics.TestOverriddenGetObject testMethod=test_overridden_get_object_view>
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def setUp(self):
[2024-11-23T20:01:20.802Z] """
[2024-11-23T20:01:20.802Z] Create 3 BasicModel instances.
[2024-11-23T20:01:20.802Z] """
[2024-11-23T20:01:20.802Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.802Z] for item in items:
[2024-11-23T20:01:20.802Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] tests/test_generics.py:351:
[2024-11-23T20:01:20.802Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.802Z] self.save_base(
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.802Z] updated = self._save_table(
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.802Z] results = self._do_insert(
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.802Z] return manager._insert(
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.802Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.802Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.802Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.802Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.802Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.802Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.802Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.802Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.802Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac616d0>
[2024-11-23T20:01:20.802Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.802Z] params = ('foo',)
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.802Z] if params is None:
[2024-11-23T20:01:20.802Z] return super().execute(query)
[2024-11-23T20:01:20.802Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.802Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.802Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.802Z] > return super().execute(query, params)
[2024-11-23T20:01:20.802Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.802Z] _ TestCreateModelWithAutoNowAddField.test_create_model_with_auto_now_add_field _
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb12b170>
[2024-11-23T20:01:20.802Z] sql = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (%s, %s, %s) RETURNING "tests_comment"."id"'
[2024-11-23T20:01:20.802Z] params = ('foobar at example.com', 'foobar', '2024-11-23 20:00:23.102544')
[2024-11-23T20:01:20.802Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb12b170>})
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.802Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.802Z] # ever set during testing).
[2024-11-23T20:01:20.802Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.802Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.802Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.802Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.802Z] if params is None:
[2024-11-23T20:01:20.802Z] # params default might be backend specific.
[2024-11-23T20:01:20.802Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.802Z] else:
[2024-11-23T20:01:20.802Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.802Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b140>
[2024-11-23T20:01:20.802Z] query = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (?, ?, ?) RETURNING "tests_comment"."id"'
[2024-11-23T20:01:20.802Z] params = ('foobar at example.com', 'foobar', '2024-11-23 20:00:23.102544')
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.802Z] if params is None:
[2024-11-23T20:01:20.802Z] return super().execute(query)
[2024-11-23T20:01:20.802Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.802Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.802Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.802Z] > return super().execute(query, params)
[2024-11-23T20:01:20.802Z] E sqlite3.OperationalError: no such table: tests_comment
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] self = <tests.test_generics.TestCreateModelWithAutoNowAddField testMethod=test_create_model_with_auto_now_add_field>
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] def test_create_model_with_auto_now_add_field(self):
[2024-11-23T20:01:20.802Z] """
[2024-11-23T20:01:20.802Z] Regression test for #285
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] https://github.com/encode/django-rest-framework/issues/285
[2024-11-23T20:01:20.802Z] """
[2024-11-23T20:01:20.802Z] data = {'email': 'foobar at example.com', 'content': 'foobar'}
[2024-11-23T20:01:20.802Z] request = factory.post('/', data, format='json')
[2024-11-23T20:01:20.802Z] > response = self.view(request).render()
[2024-11-23T20:01:20.802Z]
[2024-11-23T20:01:20.802Z] tests/test_generics.py:407:
[2024-11-23T20:01:20.802Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.802Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.802Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.802Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.802Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.802Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.802Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.802Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.802Z] raise exc
[2024-11-23T20:01:20.802Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.802Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.802Z] rest_framework/generics.py:246: in post
[2024-11-23T20:01:20.802Z] return self.create(request, *args, **kwargs)
[2024-11-23T20:01:20.802Z] rest_framework/mixins.py:19: in create
[2024-11-23T20:01:20.802Z] self.perform_create(serializer)
[2024-11-23T20:01:20.802Z] rest_framework/mixins.py:24: in perform_create
[2024-11-23T20:01:20.802Z] serializer.save()
[2024-11-23T20:01:20.802Z] rest_framework/serializers.py:208: in save
[2024-11-23T20:01:20.802Z] self.instance = self.create(validated_data)
[2024-11-23T20:01:20.802Z] rest_framework/serializers.py:989: in create
[2024-11-23T20:01:20.802Z] instance = ModelClass._default_manager.create(**validated_data)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.802Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.802Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.803Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.803Z] self.save_base(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.803Z] updated = self._save_table(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.803Z] results = self._do_insert(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.803Z] return manager._insert(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.803Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.803Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.803Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.803Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.803Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.803Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.803Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.803Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.803Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b140>
[2024-11-23T20:01:20.803Z] query = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (?, ?, ?) RETURNING "tests_comment"."id"'
[2024-11-23T20:01:20.803Z] params = ('foobar at example.com', 'foobar', '2024-11-23 20:00:23.102544')
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.803Z] if params is None:
[2024-11-23T20:01:20.803Z] return super().execute(query)
[2024-11-23T20:01:20.803Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.803Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.803Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.803Z] > return super().execute(query, params)
[2024-11-23T20:01:20.803Z] E django.db.utils.OperationalError: no such table: tests_comment
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.803Z] ________________ TestM2MBrowsableAPI.test_m2m_in_browsable_api _________________
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb12bf50>
[2024-11-23T20:01:20.803Z] sql = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"'
[2024-11-23T20:01:20.803Z] params = ()
[2024-11-23T20:01:20.803Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb12bf50>})
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.803Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.803Z] # ever set during testing).
[2024-11-23T20:01:20.803Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.803Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.803Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.803Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.803Z] if params is None:
[2024-11-23T20:01:20.803Z] # params default might be backend specific.
[2024-11-23T20:01:20.803Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.803Z] else:
[2024-11-23T20:01:20.803Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.803Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99fd0>
[2024-11-23T20:01:20.803Z] query = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"'
[2024-11-23T20:01:20.803Z] params = ()
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.803Z] if params is None:
[2024-11-23T20:01:20.803Z] return super().execute(query)
[2024-11-23T20:01:20.803Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.803Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.803Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.803Z] > return super().execute(query, params)
[2024-11-23T20:01:20.803Z] E sqlite3.OperationalError: no such table: tests_classa
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <tests.test_generics.TestM2MBrowsableAPI testMethod=test_m2m_in_browsable_api>
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def test_m2m_in_browsable_api(self):
[2024-11-23T20:01:20.803Z] """
[2024-11-23T20:01:20.803Z] Test for particularly ugly regression with m2m in browsable API
[2024-11-23T20:01:20.803Z] """
[2024-11-23T20:01:20.803Z] request = factory.get('/', HTTP_ACCEPT='text/html')
[2024-11-23T20:01:20.803Z] view = ExampleView().as_view()
[2024-11-23T20:01:20.803Z] > response = view(request).render()
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] tests/test_generics.py:445:
[2024-11-23T20:01:20.803Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.803Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.803Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.803Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.803Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.803Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.803Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.803Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.803Z] raise exc
[2024-11-23T20:01:20.803Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.803Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.803Z] rest_framework/generics.py:243: in get
[2024-11-23T20:01:20.803Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.803Z] rest_framework/mixins.py:46: in list
[2024-11-23T20:01:20.803Z] return Response(serializer.data)
[2024-11-23T20:01:20.803Z] rest_framework/serializers.py:795: in data
[2024-11-23T20:01:20.803Z] ret = super().data
[2024-11-23T20:01:20.803Z] rest_framework/serializers.py:249: in data
[2024-11-23T20:01:20.803Z] self._data = self.to_representation(self.instance)
[2024-11-23T20:01:20.803Z] rest_framework/serializers.py:714: in to_representation
[2024-11-23T20:01:20.803Z] self.child.to_representation(item) for item in iterable
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:400: in __iter__
[2024-11-23T20:01:20.803Z] self._fetch_all()
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1928: in _fetch_all
[2024-11-23T20:01:20.803Z] self._result_cache = list(self._iterable_class(self))
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:91: in __iter__
[2024-11-23T20:01:20.803Z] results = compiler.execute_sql(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T20:01:20.803Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.803Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.803Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.803Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.803Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.803Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.803Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99fd0>
[2024-11-23T20:01:20.803Z] query = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"'
[2024-11-23T20:01:20.803Z] params = ()
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.803Z] if params is None:
[2024-11-23T20:01:20.803Z] return super().execute(query)
[2024-11-23T20:01:20.803Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.803Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.803Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.803Z] > return super().execute(query, params)
[2024-11-23T20:01:20.803Z] E django.db.utils.OperationalError: no such table: tests_classa
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.803Z] _ TestFilterBackendAppliedToViews.test_dynamic_serializer_form_in_browsable_api _
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb145f70>
[2024-11-23T20:01:20.803Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.803Z] params = ('foo',)
[2024-11-23T20:01:20.803Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb145f70>})
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.803Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.803Z] # ever set during testing).
[2024-11-23T20:01:20.803Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.803Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.803Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.803Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.803Z] if params is None:
[2024-11-23T20:01:20.803Z] # params default might be backend specific.
[2024-11-23T20:01:20.803Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.803Z] else:
[2024-11-23T20:01:20.803Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.803Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99be0>
[2024-11-23T20:01:20.803Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.803Z] params = ('foo',)
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.803Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.803Z] if params is None:
[2024-11-23T20:01:20.803Z] return super().execute(query)
[2024-11-23T20:01:20.803Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.803Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.803Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.803Z] > return super().execute(query, params)
[2024-11-23T20:01:20.803Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.803Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_dynamic_serializer_form_in_browsable_api>
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def setUp(self):
[2024-11-23T20:01:20.804Z] """
[2024-11-23T20:01:20.804Z] Create 3 BasicModel instances to filter on.
[2024-11-23T20:01:20.804Z] """
[2024-11-23T20:01:20.804Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.804Z] for item in items:
[2024-11-23T20:01:20.804Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] tests/test_generics.py:489:
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.804Z] self.save_base(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.804Z] updated = self._save_table(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.804Z] results = self._do_insert(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.804Z] return manager._insert(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.804Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.804Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.804Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.804Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.804Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.804Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.804Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.804Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99be0>
[2024-11-23T20:01:20.804Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.804Z] params = ('foo',)
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.804Z] if params is None:
[2024-11-23T20:01:20.804Z] return super().execute(query)
[2024-11-23T20:01:20.804Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.804Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.804Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.804Z] > return super().execute(query, params)
[2024-11-23T20:01:20.804Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.804Z] _ TestFilterBackendAppliedToViews.test_get_instance_view_filters_out_name_with_filter_backend _
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb144a10>
[2024-11-23T20:01:20.804Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.804Z] params = ('foo',)
[2024-11-23T20:01:20.804Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb144a10>})
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.804Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.804Z] # ever set during testing).
[2024-11-23T20:01:20.804Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.804Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.804Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.804Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.804Z] if params is None:
[2024-11-23T20:01:20.804Z] # params default might be backend specific.
[2024-11-23T20:01:20.804Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.804Z] else:
[2024-11-23T20:01:20.804Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.804Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.804Z] params = ('foo',)
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.804Z] if params is None:
[2024-11-23T20:01:20.804Z] return super().execute(query)
[2024-11-23T20:01:20.804Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.804Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.804Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.804Z] > return super().execute(query, params)
[2024-11-23T20:01:20.804Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_instance_view_filters_out_name_with_filter_backend>
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def setUp(self):
[2024-11-23T20:01:20.804Z] """
[2024-11-23T20:01:20.804Z] Create 3 BasicModel instances to filter on.
[2024-11-23T20:01:20.804Z] """
[2024-11-23T20:01:20.804Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.804Z] for item in items:
[2024-11-23T20:01:20.804Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] tests/test_generics.py:489:
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.804Z] self.save_base(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.804Z] updated = self._save_table(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.804Z] results = self._do_insert(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.804Z] return manager._insert(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.804Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.804Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.804Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.804Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.804Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.804Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.804Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.804Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.804Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.804Z] params = ('foo',)
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.804Z] if params is None:
[2024-11-23T20:01:20.804Z] return super().execute(query)
[2024-11-23T20:01:20.804Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.804Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.804Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.804Z] > return super().execute(query, params)
[2024-11-23T20:01:20.804Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.804Z] _ TestFilterBackendAppliedToViews.test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it _
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb145910>
[2024-11-23T20:01:20.804Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.804Z] params = ('foo',)
[2024-11-23T20:01:20.804Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb145910>})
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.804Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.804Z] # ever set during testing).
[2024-11-23T20:01:20.804Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.804Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.804Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.804Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.804Z] if params is None:
[2024-11-23T20:01:20.804Z] # params default might be backend specific.
[2024-11-23T20:01:20.804Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.804Z] else:
[2024-11-23T20:01:20.804Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b770>
[2024-11-23T20:01:20.804Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.804Z] params = ('foo',)
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.804Z] if params is None:
[2024-11-23T20:01:20.804Z] return super().execute(query)
[2024-11-23T20:01:20.804Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.804Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.804Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.804Z] > return super().execute(query, params)
[2024-11-23T20:01:20.804Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it>
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] def setUp(self):
[2024-11-23T20:01:20.804Z] """
[2024-11-23T20:01:20.804Z] Create 3 BasicModel instances to filter on.
[2024-11-23T20:01:20.804Z] """
[2024-11-23T20:01:20.804Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.804Z] for item in items:
[2024-11-23T20:01:20.804Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.804Z]
[2024-11-23T20:01:20.804Z] tests/test_generics.py:489:
[2024-11-23T20:01:20.804Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.804Z] self.save_base(
[2024-11-23T20:01:20.804Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.805Z] updated = self._save_table(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.805Z] results = self._do_insert(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.805Z] return manager._insert(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.805Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.805Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.805Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.805Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.805Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.805Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.805Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.805Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b770>
[2024-11-23T20:01:20.805Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.805Z] params = ('foo',)
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.805Z] if params is None:
[2024-11-23T20:01:20.805Z] return super().execute(query)
[2024-11-23T20:01:20.805Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.805Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.805Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.805Z] > return super().execute(query, params)
[2024-11-23T20:01:20.805Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.805Z] _ TestFilterBackendAppliedToViews.test_get_root_view_filters_by_name_with_filter_backend _
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1706b0>
[2024-11-23T20:01:20.805Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.805Z] params = ('foo',)
[2024-11-23T20:01:20.805Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1706b0>})
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.805Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.805Z] # ever set during testing).
[2024-11-23T20:01:20.805Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.805Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.805Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.805Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.805Z] if params is None:
[2024-11-23T20:01:20.805Z] # params default might be backend specific.
[2024-11-23T20:01:20.805Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.805Z] else:
[2024-11-23T20:01:20.805Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.805Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.805Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.805Z] params = ('foo',)
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.805Z] if params is None:
[2024-11-23T20:01:20.805Z] return super().execute(query)
[2024-11-23T20:01:20.805Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.805Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.805Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.805Z] > return super().execute(query, params)
[2024-11-23T20:01:20.805Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_root_view_filters_by_name_with_filter_backend>
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def setUp(self):
[2024-11-23T20:01:20.805Z] """
[2024-11-23T20:01:20.805Z] Create 3 BasicModel instances to filter on.
[2024-11-23T20:01:20.805Z] """
[2024-11-23T20:01:20.805Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.805Z] for item in items:
[2024-11-23T20:01:20.805Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] tests/test_generics.py:489:
[2024-11-23T20:01:20.805Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.805Z] self.save_base(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.805Z] updated = self._save_table(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.805Z] results = self._do_insert(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.805Z] return manager._insert(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.805Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.805Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.805Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.805Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.805Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.805Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.805Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.805Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.805Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.805Z] params = ('foo',)
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.805Z] if params is None:
[2024-11-23T20:01:20.805Z] return super().execute(query)
[2024-11-23T20:01:20.805Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.805Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.805Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.805Z] > return super().execute(query, params)
[2024-11-23T20:01:20.805Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.805Z] _ TestFilterBackendAppliedToViews.test_get_root_view_filters_out_all_models_with_exclusive_filter_backend _
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb170fb0>
[2024-11-23T20:01:20.805Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.805Z] params = ('foo',)
[2024-11-23T20:01:20.805Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb170fb0>})
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.805Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.805Z] # ever set during testing).
[2024-11-23T20:01:20.805Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.805Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.805Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.805Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.805Z] if params is None:
[2024-11-23T20:01:20.805Z] # params default might be backend specific.
[2024-11-23T20:01:20.805Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.805Z] else:
[2024-11-23T20:01:20.805Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.805Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9bec0>
[2024-11-23T20:01:20.805Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.805Z] params = ('foo',)
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.805Z] if params is None:
[2024-11-23T20:01:20.805Z] return super().execute(query)
[2024-11-23T20:01:20.805Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.805Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.805Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.805Z] > return super().execute(query, params)
[2024-11-23T20:01:20.805Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_root_view_filters_out_all_models_with_exclusive_filter_backend>
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] def setUp(self):
[2024-11-23T20:01:20.805Z] """
[2024-11-23T20:01:20.805Z] Create 3 BasicModel instances to filter on.
[2024-11-23T20:01:20.805Z] """
[2024-11-23T20:01:20.805Z] items = ['foo', 'bar', 'baz']
[2024-11-23T20:01:20.805Z] for item in items:
[2024-11-23T20:01:20.805Z] > BasicModel(text=item).save()
[2024-11-23T20:01:20.805Z]
[2024-11-23T20:01:20.805Z] tests/test_generics.py:489:
[2024-11-23T20:01:20.805Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.805Z] self.save_base(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.805Z] updated = self._save_table(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.805Z] results = self._do_insert(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.805Z] return manager._insert(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.805Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.805Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.805Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.805Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.805Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.805Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.805Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.806Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.806Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9bec0>
[2024-11-23T20:01:20.806Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.806Z] params = ('foo',)
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] return super().execute(query)
[2024-11-23T20:01:20.806Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.806Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.806Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.806Z] > return super().execute(query, params)
[2024-11-23T20:01:20.806Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.806Z] ___ GetObjectOr404Tests.test_get_object_or_404_with_invalid_string_for_uuid ____
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb144a70>
[2024-11-23T20:01:20.806Z] sql = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (%s, %s)'
[2024-11-23T20:01:20.806Z] params = ('257b0b22f2b44e1bb0d85db017367e64', 'bar')
[2024-11-23T20:01:20.806Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb144a70>})
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.806Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.806Z] # ever set during testing).
[2024-11-23T20:01:20.806Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.806Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.806Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.806Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] # params default might be backend specific.
[2024-11-23T20:01:20.806Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.806Z] else:
[2024-11-23T20:01:20.806Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9ba40>
[2024-11-23T20:01:20.806Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T20:01:20.806Z] params = ('257b0b22f2b44e1bb0d85db017367e64', 'bar')
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] return super().execute(query)
[2024-11-23T20:01:20.806Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.806Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.806Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.806Z] > return super().execute(query, params)
[2024-11-23T20:01:20.806Z] E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <tests.test_generics.GetObjectOr404Tests testMethod=test_get_object_or_404_with_invalid_string_for_uuid>
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def setUp(self):
[2024-11-23T20:01:20.806Z] super().setUp()
[2024-11-23T20:01:20.806Z] > self.uuid_object = UUIDForeignKeyTarget.objects.create(name='bar')
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] tests/test_generics.py:662:
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.806Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.806Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.806Z] self.save_base(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.806Z] updated = self._save_table(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.806Z] results = self._do_insert(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.806Z] return manager._insert(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.806Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.806Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.806Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.806Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.806Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.806Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.806Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.806Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9ba40>
[2024-11-23T20:01:20.806Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T20:01:20.806Z] params = ('257b0b22f2b44e1bb0d85db017367e64', 'bar')
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] return super().execute(query)
[2024-11-23T20:01:20.806Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.806Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.806Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.806Z] > return super().execute(query, params)
[2024-11-23T20:01:20.806Z] E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.806Z] __________ GetObjectOr404Tests.test_get_object_or_404_with_valid_uuid __________
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb171250>
[2024-11-23T20:01:20.806Z] sql = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (%s, %s)'
[2024-11-23T20:01:20.806Z] params = ('7ab09ea80cb140159f0d5dd0c72b1593', 'bar')
[2024-11-23T20:01:20.806Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb171250>})
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.806Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.806Z] # ever set during testing).
[2024-11-23T20:01:20.806Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.806Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.806Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.806Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] # params default might be backend specific.
[2024-11-23T20:01:20.806Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.806Z] else:
[2024-11-23T20:01:20.806Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.806Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T20:01:20.806Z] params = ('7ab09ea80cb140159f0d5dd0c72b1593', 'bar')
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] return super().execute(query)
[2024-11-23T20:01:20.806Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.806Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.806Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.806Z] > return super().execute(query, params)
[2024-11-23T20:01:20.806Z] E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <tests.test_generics.GetObjectOr404Tests testMethod=test_get_object_or_404_with_valid_uuid>
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def setUp(self):
[2024-11-23T20:01:20.806Z] super().setUp()
[2024-11-23T20:01:20.806Z] > self.uuid_object = UUIDForeignKeyTarget.objects.create(name='bar')
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] tests/test_generics.py:662:
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.806Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.806Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.806Z] self.save_base(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.806Z] updated = self._save_table(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.806Z] results = self._do_insert(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.806Z] return manager._insert(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.806Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.806Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.806Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.806Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.806Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.806Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.806Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.806Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.806Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.806Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eac63e30>
[2024-11-23T20:01:20.806Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T20:01:20.806Z] params = ('7ab09ea80cb140159f0d5dd0c72b1593', 'bar')
[2024-11-23T20:01:20.806Z]
[2024-11-23T20:01:20.806Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.806Z] if params is None:
[2024-11-23T20:01:20.806Z] return super().execute(query)
[2024-11-23T20:01:20.807Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.807Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.807Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.807Z] > return super().execute(query, params)
[2024-11-23T20:01:20.807Z] E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.807Z] ______________ TemplateHTMLRendererTests.test_not_found_html_view ______________
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererTests testMethod=test_not_found_html_view>
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def test_not_found_html_view(self):
[2024-11-23T20:01:20.807Z] response = self.client.get('/not_found')
[2024-11-23T20:01:20.807Z] > self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
[2024-11-23T20:01:20.807Z] E AssertionError: 400 != 404
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] tests/test_htmlrenderer.py:84: AssertionError
[2024-11-23T20:01:20.807Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.807Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] Traceback (most recent call last):
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.807Z] response = get_response(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.807Z] response = self.process_request(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.807Z] host = request.get_host()
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.807Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.807Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] WARNING django.request:log.py:248 Bad Request: /not_found
[2024-11-23T20:01:20.807Z] __________ TemplateHTMLRendererTests.test_permission_denied_html_view __________
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererTests testMethod=test_permission_denied_html_view>
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def test_permission_denied_html_view(self):
[2024-11-23T20:01:20.807Z] response = self.client.get('/permission_denied')
[2024-11-23T20:01:20.807Z] > self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
[2024-11-23T20:01:20.807Z] E AssertionError: 400 != 403
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] tests/test_htmlrenderer.py:90: AssertionError
[2024-11-23T20:01:20.807Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.807Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] Traceback (most recent call last):
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.807Z] response = get_response(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.807Z] response = self.process_request(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.807Z] host = request.get_host()
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.807Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.807Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] WARNING django.request:log.py:248 Bad Request: /permission_denied
[2024-11-23T20:01:20.807Z] _______________ TemplateHTMLRendererTests.test_simple_html_view ________________
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererTests testMethod=test_simple_html_view>
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def test_simple_html_view(self):
[2024-11-23T20:01:20.807Z] response = self.client.get('/')
[2024-11-23T20:01:20.807Z] > self.assertContains(response, "example: foobar")
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] tests/test_htmlrenderer.py:79:
[2024-11-23T20:01:20.807Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.807Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:609: in assertContains
[2024-11-23T20:01:20.807Z] text_repr, real_count, msg_prefix, content_repr = self._assert_contains(
[2024-11-23T20:01:20.807Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:571: in _assert_contains
[2024-11-23T20:01:20.807Z] self.assertEqual(
[2024-11-23T20:01:20.807Z] E AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200)
[2024-11-23T20:01:20.807Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.807Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] Traceback (most recent call last):
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.807Z] response = get_response(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.807Z] response = self.process_request(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.807Z] host = request.get_host()
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.807Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.807Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:20.807Z] __ TemplateHTMLRendererExceptionTests.test_not_found_html_view_with_template ___
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererExceptionTests testMethod=test_not_found_html_view_with_template>
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def test_not_found_html_view_with_template(self):
[2024-11-23T20:01:20.807Z] response = self.client.get('/not_found')
[2024-11-23T20:01:20.807Z] > self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
[2024-11-23T20:01:20.807Z] E AssertionError: 400 != 404
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] tests/test_htmlrenderer.py:154: AssertionError
[2024-11-23T20:01:20.807Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.807Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] Traceback (most recent call last):
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.807Z] response = get_response(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.807Z] response = self.process_request(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.807Z] host = request.get_host()
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.807Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.807Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] WARNING django.request:log.py:248 Bad Request: /not_found
[2024-11-23T20:01:20.807Z] _ TemplateHTMLRendererExceptionTests.test_permission_denied_html_view_with_template _
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererExceptionTests testMethod=test_permission_denied_html_view_with_template>
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def test_permission_denied_html_view_with_template(self):
[2024-11-23T20:01:20.807Z] response = self.client.get('/permission_denied')
[2024-11-23T20:01:20.807Z] > self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
[2024-11-23T20:01:20.807Z] E AssertionError: 400 != 403
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] tests/test_htmlrenderer.py:161: AssertionError
[2024-11-23T20:01:20.807Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:20.807Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] Traceback (most recent call last):
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:20.807Z] response = get_response(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:20.807Z] response = self.process_request(request)
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:20.807Z] host = request.get_host()
[2024-11-23T20:01:20.807Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:20.807Z] raise DisallowedHost(msg)
[2024-11-23T20:01:20.807Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.807Z] WARNING django.request:log.py:248 Bad Request: /permission_denied
[2024-11-23T20:01:20.807Z] _______________ TestLazyHyperlinkNames.test_lazy_hyperlink_names _______________
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb50b8f0>
[2024-11-23T20:01:20.807Z] sql = 'INSERT INTO "tests_example" ("text") VALUES (%s) RETURNING "tests_example"."id"'
[2024-11-23T20:01:20.807Z] params = ('foo',)
[2024-11-23T20:01:20.807Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb50b8f0>})
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.807Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.807Z] # ever set during testing).
[2024-11-23T20:01:20.807Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.807Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.807Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.807Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.807Z] if params is None:
[2024-11-23T20:01:20.807Z] # params default might be backend specific.
[2024-11-23T20:01:20.807Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.807Z] else:
[2024-11-23T20:01:20.807Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.807Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b920>
[2024-11-23T20:01:20.807Z] query = 'INSERT INTO "tests_example" ("text") VALUES (?) RETURNING "tests_example"."id"'
[2024-11-23T20:01:20.807Z] params = ('foo',)
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.807Z] if params is None:
[2024-11-23T20:01:20.807Z] return super().execute(query)
[2024-11-23T20:01:20.807Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.807Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.807Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.807Z] > return super().execute(query, params)
[2024-11-23T20:01:20.807Z] E sqlite3.OperationalError: no such table: tests_example
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] self = <tests.test_lazy_hyperlinks.TestLazyHyperlinkNames testMethod=test_lazy_hyperlink_names>
[2024-11-23T20:01:20.807Z]
[2024-11-23T20:01:20.807Z] def setUp(self):
[2024-11-23T20:01:20.807Z] > self.example = Example.objects.create(text='foo')
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] tests/test_lazy_hyperlinks.py:39:
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.808Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.808Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.808Z] self.save_base(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.808Z] updated = self._save_table(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.808Z] results = self._do_insert(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.808Z] return manager._insert(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.808Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.808Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.808Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.808Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.808Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.808Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.808Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.808Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b920>
[2024-11-23T20:01:20.808Z] query = 'INSERT INTO "tests_example" ("text") VALUES (?) RETURNING "tests_example"."id"'
[2024-11-23T20:01:20.808Z] params = ('foo',)
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.808Z] if params is None:
[2024-11-23T20:01:20.808Z] return super().execute(query)
[2024-11-23T20:01:20.808Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.808Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.808Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.808Z] > return super().execute(query, params)
[2024-11-23T20:01:20.808Z] E django.db.utils.OperationalError: no such table: tests_example
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.808Z] ____________ TestSimpleMetadataFieldInfo.test_related_field_choices ____________
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5819d0>
[2024-11-23T20:01:20.808Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.808Z] params = ('',)
[2024-11-23T20:01:20.808Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5819d0>})
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.808Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.808Z] # ever set during testing).
[2024-11-23T20:01:20.808Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.808Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.808Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.808Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.808Z] if params is None:
[2024-11-23T20:01:20.808Z] # params default might be backend specific.
[2024-11-23T20:01:20.808Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.808Z] else:
[2024-11-23T20:01:20.808Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b020>
[2024-11-23T20:01:20.808Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.808Z] params = ('',)
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.808Z] if params is None:
[2024-11-23T20:01:20.808Z] return super().execute(query)
[2024-11-23T20:01:20.808Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.808Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.808Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.808Z] > return super().execute(query, params)
[2024-11-23T20:01:20.808Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <tests.test_metadata.TestSimpleMetadataFieldInfo testMethod=test_related_field_choices>
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def test_related_field_choices(self):
[2024-11-23T20:01:20.808Z] options = metadata.SimpleMetadata()
[2024-11-23T20:01:20.808Z] > BasicModel.objects.create()
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] tests/test_metadata.py:320:
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.808Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.808Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.808Z] self.save_base(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.808Z] updated = self._save_table(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.808Z] results = self._do_insert(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.808Z] return manager._insert(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.808Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.808Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.808Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.808Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.808Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.808Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.808Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.808Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b020>
[2024-11-23T20:01:20.808Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:20.808Z] params = ('',)
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.808Z] if params is None:
[2024-11-23T20:01:20.808Z] return super().execute(query)
[2024-11-23T20:01:20.808Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.808Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.808Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.808Z] > return super().execute(query, params)
[2024-11-23T20:01:20.808Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.808Z] ___ TestMiddleware.test_middleware_can_access_user_when_processing_response ____
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb57dd90>
[2024-11-23T20:01:20.808Z] 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-23T20:01:20.808Z] params = ('md5$NVtvKynvnrF1xoiEsy6bDW$567726f797e2c7301f0e05b165de2aca', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.808Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb57dd90>})
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.808Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.808Z] # ever set during testing).
[2024-11-23T20:01:20.808Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.808Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.808Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.808Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.808Z] if params is None:
[2024-11-23T20:01:20.808Z] # params default might be backend specific.
[2024-11-23T20:01:20.808Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.808Z] else:
[2024-11-23T20:01:20.808Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98560>
[2024-11-23T20:01:20.808Z] 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-23T20:01:20.808Z] params = ('md5$NVtvKynvnrF1xoiEsy6bDW$567726f797e2c7301f0e05b165de2aca', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.808Z] if params is None:
[2024-11-23T20:01:20.808Z] return super().execute(query)
[2024-11-23T20:01:20.808Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.808Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.808Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.808Z] > return super().execute(query, params)
[2024-11-23T20:01:20.808Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] self = <tests.test_middleware.TestMiddleware testMethod=test_middleware_can_access_user_when_processing_response>
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] @override_settings(MIDDLEWARE=('tests.test_middleware.RequestUserMiddleware',))
[2024-11-23T20:01:20.808Z] def test_middleware_can_access_user_when_processing_response(self):
[2024-11-23T20:01:20.808Z] > user = User.objects.create_user('john', 'john at example.com', 'password')
[2024-11-23T20:01:20.808Z]
[2024-11-23T20:01:20.808Z] tests/test_middleware.py:101:
[2024-11-23T20:01:20.808Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.808Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.808Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.808Z] user.save(using=self._db)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.809Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.809Z] self.save_base(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.809Z] updated = self._save_table(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.809Z] results = self._do_insert(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.809Z] return manager._insert(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.809Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.809Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.809Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.809Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.809Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.809Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.809Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.809Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead98560>
[2024-11-23T20:01:20.809Z] 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-23T20:01:20.809Z] params = ('md5$NVtvKynvnrF1xoiEsy6bDW$567726f797e2c7301f0e05b165de2aca', None, False, 'john', '', '', ...)
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.809Z] if params is None:
[2024-11-23T20:01:20.809Z] return super().execute(query)
[2024-11-23T20:01:20.809Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.809Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.809Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.809Z] > return super().execute(query, params)
[2024-11-23T20:01:20.809Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.809Z] __________ TestRelationalFieldDisplayValue.test_custom_display_value ___________
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb516ff0>
[2024-11-23T20:01:20.809Z] sql = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (%s), (%s), (%s) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T20:01:20.809Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T20:01:20.809Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb516ff0>})
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.809Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.809Z] # ever set during testing).
[2024-11-23T20:01:20.809Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.809Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.809Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.809Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.809Z] if params is None:
[2024-11-23T20:01:20.809Z] # params default might be backend specific.
[2024-11-23T20:01:20.809Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.809Z] else:
[2024-11-23T20:01:20.809Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.809Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b4a0>
[2024-11-23T20:01:20.809Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T20:01:20.809Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.809Z] if params is None:
[2024-11-23T20:01:20.809Z] return super().execute(query)
[2024-11-23T20:01:20.809Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.809Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.809Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.809Z] > return super().execute(query, params)
[2024-11-23T20:01:20.809Z] E sqlite3.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <tests.test_model_serializer.TestRelationalFieldDisplayValue testMethod=test_custom_display_value>
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def setUp(self):
[2024-11-23T20:01:20.809Z] > DisplayValueTargetModel.objects.bulk_create([
[2024-11-23T20:01:20.809Z] DisplayValueTargetModel(name='Red'),
[2024-11-23T20:01:20.809Z] DisplayValueTargetModel(name='Yellow'),
[2024-11-23T20:01:20.809Z] DisplayValueTargetModel(name='Green'),
[2024-11-23T20:01:20.809Z] ])
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] tests/test_model_serializer.py:748:
[2024-11-23T20:01:20.809Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.809Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:835: in bulk_create
[2024-11-23T20:01:20.809Z] returned_columns = self._batched_insert(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1875: in _batched_insert
[2024-11-23T20:01:20.809Z] self._insert(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.809Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.809Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.809Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.809Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.809Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.809Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.809Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b4a0>
[2024-11-23T20:01:20.809Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T20:01:20.809Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.809Z] if params is None:
[2024-11-23T20:01:20.809Z] return super().execute(query)
[2024-11-23T20:01:20.809Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.809Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.809Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.809Z] > return super().execute(query, params)
[2024-11-23T20:01:20.809Z] E django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.809Z] __________ TestRelationalFieldDisplayValue.test_default_display_value __________
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5430b0>
[2024-11-23T20:01:20.809Z] sql = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (%s), (%s), (%s) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T20:01:20.809Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T20:01:20.809Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5430b0>})
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.809Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.809Z] # ever set during testing).
[2024-11-23T20:01:20.809Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.809Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.809Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.809Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.809Z] if params is None:
[2024-11-23T20:01:20.809Z] # params default might be backend specific.
[2024-11-23T20:01:20.809Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.809Z] else:
[2024-11-23T20:01:20.809Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.809Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99760>
[2024-11-23T20:01:20.809Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T20:01:20.809Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.809Z] if params is None:
[2024-11-23T20:01:20.809Z] return super().execute(query)
[2024-11-23T20:01:20.809Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.809Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.809Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.809Z] > return super().execute(query, params)
[2024-11-23T20:01:20.809Z] E sqlite3.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] self = <tests.test_model_serializer.TestRelationalFieldDisplayValue testMethod=test_default_display_value>
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] def setUp(self):
[2024-11-23T20:01:20.809Z] > DisplayValueTargetModel.objects.bulk_create([
[2024-11-23T20:01:20.809Z] DisplayValueTargetModel(name='Red'),
[2024-11-23T20:01:20.809Z] DisplayValueTargetModel(name='Yellow'),
[2024-11-23T20:01:20.809Z] DisplayValueTargetModel(name='Green'),
[2024-11-23T20:01:20.809Z] ])
[2024-11-23T20:01:20.809Z]
[2024-11-23T20:01:20.809Z] tests/test_model_serializer.py:748:
[2024-11-23T20:01:20.809Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.809Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:835: in bulk_create
[2024-11-23T20:01:20.809Z] returned_columns = self._batched_insert(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1875: in _batched_insert
[2024-11-23T20:01:20.809Z] self._insert(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.809Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.809Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.809Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.809Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.810Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.810Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.810Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.810Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.810Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99760>
[2024-11-23T20:01:20.810Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T20:01:20.810Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.810Z] if params is None:
[2024-11-23T20:01:20.810Z] return super().execute(query)
[2024-11-23T20:01:20.810Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.810Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.810Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.810Z] > return super().execute(query, params)
[2024-11-23T20:01:20.810Z] E django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.810Z] ________________________ TestIntegration.test_pk_create ________________________
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1979b0>
[2024-11-23T20:01:20.810Z] sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.810Z] params = ('foreign_key',)
[2024-11-23T20:01:20.810Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1979b0>})
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.810Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.810Z] # ever set during testing).
[2024-11-23T20:01:20.810Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.810Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.810Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.810Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.810Z] if params is None:
[2024-11-23T20:01:20.810Z] # params default might be backend specific.
[2024-11-23T20:01:20.810Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.810Z] else:
[2024-11-23T20:01:20.810Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.810Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b800>
[2024-11-23T20:01:20.810Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.810Z] params = ('foreign_key',)
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.810Z] if params is None:
[2024-11-23T20:01:20.810Z] return super().execute(query)
[2024-11-23T20:01:20.810Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.810Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.810Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.810Z] > return super().execute(query, params)
[2024-11-23T20:01:20.810Z] E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <tests.test_model_serializer.TestIntegration testMethod=test_pk_create>
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def setUp(self):
[2024-11-23T20:01:20.810Z] > self.foreign_key_target = ForeignKeyTargetModel.objects.create(
[2024-11-23T20:01:20.810Z] name='foreign_key'
[2024-11-23T20:01:20.810Z] )
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] tests/test_model_serializer.py:783:
[2024-11-23T20:01:20.810Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.810Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.810Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.810Z] self.save_base(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.810Z] updated = self._save_table(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.810Z] results = self._do_insert(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.810Z] return manager._insert(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.810Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.810Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.810Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.810Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.810Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.810Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.810Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.810Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.810Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b800>
[2024-11-23T20:01:20.810Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.810Z] params = ('foreign_key',)
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.810Z] if params is None:
[2024-11-23T20:01:20.810Z] return super().execute(query)
[2024-11-23T20:01:20.810Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.810Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.810Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.810Z] > return super().execute(query, params)
[2024-11-23T20:01:20.810Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.810Z] _______________________ TestIntegration.test_pk_retrival _______________________
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb517170>
[2024-11-23T20:01:20.810Z] sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.810Z] params = ('foreign_key',)
[2024-11-23T20:01:20.810Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb517170>})
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.810Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.810Z] # ever set during testing).
[2024-11-23T20:01:20.810Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.810Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.810Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.810Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.810Z] if params is None:
[2024-11-23T20:01:20.810Z] # params default might be backend specific.
[2024-11-23T20:01:20.810Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.810Z] else:
[2024-11-23T20:01:20.810Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.810Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99760>
[2024-11-23T20:01:20.810Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.810Z] params = ('foreign_key',)
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.810Z] if params is None:
[2024-11-23T20:01:20.810Z] return super().execute(query)
[2024-11-23T20:01:20.810Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.810Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.810Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.810Z] > return super().execute(query, params)
[2024-11-23T20:01:20.810Z] E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] self = <tests.test_model_serializer.TestIntegration testMethod=test_pk_retrival>
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] def setUp(self):
[2024-11-23T20:01:20.810Z] > self.foreign_key_target = ForeignKeyTargetModel.objects.create(
[2024-11-23T20:01:20.810Z] name='foreign_key'
[2024-11-23T20:01:20.810Z] )
[2024-11-23T20:01:20.810Z]
[2024-11-23T20:01:20.810Z] tests/test_model_serializer.py:783:
[2024-11-23T20:01:20.810Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.810Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.810Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.810Z] self.save_base(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.810Z] updated = self._save_table(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.810Z] results = self._do_insert(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.810Z] return manager._insert(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.810Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.810Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.810Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.810Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.810Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.810Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.810Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.811Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.811Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.811Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99760>
[2024-11-23T20:01:20.811Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.811Z] params = ('foreign_key',)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.811Z] if params is None:
[2024-11-23T20:01:20.811Z] return super().execute(query)
[2024-11-23T20:01:20.811Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.811Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.811Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.811Z] > return super().execute(query, params)
[2024-11-23T20:01:20.811Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.811Z] ________________________ TestIntegration.test_pk_update ________________________
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb595b50>
[2024-11-23T20:01:20.811Z] sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.811Z] params = ('foreign_key',)
[2024-11-23T20:01:20.811Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb595b50>})
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.811Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.811Z] # ever set during testing).
[2024-11-23T20:01:20.811Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.811Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.811Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.811Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.811Z] if params is None:
[2024-11-23T20:01:20.811Z] # params default might be backend specific.
[2024-11-23T20:01:20.811Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.811Z] else:
[2024-11-23T20:01:20.811Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.811Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b4a0>
[2024-11-23T20:01:20.811Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.811Z] params = ('foreign_key',)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.811Z] if params is None:
[2024-11-23T20:01:20.811Z] return super().execute(query)
[2024-11-23T20:01:20.811Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.811Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.811Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.811Z] > return super().execute(query, params)
[2024-11-23T20:01:20.811Z] E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <tests.test_model_serializer.TestIntegration testMethod=test_pk_update>
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def setUp(self):
[2024-11-23T20:01:20.811Z] > self.foreign_key_target = ForeignKeyTargetModel.objects.create(
[2024-11-23T20:01:20.811Z] name='foreign_key'
[2024-11-23T20:01:20.811Z] )
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] tests/test_model_serializer.py:783:
[2024-11-23T20:01:20.811Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.811Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.811Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.811Z] self.save_base(
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.811Z] updated = self._save_table(
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.811Z] results = self._do_insert(
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.811Z] return manager._insert(
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.811Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.811Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.811Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.811Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.811Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.811Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.811Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.811Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.811Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b4a0>
[2024-11-23T20:01:20.811Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T20:01:20.811Z] params = ('foreign_key',)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.811Z] if params is None:
[2024-11-23T20:01:20.811Z] return super().execute(query)
[2024-11-23T20:01:20.811Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.811Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.811Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.811Z] > return super().execute(query, params)
[2024-11-23T20:01:20.811Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.811Z] _______________________ TestBulkCreate.test_bulk_create ________________________
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb597950>
[2024-11-23T20:01:20.811Z] sql = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (%s) RETURNING "tests_bulkcreatemodel"."id"'
[2024-11-23T20:01:20.811Z] params = ('a',)
[2024-11-23T20:01:20.811Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb597950>})
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.811Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.811Z] # ever set during testing).
[2024-11-23T20:01:20.811Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.811Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.811Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.811Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.811Z] if params is None:
[2024-11-23T20:01:20.811Z] # params default might be backend specific.
[2024-11-23T20:01:20.811Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.811Z] else:
[2024-11-23T20:01:20.811Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.811Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9ad50>
[2024-11-23T20:01:20.811Z] query = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (?) RETURNING "tests_bulkcreatemodel"."id"'
[2024-11-23T20:01:20.811Z] params = ('a',)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.811Z] if params is None:
[2024-11-23T20:01:20.811Z] return super().execute(query)
[2024-11-23T20:01:20.811Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.811Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.811Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.811Z] > return super().execute(query, params)
[2024-11-23T20:01:20.811Z] E sqlite3.OperationalError: no such table: tests_bulkcreatemodel
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] self = <tests.test_model_serializer.TestBulkCreate testMethod=test_bulk_create>
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] def test_bulk_create(self):
[2024-11-23T20:01:20.811Z] class BasicModelSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.811Z] class Meta:
[2024-11-23T20:01:20.811Z] model = BulkCreateModel
[2024-11-23T20:01:20.811Z] fields = ('name',)
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] class BulkCreateSerializer(serializers.ListSerializer):
[2024-11-23T20:01:20.811Z] child = BasicModelSerializer()
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] data = [{'name': 'a'}, {'name': 'b'}, {'name': 'c'}]
[2024-11-23T20:01:20.811Z] serializer = BulkCreateSerializer(data=data)
[2024-11-23T20:01:20.811Z] assert serializer.is_valid()
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] # Objects are returned by save().
[2024-11-23T20:01:20.811Z] > instances = serializer.save()
[2024-11-23T20:01:20.811Z]
[2024-11-23T20:01:20.811Z] tests/test_model_serializer.py:934:
[2024-11-23T20:01:20.811Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.811Z] rest_framework/serializers.py:758: in save
[2024-11-23T20:01:20.811Z] self.instance = self.create(validated_data)
[2024-11-23T20:01:20.811Z] rest_framework/serializers.py:731: in create
[2024-11-23T20:01:20.811Z] self.child.create(attrs) for attrs in validated_data
[2024-11-23T20:01:20.811Z] rest_framework/serializers.py:989: in create
[2024-11-23T20:01:20.811Z] instance = ModelClass._default_manager.create(**validated_data)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.811Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.811Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.811Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.811Z] self.save_base(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.812Z] updated = self._save_table(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.812Z] results = self._do_insert(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.812Z] return manager._insert(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.812Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.812Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.812Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.812Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.812Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.812Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.812Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.812Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9ad50>
[2024-11-23T20:01:20.812Z] query = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (?) RETURNING "tests_bulkcreatemodel"."id"'
[2024-11-23T20:01:20.812Z] params = ('a',)
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] return super().execute(query)
[2024-11-23T20:01:20.812Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.812Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.812Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.812Z] > return super().execute(query, params)
[2024-11-23T20:01:20.812Z] E django.db.utils.OperationalError: no such table: tests_bulkcreatemodel
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.812Z] _____________________ Issue2704TestCase.test_queryset_all ______________________
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5952b0>
[2024-11-23T20:01:20.812Z] sql = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (%s) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T20:01:20.812Z] params = ('abc',)
[2024-11-23T20:01:20.812Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5952b0>})
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.812Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.812Z] # ever set during testing).
[2024-11-23T20:01:20.812Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.812Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.812Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.812Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] # params default might be backend specific.
[2024-11-23T20:01:20.812Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.812Z] else:
[2024-11-23T20:01:20.812Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97020>
[2024-11-23T20:01:20.812Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T20:01:20.812Z] params = ('abc',)
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] return super().execute(query)
[2024-11-23T20:01:20.812Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.812Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.812Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.812Z] > return super().execute(query, params)
[2024-11-23T20:01:20.812Z] E sqlite3.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <tests.test_model_serializer.Issue2704TestCase testMethod=test_queryset_all>
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def test_queryset_all(self):
[2024-11-23T20:01:20.812Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.812Z] additional_attr = serializers.CharField()
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] class Meta:
[2024-11-23T20:01:20.812Z] model = OneFieldModel
[2024-11-23T20:01:20.812Z] fields = ('char_field', 'additional_attr')
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] > OneFieldModel.objects.create(char_field='abc')
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] tests/test_model_serializer.py:1008:
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.812Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.812Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.812Z] self.save_base(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.812Z] updated = self._save_table(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.812Z] results = self._do_insert(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.812Z] return manager._insert(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.812Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.812Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.812Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.812Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.812Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.812Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.812Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.812Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97020>
[2024-11-23T20:01:20.812Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T20:01:20.812Z] params = ('abc',)
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] return super().execute(query)
[2024-11-23T20:01:20.812Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.812Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.812Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.812Z] > return super().execute(query, params)
[2024-11-23T20:01:20.812Z] E django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.812Z] _____________________ Issue7550TestCase.test_dotted_source _____________________
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb577ef0>
[2024-11-23T20:01:20.812Z] sql = 'INSERT INTO "tests_issue7550barmodel" ("id") VALUES (NULL) RETURNING "tests_issue7550barmodel"."id"'
[2024-11-23T20:01:20.812Z] params = ()
[2024-11-23T20:01:20.812Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb577ef0>})
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.812Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.812Z] # ever set during testing).
[2024-11-23T20:01:20.812Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.812Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.812Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.812Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] # params default might be backend specific.
[2024-11-23T20:01:20.812Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.812Z] else:
[2024-11-23T20:01:20.812Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b020>
[2024-11-23T20:01:20.812Z] query = 'INSERT INTO "tests_issue7550barmodel" ("id") VALUES (NULL) RETURNING "tests_issue7550barmodel"."id"'
[2024-11-23T20:01:20.812Z] params = ()
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] return super().execute(query)
[2024-11-23T20:01:20.812Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.812Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.812Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.812Z] > return super().execute(query, params)
[2024-11-23T20:01:20.812Z] E sqlite3.OperationalError: no such table: tests_issue7550barmodel
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <tests.test_model_serializer.Issue7550TestCase testMethod=test_dotted_source>
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def test_dotted_source(self):
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] class _FooSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.812Z] class Meta:
[2024-11-23T20:01:20.812Z] model = Issue7550FooModel
[2024-11-23T20:01:20.812Z] fields = ('id', 'text')
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] class FooSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.812Z] other_foos = _FooSerializer(source='bar.foos', many=True)
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] class Meta:
[2024-11-23T20:01:20.812Z] model = Issue7550BarModel
[2024-11-23T20:01:20.812Z] fields = ('id', 'other_foos')
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] > bar = Issue7550BarModel.objects.create()
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] tests/test_model_serializer.py:1051:
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.812Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.812Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.812Z] self.save_base(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.812Z] updated = self._save_table(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.812Z] results = self._do_insert(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.812Z] return manager._insert(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.812Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.812Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.812Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.812Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.812Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.812Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.812Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.812Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.812Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.812Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b020>
[2024-11-23T20:01:20.812Z] query = 'INSERT INTO "tests_issue7550barmodel" ("id") VALUES (NULL) RETURNING "tests_issue7550barmodel"."id"'
[2024-11-23T20:01:20.812Z] params = ()
[2024-11-23T20:01:20.812Z]
[2024-11-23T20:01:20.812Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.812Z] if params is None:
[2024-11-23T20:01:20.812Z] return super().execute(query)
[2024-11-23T20:01:20.812Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.813Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.813Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.813Z] > return super().execute(query, params)
[2024-11-23T20:01:20.813Z] E django.db.utils.OperationalError: no such table: tests_issue7550barmodel
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.813Z] ______________ Issue7550TestCase.test_dotted_source_with_default _______________
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb574170>
[2024-11-23T20:01:20.813Z] sql = 'INSERT INTO "tests_issue7550foomodel" ("text", "bar_id") VALUES (%s, %s) RETURNING "tests_issue7550foomodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc', None)
[2024-11-23T20:01:20.813Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb574170>})
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.813Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.813Z] # ever set during testing).
[2024-11-23T20:01:20.813Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.813Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.813Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.813Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] # params default might be backend specific.
[2024-11-23T20:01:20.813Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.813Z] else:
[2024-11-23T20:01:20.813Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9aba0>
[2024-11-23T20:01:20.813Z] query = 'INSERT INTO "tests_issue7550foomodel" ("text", "bar_id") VALUES (?, ?) RETURNING "tests_issue7550foomodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc', None)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] return super().execute(query)
[2024-11-23T20:01:20.813Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.813Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.813Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.813Z] > return super().execute(query, params)
[2024-11-23T20:01:20.813Z] E sqlite3.OperationalError: no such table: tests_issue7550foomodel
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <tests.test_model_serializer.Issue7550TestCase testMethod=test_dotted_source_with_default>
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def test_dotted_source_with_default(self):
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] class _FooSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.813Z] class Meta:
[2024-11-23T20:01:20.813Z] model = Issue7550FooModel
[2024-11-23T20:01:20.813Z] fields = ('id', 'text')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] class FooSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.813Z] other_foos = _FooSerializer(source='bar.foos', default=[], many=True)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] class Meta:
[2024-11-23T20:01:20.813Z] model = Issue7550FooModel
[2024-11-23T20:01:20.813Z] fields = ('id', 'other_foos')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] > foo = Issue7550FooModel.objects.create(bar=None, text='abc')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] tests/test_model_serializer.py:1083:
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.813Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.813Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.813Z] self.save_base(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.813Z] updated = self._save_table(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.813Z] results = self._do_insert(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.813Z] return manager._insert(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.813Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.813Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.813Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.813Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.813Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.813Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.813Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.813Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9aba0>
[2024-11-23T20:01:20.813Z] query = 'INSERT INTO "tests_issue7550foomodel" ("text", "bar_id") VALUES (?, ?) RETURNING "tests_issue7550foomodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc', None)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] return super().execute(query)
[2024-11-23T20:01:20.813Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.813Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.813Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.813Z] > return super().execute(query, params)
[2024-11-23T20:01:20.813Z] E django.db.utils.OperationalError: no such table: tests_issue7550foomodel
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.813Z] ___________ Issue3674Test.test_nonID_PK_foreignkey_model_serializer ____________
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb57dd90>
[2024-11-23T20:01:20.813Z] sql = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (%s) RETURNING "tests_issue3674parentmodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc',)
[2024-11-23T20:01:20.813Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb57dd90>})
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.813Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.813Z] # ever set during testing).
[2024-11-23T20:01:20.813Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.813Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.813Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.813Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] # params default might be backend specific.
[2024-11-23T20:01:20.813Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.813Z] else:
[2024-11-23T20:01:20.813Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b020>
[2024-11-23T20:01:20.813Z] query = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (?) RETURNING "tests_issue3674parentmodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc',)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] return super().execute(query)
[2024-11-23T20:01:20.813Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.813Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.813Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.813Z] > return super().execute(query, params)
[2024-11-23T20:01:20.813Z] E sqlite3.OperationalError: no such table: tests_issue3674parentmodel
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <tests.test_model_serializer.Issue3674Test testMethod=test_nonID_PK_foreignkey_model_serializer>
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def test_nonID_PK_foreignkey_model_serializer(self):
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] class TestChildModelSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.813Z] class Meta:
[2024-11-23T20:01:20.813Z] model = Issue3674ChildModel
[2024-11-23T20:01:20.813Z] fields = ('value', 'parent')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] class TestParentModelSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.813Z] class Meta:
[2024-11-23T20:01:20.813Z] model = Issue3674ParentModel
[2024-11-23T20:01:20.813Z] fields = ('id', 'title', 'children')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] > parent = Issue3674ParentModel.objects.create(title='abc')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] tests/test_model_serializer.py:1260:
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.813Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.813Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.813Z] self.save_base(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.813Z] updated = self._save_table(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.813Z] results = self._do_insert(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.813Z] return manager._insert(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.813Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.813Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.813Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.813Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.813Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.813Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.813Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.813Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9b020>
[2024-11-23T20:01:20.813Z] query = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (?) RETURNING "tests_issue3674parentmodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc',)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] return super().execute(query)
[2024-11-23T20:01:20.813Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.813Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.813Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.813Z] > return super().execute(query, params)
[2024-11-23T20:01:20.813Z] E django.db.utils.OperationalError: no such table: tests_issue3674parentmodel
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.813Z] _______ Issue4897TestCase.test_should_assert_if_writing_readonly_fields ________
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5748f0>
[2024-11-23T20:01:20.813Z] sql = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (%s) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc',)
[2024-11-23T20:01:20.813Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5748f0>})
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.813Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.813Z] # ever set during testing).
[2024-11-23T20:01:20.813Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.813Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.813Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.813Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] # params default might be backend specific.
[2024-11-23T20:01:20.813Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.813Z] else:
[2024-11-23T20:01:20.813Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9bec0>
[2024-11-23T20:01:20.813Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T20:01:20.813Z] params = ('abc',)
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.813Z] if params is None:
[2024-11-23T20:01:20.813Z] return super().execute(query)
[2024-11-23T20:01:20.813Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.813Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.813Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.813Z] > return super().execute(query, params)
[2024-11-23T20:01:20.813Z] E sqlite3.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] self = <tests.test_model_serializer.Issue4897TestCase testMethod=test_should_assert_if_writing_readonly_fields>
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] def test_should_assert_if_writing_readonly_fields(self):
[2024-11-23T20:01:20.813Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.813Z] class Meta:
[2024-11-23T20:01:20.813Z] model = OneFieldModel
[2024-11-23T20:01:20.813Z] fields = ('char_field',)
[2024-11-23T20:01:20.813Z] readonly_fields = fields
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] > obj = OneFieldModel.objects.create(char_field='abc')
[2024-11-23T20:01:20.813Z]
[2024-11-23T20:01:20.813Z] tests/test_model_serializer.py:1281:
[2024-11-23T20:01:20.813Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.813Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.813Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.813Z] self.save_base(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.813Z] updated = self._save_table(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.813Z] results = self._do_insert(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.813Z] return manager._insert(
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.813Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.813Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.813Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.814Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.814Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.814Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.814Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.814Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.814Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead9bec0>
[2024-11-23T20:01:20.814Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T20:01:20.814Z] params = ('abc',)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] return super().execute(query)
[2024-11-23T20:01:20.814Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.814Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.814Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.814Z] > return super().execute(query, params)
[2024-11-23T20:01:20.814Z] E django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.814Z] ______________ Test5004UniqueChoiceField.test_unique_choice_field ______________
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eacf6810>
[2024-11-23T20:01:20.814Z] sql = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (%s) RETURNING "tests_uniquechoicemodel"."id"'
[2024-11-23T20:01:20.814Z] params = ('choice1',)
[2024-11-23T20:01:20.814Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eacf6810>})
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.814Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.814Z] # ever set during testing).
[2024-11-23T20:01:20.814Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.814Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.814Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.814Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] # params default might be backend specific.
[2024-11-23T20:01:20.814Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.814Z] else:
[2024-11-23T20:01:20.814Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99c70>
[2024-11-23T20:01:20.814Z] query = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (?) RETURNING "tests_uniquechoicemodel"."id"'
[2024-11-23T20:01:20.814Z] params = ('choice1',)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] return super().execute(query)
[2024-11-23T20:01:20.814Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.814Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.814Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.814Z] > return super().execute(query, params)
[2024-11-23T20:01:20.814Z] E sqlite3.OperationalError: no such table: tests_uniquechoicemodel
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <tests.test_model_serializer.Test5004UniqueChoiceField testMethod=test_unique_choice_field>
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def test_unique_choice_field(self):
[2024-11-23T20:01:20.814Z] class TestUniqueChoiceSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.814Z] class Meta:
[2024-11-23T20:01:20.814Z] model = UniqueChoiceModel
[2024-11-23T20:01:20.814Z] fields = '__all__'
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] > UniqueChoiceModel.objects.create(name='choice1')
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] tests/test_model_serializer.py:1295:
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.814Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.814Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.814Z] self.save_base(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.814Z] updated = self._save_table(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.814Z] results = self._do_insert(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.814Z] return manager._insert(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.814Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.814Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.814Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.814Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.814Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.814Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.814Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.814Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ead99c70>
[2024-11-23T20:01:20.814Z] query = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (?) RETURNING "tests_uniquechoicemodel"."id"'
[2024-11-23T20:01:20.814Z] params = ('choice1',)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] return super().execute(query)
[2024-11-23T20:01:20.814Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.814Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.814Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.814Z] > return super().execute(query, params)
[2024-11-23T20:01:20.814Z] E django.db.utils.OperationalError: no such table: tests_uniquechoicemodel
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.814Z] __________________ TestFieldSource.test_traverse_nullable_fk ___________________
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5753d0>
[2024-11-23T20:01:20.814Z] sql = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (%s, %s) RETURNING "tests_nestedforeignkeysource"."id"'
[2024-11-23T20:01:20.814Z] params = ('', None)
[2024-11-23T20:01:20.814Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5753d0>})
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.814Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.814Z] # ever set during testing).
[2024-11-23T20:01:20.814Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.814Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.814Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.814Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] # params default might be backend specific.
[2024-11-23T20:01:20.814Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.814Z] else:
[2024-11-23T20:01:20.814Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae96f90>
[2024-11-23T20:01:20.814Z] query = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (?, ?) RETURNING "tests_nestedforeignkeysource"."id"'
[2024-11-23T20:01:20.814Z] params = ('', None)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] return super().execute(query)
[2024-11-23T20:01:20.814Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.814Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.814Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.814Z] > return super().execute(query, params)
[2024-11-23T20:01:20.814Z] E sqlite3.OperationalError: no such table: tests_nestedforeignkeysource
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <tests.test_model_serializer.TestFieldSource testMethod=test_traverse_nullable_fk>
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def test_traverse_nullable_fk(self):
[2024-11-23T20:01:20.814Z] """
[2024-11-23T20:01:20.814Z] A dotted source with nullable elements uses default when any item in the chain is None. #5849.
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] Similar to model example from test_serializer.py `test_default_for_multiple_dotted_source` method,
[2024-11-23T20:01:20.814Z] but using RelatedField, rather than CharField.
[2024-11-23T20:01:20.814Z] """
[2024-11-23T20:01:20.814Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.814Z] target = serializers.PrimaryKeyRelatedField(
[2024-11-23T20:01:20.814Z] source='target.target', read_only=True, allow_null=True, default=None
[2024-11-23T20:01:20.814Z] )
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] class Meta:
[2024-11-23T20:01:20.814Z] model = NestedForeignKeySource
[2024-11-23T20:01:20.814Z] fields = ('target', )
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] > model = NestedForeignKeySource.objects.create()
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] tests/test_model_serializer.py:1318:
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.814Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.814Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.814Z] self.save_base(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.814Z] updated = self._save_table(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.814Z] results = self._do_insert(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.814Z] return manager._insert(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.814Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.814Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.814Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.814Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.814Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.814Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.814Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.814Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae96f90>
[2024-11-23T20:01:20.814Z] query = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (?, ?) RETURNING "tests_nestedforeignkeysource"."id"'
[2024-11-23T20:01:20.814Z] params = ('', None)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] return super().execute(query)
[2024-11-23T20:01:20.814Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.814Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.814Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.814Z] > return super().execute(query, params)
[2024-11-23T20:01:20.814Z] E django.db.utils.OperationalError: no such table: tests_nestedforeignkeysource
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.814Z] ______________ Issue6110Test.test_model_serializer_custom_manager ______________
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb575010>
[2024-11-23T20:01:20.814Z] sql = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (%s) RETURNING "tests_issue6110testmodel"."id"'
[2024-11-23T20:01:20.814Z] params = ('test_name',)
[2024-11-23T20:01:20.814Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb575010>})
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.814Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.814Z] # ever set during testing).
[2024-11-23T20:01:20.814Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.814Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.814Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.814Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] # params default might be backend specific.
[2024-11-23T20:01:20.814Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.814Z] else:
[2024-11-23T20:01:20.814Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae95910>
[2024-11-23T20:01:20.814Z] query = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (?) RETURNING "tests_issue6110testmodel"."id"'
[2024-11-23T20:01:20.814Z] params = ('test_name',)
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.814Z] if params is None:
[2024-11-23T20:01:20.814Z] return super().execute(query)
[2024-11-23T20:01:20.814Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.814Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.814Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.814Z] > return super().execute(query, params)
[2024-11-23T20:01:20.814Z] E sqlite3.OperationalError: no such table: tests_issue6110testmodel
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] self = <tests.test_model_serializer.Issue6110Test testMethod=test_model_serializer_custom_manager>
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] def test_model_serializer_custom_manager(self):
[2024-11-23T20:01:20.814Z] > instance = Issue6110ModelSerializer().create({'name': 'test_name'})
[2024-11-23T20:01:20.814Z]
[2024-11-23T20:01:20.814Z] tests/test_model_serializer.py:1356:
[2024-11-23T20:01:20.814Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z] rest_framework/serializers.py:989: in create
[2024-11-23T20:01:20.815Z] instance = ModelClass._default_manager.create(**validated_data)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.815Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.815Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.815Z] self.save_base(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.815Z] updated = self._save_table(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.815Z] results = self._do_insert(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.815Z] return manager._insert(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.815Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.815Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.815Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.815Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.815Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.815Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.815Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.815Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae95910>
[2024-11-23T20:01:20.815Z] query = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (?) RETURNING "tests_issue6110testmodel"."id"'
[2024-11-23T20:01:20.815Z] params = ('test_name',)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] return super().execute(query)
[2024-11-23T20:01:20.815Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.815Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.815Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.815Z] > return super().execute(query, params)
[2024-11-23T20:01:20.815Z] E django.db.utils.OperationalError: no such table: tests_issue6110testmodel
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.815Z] _________ Issue6751Test.test_model_serializer_save_m2m_after_instance __________
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eae2dfd0>
[2024-11-23T20:01:20.815Z] sql = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (%s, %s) RETURNING "tests_issue6751model"."id"'
[2024-11-23T20:01:20.815Z] params = ('initial value', '')
[2024-11-23T20:01:20.815Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eae2dfd0>})
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.815Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.815Z] # ever set during testing).
[2024-11-23T20:01:20.815Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.815Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.815Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.815Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] # params default might be backend specific.
[2024-11-23T20:01:20.815Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.815Z] else:
[2024-11-23T20:01:20.815Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97800>
[2024-11-23T20:01:20.815Z] query = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (?, ?) RETURNING "tests_issue6751model"."id"'
[2024-11-23T20:01:20.815Z] params = ('initial value', '')
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] return super().execute(query)
[2024-11-23T20:01:20.815Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.815Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.815Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.815Z] > return super().execute(query, params)
[2024-11-23T20:01:20.815Z] E sqlite3.OperationalError: no such table: tests_issue6751model
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <tests.test_model_serializer.Issue6751Test testMethod=test_model_serializer_save_m2m_after_instance>
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def test_model_serializer_save_m2m_after_instance(self):
[2024-11-23T20:01:20.815Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T20:01:20.815Z] class Meta:
[2024-11-23T20:01:20.815Z] model = Issue6751Model
[2024-11-23T20:01:20.815Z] fields = (
[2024-11-23T20:01:20.815Z] 'many_to_many',
[2024-11-23T20:01:20.815Z] 'char_field',
[2024-11-23T20:01:20.815Z] )
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] > instance = Issue6751Model.objects.create(char_field='initial value')
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] tests/test_model_serializer.py:1388:
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.815Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.815Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.815Z] self.save_base(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.815Z] updated = self._save_table(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.815Z] results = self._do_insert(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.815Z] return manager._insert(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.815Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.815Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.815Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.815Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.815Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.815Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.815Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.815Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97800>
[2024-11-23T20:01:20.815Z] query = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (?, ?) RETURNING "tests_issue6751model"."id"'
[2024-11-23T20:01:20.815Z] params = ('initial value', '')
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] return super().execute(query)
[2024-11-23T20:01:20.815Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.815Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.815Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.815Z] > return super().execute(query, params)
[2024-11-23T20:01:20.815Z] E django.db.utils.OperationalError: no such table: tests_issue6751model
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.815Z] _ InheritedModelSerializationTests.test_onetoone_primary_key_model_fields_as_expected _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eae2c5f0>
[2024-11-23T20:01:20.815Z] sql = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (%s) RETURNING "tests_parentmodel"."id"'
[2024-11-23T20:01:20.815Z] params = ('parent name',)
[2024-11-23T20:01:20.815Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eae2c5f0>})
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.815Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.815Z] # ever set during testing).
[2024-11-23T20:01:20.815Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.815Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.815Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.815Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] # params default might be backend specific.
[2024-11-23T20:01:20.815Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.815Z] else:
[2024-11-23T20:01:20.815Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae964e0>
[2024-11-23T20:01:20.815Z] query = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (?) RETURNING "tests_parentmodel"."id"'
[2024-11-23T20:01:20.815Z] params = ('parent name',)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] return super().execute(query)
[2024-11-23T20:01:20.815Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.815Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.815Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.815Z] > return super().execute(query, params)
[2024-11-23T20:01:20.815Z] E sqlite3.OperationalError: no such table: tests_parentmodel
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <tests.test_multitable_inheritance.InheritedModelSerializationTests testMethod=test_onetoone_primary_key_model_fields_as_expected>
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def test_onetoone_primary_key_model_fields_as_expected(self):
[2024-11-23T20:01:20.815Z] """
[2024-11-23T20:01:20.815Z] Assert that a model with a onetoone field that is the primary key is
[2024-11-23T20:01:20.815Z] not treated like a derived model
[2024-11-23T20:01:20.815Z] """
[2024-11-23T20:01:20.815Z] > parent = ParentModel.objects.create(name1='parent name')
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] tests/test_multitable_inheritance.py:52:
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.815Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.815Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.815Z] self.save_base(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.815Z] updated = self._save_table(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.815Z] results = self._do_insert(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.815Z] return manager._insert(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.815Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.815Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.815Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.815Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.815Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.815Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.815Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.815Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae964e0>
[2024-11-23T20:01:20.815Z] query = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (?) RETURNING "tests_parentmodel"."id"'
[2024-11-23T20:01:20.815Z] params = ('parent name',)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.815Z] if params is None:
[2024-11-23T20:01:20.815Z] return super().execute(query)
[2024-11-23T20:01:20.815Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.815Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.815Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.815Z] > return super().execute(query, params)
[2024-11-23T20:01:20.815Z] E django.db.utils.OperationalError: no such table: tests_parentmodel
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.815Z] _________ TestPaginationIntegration.test_filtered_items_are_paginated __________
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7176ec099bd0>
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def test_filtered_items_are_paginated(self):
[2024-11-23T20:01:20.815Z] request = factory.get('/', {'page': 2})
[2024-11-23T20:01:20.815Z] > response = self.view(request)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] tests/test_pagination.py:44:
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.815Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.815Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.815Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.815Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.815Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.815Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.815Z] raise exc
[2024-11-23T20:01:20.815Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.815Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] rest_framework/generics.py:203: in get
[2024-11-23T20:01:20.815Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] rest_framework/mixins.py:43: in list
[2024-11-23T20:01:20.815Z] return self.get_paginated_response(serializer.data)
[2024-11-23T20:01:20.815Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T20:01:20.815Z] return self.paginator.get_paginated_response(data)
[2024-11-23T20:01:20.815Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.815Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.815Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.815Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.815Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.815Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.815Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <WSGIRequest: GET '/?page=2'>
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def get_host(self):
[2024-11-23T20:01:20.815Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.815Z] host = self._get_raw_host()
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.815Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.815Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.815Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.815Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.815Z] return host
[2024-11-23T20:01:20.815Z] else:
[2024-11-23T20:01:20.815Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.815Z] if domain:
[2024-11-23T20:01:20.815Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.815Z] else:
[2024-11-23T20:01:20.815Z] msg += (
[2024-11-23T20:01:20.815Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.815Z] )
[2024-11-23T20:01:20.815Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.815Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.815Z] _______________ TestPaginationIntegration.test_setting_page_size _______________
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7176ec09a0d0>
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def test_setting_page_size(self):
[2024-11-23T20:01:20.815Z] """
[2024-11-23T20:01:20.815Z] When 'paginate_by_param' is set, the client may choose a page size.
[2024-11-23T20:01:20.815Z] """
[2024-11-23T20:01:20.815Z] request = factory.get('/', {'page_size': 10})
[2024-11-23T20:01:20.815Z] > response = self.view(request)
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] tests/test_pagination.py:58:
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.815Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.815Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.815Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.815Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.815Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.815Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.815Z] raise exc
[2024-11-23T20:01:20.815Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.815Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] rest_framework/generics.py:203: in get
[2024-11-23T20:01:20.815Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.815Z] rest_framework/mixins.py:43: in list
[2024-11-23T20:01:20.815Z] return self.get_paginated_response(serializer.data)
[2024-11-23T20:01:20.815Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T20:01:20.815Z] return self.paginator.get_paginated_response(data)
[2024-11-23T20:01:20.815Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.815Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.815Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.815Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.815Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.815Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.815Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.815Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.815Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] self = <WSGIRequest: GET '/?page_size=10'>
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] def get_host(self):
[2024-11-23T20:01:20.815Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.815Z] host = self._get_raw_host()
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.815Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.815Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.815Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.815Z]
[2024-11-23T20:01:20.815Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.815Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.815Z] return host
[2024-11-23T20:01:20.815Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] ________ TestPaginationIntegration.test_setting_page_size_over_maximum _________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7176ebf01940>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def test_setting_page_size_over_maximum(self):
[2024-11-23T20:01:20.816Z] """
[2024-11-23T20:01:20.816Z] When page_size parameter exceeds maximum allowable,
[2024-11-23T20:01:20.816Z] then it should be capped to the maximum.
[2024-11-23T20:01:20.816Z] """
[2024-11-23T20:01:20.816Z] request = factory.get('/', {'page_size': 1000})
[2024-11-23T20:01:20.816Z] > response = self.view(request)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:73:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.816Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.816Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.816Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.816Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.816Z] raise exc
[2024-11-23T20:01:20.816Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.816Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:203: in get
[2024-11-23T20:01:20.816Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/mixins.py:43: in list
[2024-11-23T20:01:20.816Z] return self.get_paginated_response(serializer.data)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T20:01:20.816Z] return self.paginator.get_paginated_response(data)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page_size=1000'>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] ___________ TestPaginationIntegration.test_setting_page_size_to_zero ___________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7176ebf01ba0>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def test_setting_page_size_to_zero(self):
[2024-11-23T20:01:20.816Z] """
[2024-11-23T20:01:20.816Z] When page_size parameter is invalid it should return to the default.
[2024-11-23T20:01:20.816Z] """
[2024-11-23T20:01:20.816Z] request = factory.get('/', {'page_size': 0})
[2024-11-23T20:01:20.816Z] > response = self.view(request)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:90:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.816Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.816Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.816Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.816Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.816Z] raise exc
[2024-11-23T20:01:20.816Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.816Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:203: in get
[2024-11-23T20:01:20.816Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/mixins.py:43: in list
[2024-11-23T20:01:20.816Z] return self.get_paginated_response(serializer.data)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T20:01:20.816Z] return self.paginator.get_paginated_response(data)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page_size=0'>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] _____ TestPaginationIntegration.test_additional_query_params_are_preserved _____
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7176ec0327b0>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def test_additional_query_params_are_preserved(self):
[2024-11-23T20:01:20.816Z] request = factory.get('/', {'page': 2, 'filter': 'even'})
[2024-11-23T20:01:20.816Z] > response = self.view(request)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:101:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.816Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.816Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.816Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.816Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.816Z] raise exc
[2024-11-23T20:01:20.816Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.816Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:203: in get
[2024-11-23T20:01:20.816Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/mixins.py:43: in list
[2024-11-23T20:01:20.816Z] return self.get_paginated_response(serializer.data)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T20:01:20.816Z] return self.paginator.get_paginated_response(data)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page=2&filter=even'>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] _______ TestPaginationIntegration.test_empty_query_params_are_preserved ________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7176ec477df0>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def test_empty_query_params_are_preserved(self):
[2024-11-23T20:01:20.816Z] request = factory.get('/', {'page': 2, 'filter': ''})
[2024-11-23T20:01:20.816Z] > response = self.view(request)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:112:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:20.816Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:20.816Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:20.816Z] response = self.handle_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:20.816Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:20.816Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:20.816Z] raise exc
[2024-11-23T20:01:20.816Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:20.816Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:203: in get
[2024-11-23T20:01:20.816Z] return self.list(request, *args, **kwargs)
[2024-11-23T20:01:20.816Z] rest_framework/mixins.py:43: in list
[2024-11-23T20:01:20.816Z] return self.get_paginated_response(serializer.data)
[2024-11-23T20:01:20.816Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T20:01:20.816Z] return self.paginator.get_paginated_response(data)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page=2&filter='>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] _______________ TestPageNumberPagination.test_no_page_number[/] ________________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7176ec09a350>
[2024-11-23T20:01:20.816Z] url = '/'
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] @pytest.mark.parametrize('url', ['/', '/?page='])
[2024-11-23T20:01:20.816Z] def test_no_page_number(self, url):
[2024-11-23T20:01:20.816Z] request = Request(factory.get(url))
[2024-11-23T20:01:20.816Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.816Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:187:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T20:01:20.816Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] ____________ TestPageNumberPagination.test_no_page_number[/?page=] _____________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7176ec09a490>
[2024-11-23T20:01:20.816Z] url = '/?page='
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] @pytest.mark.parametrize('url', ['/', '/?page='])
[2024-11-23T20:01:20.816Z] def test_no_page_number(self, url):
[2024-11-23T20:01:20.816Z] request = Request(factory.get(url))
[2024-11-23T20:01:20.816Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.816Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:187:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T20:01:20.816Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page='>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] __________________ TestPageNumberPagination.test_second_page ___________________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7176ebf01220>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def test_second_page(self):
[2024-11-23T20:01:20.816Z] request = Request(factory.get('/', {'page': 2}))
[2024-11-23T20:01:20.816Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.816Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:213:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T20:01:20.816Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page=2'>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.816Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.816Z] return host
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.816Z] if domain:
[2024-11-23T20:01:20.816Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.816Z] else:
[2024-11-23T20:01:20.816Z] msg += (
[2024-11-23T20:01:20.816Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.816Z] )
[2024-11-23T20:01:20.816Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.816Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.816Z] ___________________ TestPageNumberPagination.test_last_page ____________________
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7176ebf01480>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def test_last_page(self):
[2024-11-23T20:01:20.816Z] request = Request(factory.get('/', {'page': 'last'}))
[2024-11-23T20:01:20.816Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.816Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:237:
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T20:01:20.816Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:234: in get_paginated_response
[2024-11-23T20:01:20.816Z] 'previous': self.get_previous_link(),
[2024-11-23T20:01:20.816Z] rest_framework/pagination.py:285: in get_previous_link
[2024-11-23T20:01:20.816Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.816Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.816Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.816Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.816Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.816Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] self = <WSGIRequest: GET '/?page=last'>
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] def get_host(self):
[2024-11-23T20:01:20.816Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.816Z] host = self._get_raw_host()
[2024-11-23T20:01:20.816Z]
[2024-11-23T20:01:20.816Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.816Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.816Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.816Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] _____________ TestPageNumberPaginationOverride.test_no_page_number _____________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestPageNumberPaginationOverride object at 0x7176ec09a5d0>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_no_page_number(self):
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/'))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z] > context = self.get_html_context()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:334:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:328: in get_html_context
[2024-11-23T20:01:20.817Z] return self.pagination.get_html_context()
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:292: in get_html_context
[2024-11-23T20:01:20.817Z] base_url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] ________________________ TestLimitOffset.test_no_offset ________________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176ec09a850>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_no_offset(self):
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 5}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:384:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=5'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] ______________________ TestLimitOffset.test_single_offset ______________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176ebf01e00>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_single_offset(self):
[2024-11-23T20:01:20.817Z] """
[2024-11-23T20:01:20.817Z] When the offset is not a multiple of the limit we get some edge cases:
[2024-11-23T20:01:20.817Z] * The first page should still be offset zero.
[2024-11-23T20:01:20.817Z] * We may end up displaying an extra page in the pagination control.
[2024-11-23T20:01:20.817Z] """
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 5, 'offset': 1}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:422:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=5&offset=1'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] ______________________ TestLimitOffset.test_first_offset _______________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176ebf01f30>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_first_offset(self):
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 5, 'offset': 5}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:446:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=5&offset=5'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] ______________________ TestLimitOffset.test_middle_offset ______________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176ec051010>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_middle_offset(self):
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 5, 'offset': 10}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:470:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=5&offset=10'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] ______________________ TestLimitOffset.test_ending_offset ______________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176eb7445a0>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_ending_offset(self):
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 5, 'offset': 95}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:495:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:407: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'previous': self.get_previous_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:470: in get_previous_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=5&offset=95'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] _____________________ TestLimitOffset.test_erronous_offset _____________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176eb7446b0>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_erronous_offset(self):
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 5, 'offset': 1000}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:519:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:407: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'previous': self.get_previous_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:470: in get_previous_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=5&offset=1000'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] ______________________ TestLimitOffset.test_invalid_limit ______________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176eba8f750>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_invalid_limit(self):
[2024-11-23T20:01:20.817Z] """
[2024-11-23T20:01:20.817Z] An invalid limit query param should be ignored in favor of the default.
[2024-11-23T20:01:20.817Z] """
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 'invalid', 'offset': 0}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:536:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.817Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <WSGIRequest: GET '/?limit=invalid&offset=0'>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def get_host(self):
[2024-11-23T20:01:20.817Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.817Z] host = self._get_raw_host()
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.817Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.817Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.817Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.817Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.817Z] return host
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.817Z] if domain:
[2024-11-23T20:01:20.817Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.817Z] else:
[2024-11-23T20:01:20.817Z] msg += (
[2024-11-23T20:01:20.817Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.817Z] )
[2024-11-23T20:01:20.817Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.817Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.817Z] _______________________ TestLimitOffset.test_zero_limit ________________________
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176ec039a90>
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] def test_zero_limit(self):
[2024-11-23T20:01:20.817Z] """
[2024-11-23T20:01:20.817Z] An zero limit query param should be ignored in favor of the default.
[2024-11-23T20:01:20.817Z] """
[2024-11-23T20:01:20.817Z] request = Request(factory.get('/', {'limit': 0, 'offset': 0}))
[2024-11-23T20:01:20.817Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.817Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.817Z]
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:549:
[2024-11-23T20:01:20.817Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.817Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.817Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.817Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.817Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.817Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.817Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.817Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.817Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?limit=0&offset=0'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] ________________________ TestLimitOffset.test_max_limit ________________________
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestLimitOffset object at 0x7176ec040b90>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_max_limit(self):
[2024-11-23T20:01:20.818Z] """
[2024-11-23T20:01:20.818Z] The limit defaults to the max_limit when there is a max_limit and the
[2024-11-23T20:01:20.818Z] requested limit is greater than the max_limit
[2024-11-23T20:01:20.818Z] """
[2024-11-23T20:01:20.818Z] offset = 50
[2024-11-23T20:01:20.818Z] request = Request(factory.get('/', {'limit': '11235', 'offset': offset}))
[2024-11-23T20:01:20.818Z] queryset = self.paginate_queryset(request)
[2024-11-23T20:01:20.818Z] > content = self.get_paginated_content(queryset)
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:564:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T20:01:20.818Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T20:01:20.818Z] 'next': self.get_next_link(),
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T20:01:20.818Z] url = self.request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?limit=11235&offset=50'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] ___________________ TestCursorPagination.test_invalid_cursor ___________________
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176ec09aad0>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_invalid_cursor(self):
[2024-11-23T20:01:20.818Z] request = Request(factory.get('/', {'cursor': '123'}))
[2024-11-23T20:01:20.818Z] with pytest.raises(exceptions.NotFound):
[2024-11-23T20:01:20.818Z] > self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:617:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?cursor=123'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] _________________ TestCursorPagination.test_cursor_pagination __________________
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176ebf02190>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination(self):
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/')
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:656:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] ____ TestCursorPagination.test_cursor_pagination_current_page_empty_forward ____
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176ec052c30>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination_current_page_empty_forward(self):
[2024-11-23T20:01:20.818Z] # Regression test for #6504
[2024-11-23T20:01:20.818Z] self.pagination.base_url = "/"
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # We have a cursor on the element at position 100, but this element doesn't exist
[2024-11-23T20:01:20.818Z] # anymore.
[2024-11-23T20:01:20.818Z] cursor = pagination.Cursor(reverse=False, offset=0, position=100)
[2024-11-23T20:01:20.818Z] url = self.pagination.encode_cursor(cursor)
[2024-11-23T20:01:20.818Z] self.pagination.base_url = "/"
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Loading the page with this cursor doesn't crash
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages(url)
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:735:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?cursor=cD0xMDA%3D'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] ____ TestCursorPagination.test_cursor_pagination_current_page_empty_reverse ____
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176eb7447c0>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination_current_page_empty_reverse(self):
[2024-11-23T20:01:20.818Z] # Regression test for #6504
[2024-11-23T20:01:20.818Z] self.pagination.base_url = "/"
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # We have a cursor on the element at position 100, but this element doesn't exist
[2024-11-23T20:01:20.818Z] # anymore.
[2024-11-23T20:01:20.818Z] cursor = pagination.Cursor(reverse=True, offset=0, position=100)
[2024-11-23T20:01:20.818Z] url = self.pagination.encode_cursor(cursor)
[2024-11-23T20:01:20.818Z] self.pagination.base_url = "/"
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Loading the page with this cursor doesn't crash
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages(url)
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:758:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?cursor=cj0xJnA9MTAw'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] __________ TestCursorPagination.test_cursor_pagination_with_page_size __________
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176eb7448d0>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination_with_page_size(self):
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=20')
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:771:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?page_size=20'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] ____ TestCursorPagination.test_cursor_pagination_with_page_size_over_limit _____
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176eba8f550>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination_with_page_size_over_limit(self):
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=30')
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:783:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?page_size=30'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] _______ TestCursorPagination.test_cursor_pagination_with_page_size_zero ________
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176eba8d850>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination_with_page_size_zero(self):
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=0')
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:795:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?page_size=0'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg += (
[2024-11-23T20:01:20.818Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.818Z] )
[2024-11-23T20:01:20.818Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.818Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.818Z] _____ TestCursorPagination.test_cursor_pagination_with_page_size_negative ______
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <tests.test_pagination.TestCursorPagination object at 0x7176ec042d50>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def test_cursor_pagination_with_page_size_negative(self):
[2024-11-23T20:01:20.818Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=-5')
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:862:
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T20:01:20.818Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T20:01:20.818Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T20:01:20.818Z] self.base_url = request.build_absolute_uri()
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:20.818Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:20.818Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:20.818Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:20.818Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:20.818Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] self = <WSGIRequest: GET '/?page_size=-5'>
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] def get_host(self):
[2024-11-23T20:01:20.818Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:20.818Z] host = self._get_raw_host()
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:20.818Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:20.818Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:20.818Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:20.818Z]
[2024-11-23T20:01:20.818Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:20.818Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:20.818Z] return host
[2024-11-23T20:01:20.818Z] else:
[2024-11-23T20:01:20.818Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:20.818Z] if domain:
[2024-11-23T20:01:20.818Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:20.819Z] else:
[2024-11-23T20:01:20.819Z] msg += (
[2024-11-23T20:01:20.819Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:20.819Z] )
[2024-11-23T20:01:20.819Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:20.819Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:20.819Z] _________ TestCursorPaginationWithValueQueryset.test_cursor_pagination _________
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd24ef0>
[2024-11-23T20:01:20.819Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd24ef0>})
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.819Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.819Z] # ever set during testing).
[2024-11-23T20:01:20.819Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.819Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.819Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] # params default might be backend specific.
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.819Z] else:
[2024-11-23T20:01:20.819Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination>
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def setUp(self):
[2024-11-23T20:01:20.819Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.819Z] page_size = 5
[2024-11-23T20:01:20.819Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.819Z] max_page_size = 20
[2024-11-23T20:01:20.819Z] ordering = 'created'
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.819Z] data = [
[2024-11-23T20:01:20.819Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.819Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.819Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.819Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.819Z] ]
[2024-11-23T20:01:20.819Z] for idx in data:
[2024-11-23T20:01:20.819Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.819Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.819Z] self.save_base(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.819Z] updated = self._save_table(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.819Z] results = self._do_insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.819Z] return manager._insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.819Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.819Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.819Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.819Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.819Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_current_page_empty_forward _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebda9190>
[2024-11-23T20:01:20.819Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebda9190>})
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.819Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.819Z] # ever set during testing).
[2024-11-23T20:01:20.819Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.819Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.819Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] # params default might be backend specific.
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.819Z] else:
[2024-11-23T20:01:20.819Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ad0>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_current_page_empty_forward>
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def setUp(self):
[2024-11-23T20:01:20.819Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.819Z] page_size = 5
[2024-11-23T20:01:20.819Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.819Z] max_page_size = 20
[2024-11-23T20:01:20.819Z] ordering = 'created'
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.819Z] data = [
[2024-11-23T20:01:20.819Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.819Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.819Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.819Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.819Z] ]
[2024-11-23T20:01:20.819Z] for idx in data:
[2024-11-23T20:01:20.819Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.819Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.819Z] self.save_base(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.819Z] updated = self._save_table(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.819Z] results = self._do_insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.819Z] return manager._insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.819Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.819Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.819Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.819Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.819Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ad0>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_current_page_empty_reverse _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdab8f0>
[2024-11-23T20:01:20.819Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdab8f0>})
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.819Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.819Z] # ever set during testing).
[2024-11-23T20:01:20.819Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.819Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.819Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] # params default might be backend specific.
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.819Z] else:
[2024-11-23T20:01:20.819Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b140>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_current_page_empty_reverse>
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def setUp(self):
[2024-11-23T20:01:20.819Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.819Z] page_size = 5
[2024-11-23T20:01:20.819Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.819Z] max_page_size = 20
[2024-11-23T20:01:20.819Z] ordering = 'created'
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.819Z] data = [
[2024-11-23T20:01:20.819Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.819Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.819Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.819Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.819Z] ]
[2024-11-23T20:01:20.819Z] for idx in data:
[2024-11-23T20:01:20.819Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.819Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.819Z] self.save_base(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.819Z] updated = self._save_table(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.819Z] results = self._do_insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.819Z] return manager._insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.819Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.819Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.819Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.819Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.819Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b140>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size __
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd276b0>
[2024-11-23T20:01:20.819Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd276b0>})
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.819Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.819Z] # ever set during testing).
[2024-11-23T20:01:20.819Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.819Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.819Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] # params default might be backend specific.
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.819Z] else:
[2024-11-23T20:01:20.819Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19640>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size>
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def setUp(self):
[2024-11-23T20:01:20.819Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.819Z] page_size = 5
[2024-11-23T20:01:20.819Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.819Z] max_page_size = 20
[2024-11-23T20:01:20.819Z] ordering = 'created'
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.819Z] data = [
[2024-11-23T20:01:20.819Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.819Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.819Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.819Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.819Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.819Z] ]
[2024-11-23T20:01:20.819Z] for idx in data:
[2024-11-23T20:01:20.819Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.819Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.819Z] self.save_base(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.819Z] updated = self._save_table(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.819Z] results = self._do_insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.819Z] return manager._insert(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.819Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.819Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.819Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.819Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.819Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.819Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.819Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.819Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.819Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19640>
[2024-11-23T20:01:20.819Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.819Z] if params is None:
[2024-11-23T20:01:20.819Z] return super().execute(query)
[2024-11-23T20:01:20.819Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.819Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.819Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.819Z] > return super().execute(query, params)
[2024-11-23T20:01:20.819Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.819Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_negative _
[2024-11-23T20:01:20.819Z]
[2024-11-23T20:01:20.819Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebda98b0>
[2024-11-23T20:01:20.819Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.819Z] params = (1,)
[2024-11-23T20:01:20.820Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebda98b0>})
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.820Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.820Z] # ever set during testing).
[2024-11-23T20:01:20.820Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.820Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.820Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] # params default might be backend specific.
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.820Z] else:
[2024-11-23T20:01:20.820Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ad0>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size_negative>
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def setUp(self):
[2024-11-23T20:01:20.820Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.820Z] page_size = 5
[2024-11-23T20:01:20.820Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.820Z] max_page_size = 20
[2024-11-23T20:01:20.820Z] ordering = 'created'
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.820Z] data = [
[2024-11-23T20:01:20.820Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.820Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.820Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.820Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.820Z] ]
[2024-11-23T20:01:20.820Z] for idx in data:
[2024-11-23T20:01:20.820Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.820Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.820Z] self.save_base(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.820Z] updated = self._save_table(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.820Z] results = self._do_insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.820Z] return manager._insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.820Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.820Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.820Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.820Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.820Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ad0>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_over_limit _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdaae10>
[2024-11-23T20:01:20.820Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdaae10>})
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.820Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.820Z] # ever set during testing).
[2024-11-23T20:01:20.820Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.820Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.820Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] # params default might be backend specific.
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.820Z] else:
[2024-11-23T20:01:20.820Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1af90>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size_over_limit>
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def setUp(self):
[2024-11-23T20:01:20.820Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.820Z] page_size = 5
[2024-11-23T20:01:20.820Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.820Z] max_page_size = 20
[2024-11-23T20:01:20.820Z] ordering = 'created'
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.820Z] data = [
[2024-11-23T20:01:20.820Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.820Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.820Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.820Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.820Z] ]
[2024-11-23T20:01:20.820Z] for idx in data:
[2024-11-23T20:01:20.820Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.820Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.820Z] self.save_base(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.820Z] updated = self._save_table(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.820Z] results = self._do_insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.820Z] return manager._insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.820Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.820Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.820Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.820Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.820Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1af90>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_zero _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd274d0>
[2024-11-23T20:01:20.820Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd274d0>})
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.820Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.820Z] # ever set during testing).
[2024-11-23T20:01:20.820Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.820Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.820Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] # params default might be backend specific.
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.820Z] else:
[2024-11-23T20:01:20.820Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a720>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size_zero>
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def setUp(self):
[2024-11-23T20:01:20.820Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.820Z] page_size = 5
[2024-11-23T20:01:20.820Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.820Z] max_page_size = 20
[2024-11-23T20:01:20.820Z] ordering = 'created'
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.820Z] data = [
[2024-11-23T20:01:20.820Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.820Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.820Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.820Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.820Z] ]
[2024-11-23T20:01:20.820Z] for idx in data:
[2024-11-23T20:01:20.820Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.820Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.820Z] self.save_base(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.820Z] updated = self._save_table(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.820Z] results = self._do_insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.820Z] return manager._insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.820Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.820Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.820Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.820Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.820Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a720>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z] ___ TestCursorPaginationWithValueQueryset.test_get_paginated_response_schema ___
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd25550>
[2024-11-23T20:01:20.820Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd25550>})
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.820Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.820Z] # ever set during testing).
[2024-11-23T20:01:20.820Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.820Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.820Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] # params default might be backend specific.
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.820Z] else:
[2024-11-23T20:01:20.820Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a960>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_get_paginated_response_schema>
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def setUp(self):
[2024-11-23T20:01:20.820Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.820Z] page_size = 5
[2024-11-23T20:01:20.820Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.820Z] max_page_size = 20
[2024-11-23T20:01:20.820Z] ordering = 'created'
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.820Z] data = [
[2024-11-23T20:01:20.820Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.820Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.820Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.820Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.820Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.820Z] ]
[2024-11-23T20:01:20.820Z] for idx in data:
[2024-11-23T20:01:20.820Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.820Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.820Z] self.save_base(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.820Z] updated = self._save_table(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.820Z] results = self._do_insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.820Z] return manager._insert(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.820Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.820Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.820Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.820Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.820Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.820Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.820Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.820Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.820Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a960>
[2024-11-23T20:01:20.820Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.820Z] if params is None:
[2024-11-23T20:01:20.820Z] return super().execute(query)
[2024-11-23T20:01:20.820Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.820Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.820Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.820Z] > return super().execute(query, params)
[2024-11-23T20:01:20.820Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.820Z] __________ TestCursorPaginationWithValueQueryset.test_invalid_cursor ___________
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd71310>
[2024-11-23T20:01:20.820Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.820Z] params = (1,)
[2024-11-23T20:01:20.820Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd71310>})
[2024-11-23T20:01:20.820Z]
[2024-11-23T20:01:20.820Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.820Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.820Z] # ever set during testing).
[2024-11-23T20:01:20.820Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.821Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.821Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] # params default might be backend specific.
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.821Z] else:
[2024-11-23T20:01:20.821Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a690>
[2024-11-23T20:01:20.821Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_invalid_cursor>
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def setUp(self):
[2024-11-23T20:01:20.821Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.821Z] page_size = 5
[2024-11-23T20:01:20.821Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.821Z] max_page_size = 20
[2024-11-23T20:01:20.821Z] ordering = 'created'
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.821Z] data = [
[2024-11-23T20:01:20.821Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.821Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.821Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.821Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.821Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.821Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.821Z] ]
[2024-11-23T20:01:20.821Z] for idx in data:
[2024-11-23T20:01:20.821Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.821Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.821Z] self.save_base(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.821Z] updated = self._save_table(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.821Z] results = self._do_insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.821Z] return manager._insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.821Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.821Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.821Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.821Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.821Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a690>
[2024-11-23T20:01:20.821Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z] _____ TestCursorPaginationWithValueQueryset.test_use_with_ordering_filter ______
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd71cd0>
[2024-11-23T20:01:20.821Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd71cd0>})
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.821Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.821Z] # ever set during testing).
[2024-11-23T20:01:20.821Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.821Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.821Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] # params default might be backend specific.
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.821Z] else:
[2024-11-23T20:01:20.821Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:20.821Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_use_with_ordering_filter>
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def setUp(self):
[2024-11-23T20:01:20.821Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.821Z] page_size = 5
[2024-11-23T20:01:20.821Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.821Z] max_page_size = 20
[2024-11-23T20:01:20.821Z] ordering = 'created'
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.821Z] data = [
[2024-11-23T20:01:20.821Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.821Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.821Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.821Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.821Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.821Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.821Z] ]
[2024-11-23T20:01:20.821Z] for idx in data:
[2024-11-23T20:01:20.821Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.821Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.821Z] self.save_base(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.821Z] updated = self._save_table(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.821Z] results = self._do_insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.821Z] return manager._insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.821Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.821Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.821Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.821Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.821Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:20.821Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z] _ TestCursorPaginationWithValueQueryset.test_use_with_ordering_filter_without_ordering_default_value _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd71f10>
[2024-11-23T20:01:20.821Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd71f10>})
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.821Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.821Z] # ever set during testing).
[2024-11-23T20:01:20.821Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.821Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.821Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] # params default might be backend specific.
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.821Z] else:
[2024-11-23T20:01:20.821Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:20.821Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_use_with_ordering_filter_without_ordering_default_value>
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def setUp(self):
[2024-11-23T20:01:20.821Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T20:01:20.821Z] page_size = 5
[2024-11-23T20:01:20.821Z] page_size_query_param = 'page_size'
[2024-11-23T20:01:20.821Z] max_page_size = 20
[2024-11-23T20:01:20.821Z] ordering = 'created'
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self.pagination = ExamplePagination()
[2024-11-23T20:01:20.821Z] data = [
[2024-11-23T20:01:20.821Z] 1, 1, 1, 1, 1,
[2024-11-23T20:01:20.821Z] 1, 2, 3, 4, 4,
[2024-11-23T20:01:20.821Z] 4, 4, 5, 6, 7,
[2024-11-23T20:01:20.821Z] 7, 7, 7, 7, 7,
[2024-11-23T20:01:20.821Z] 7, 7, 7, 8, 9,
[2024-11-23T20:01:20.821Z] 9, 9, 9, 9, 9
[2024-11-23T20:01:20.821Z] ]
[2024-11-23T20:01:20.821Z] for idx in data:
[2024-11-23T20:01:20.821Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] tests/test_pagination.py:1070:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:20.821Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.821Z] self.save_base(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.821Z] updated = self._save_table(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.821Z] results = self._do_insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.821Z] return manager._insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.821Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.821Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.821Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.821Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.821Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:20.821Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T20:01:20.821Z] params = (1,)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z] _ ModelPermissionsIntegrationTests.test_api_root_view_discard_default_django_model_permission _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdac290>
[2024-11-23T20:01:20.821Z] 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-23T20:01:20.821Z] params = ('md5$G04yfHzwX7f5zTQcAUBHpd$d90e272afba5c807d0ff3a5ae121e934', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.821Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdac290>})
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.821Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.821Z] # ever set during testing).
[2024-11-23T20:01:20.821Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.821Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.821Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] # params default might be backend specific.
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.821Z] else:
[2024-11-23T20:01:20.821Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1ac30>
[2024-11-23T20:01:20.821Z] 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-23T20:01:20.821Z] params = ('md5$G04yfHzwX7f5zTQcAUBHpd$d90e272afba5c807d0ff3a5ae121e934', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_api_root_view_discard_default_django_model_permission>
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def setUp(self):
[2024-11-23T20:01:20.821Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.821Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.821Z] user.save(using=self._db)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.821Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.821Z] self.save_base(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.821Z] updated = self._save_table(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.821Z] results = self._do_insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.821Z] return manager._insert(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.821Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.821Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.821Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.821Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.821Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.821Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1ac30>
[2024-11-23T20:01:20.821Z] 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-23T20:01:20.821Z] params = ('md5$G04yfHzwX7f5zTQcAUBHpd$d90e272afba5c807d0ff3a5ae121e934', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.821Z] _______ ModelPermissionsIntegrationTests.test_calling_method_not_allowed _______
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdc96d0>
[2024-11-23T20:01:20.821Z] 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-23T20:01:20.821Z] params = ('md5$7Gxt3746WDRVnm1fF5y1cF$d69dcf50ceb36436684021772a56f201', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.821Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdc96d0>})
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.821Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.821Z] # ever set during testing).
[2024-11-23T20:01:20.821Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.821Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.821Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.821Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] # params default might be backend specific.
[2024-11-23T20:01:20.821Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.821Z] else:
[2024-11-23T20:01:20.821Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.821Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1bbf0>
[2024-11-23T20:01:20.821Z] 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-23T20:01:20.821Z] params = ('md5$7Gxt3746WDRVnm1fF5y1cF$d69dcf50ceb36436684021772a56f201', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.821Z]
[2024-11-23T20:01:20.821Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.821Z] if params is None:
[2024-11-23T20:01:20.821Z] return super().execute(query)
[2024-11-23T20:01:20.821Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.821Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.821Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.821Z] > return super().execute(query, params)
[2024-11-23T20:01:20.821Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_calling_method_not_allowed>
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def setUp(self):
[2024-11-23T20:01:20.822Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.822Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.822Z] user.save(using=self._db)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.822Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.822Z] self.save_base(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.822Z] updated = self._save_table(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.822Z] results = self._do_insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.822Z] return manager._insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.822Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.822Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.822Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.822Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.822Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.822Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1bbf0>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$7Gxt3746WDRVnm1fF5y1cF$d69dcf50ceb36436684021772a56f201', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z] ____ ModelPermissionsIntegrationTests.test_check_auth_before_queryset_call _____
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdca0f0>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$dTkqzeqeteSlfuVjBQ7tAe$bfce961de20af37439dbc57a4334eb74', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdca0f0>})
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.822Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.822Z] # ever set during testing).
[2024-11-23T20:01:20.822Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.822Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.822Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] # params default might be backend specific.
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.822Z] else:
[2024-11-23T20:01:20.822Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97c80>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$dTkqzeqeteSlfuVjBQ7tAe$bfce961de20af37439dbc57a4334eb74', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_check_auth_before_queryset_call>
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def setUp(self):
[2024-11-23T20:01:20.822Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.822Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.822Z] user.save(using=self._db)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.822Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.822Z] self.save_base(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.822Z] updated = self._save_table(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.822Z] results = self._do_insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.822Z] return manager._insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.822Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.822Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.822Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.822Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.822Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.822Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97c80>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$dTkqzeqeteSlfuVjBQ7tAe$bfce961de20af37439dbc57a4334eb74', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z] ____ ModelPermissionsIntegrationTests.test_does_not_have_create_permissions ____
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdca210>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$mpQkMIriIP2J84GIpJgmk9$5ceb424234bd6f0cf4192852accb78ef', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdca210>})
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.822Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.822Z] # ever set during testing).
[2024-11-23T20:01:20.822Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.822Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.822Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] # params default might be backend specific.
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.822Z] else:
[2024-11-23T20:01:20.822Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19130>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$mpQkMIriIP2J84GIpJgmk9$5ceb424234bd6f0cf4192852accb78ef', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_does_not_have_create_permissions>
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def setUp(self):
[2024-11-23T20:01:20.822Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.822Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.822Z] user.save(using=self._db)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.822Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.822Z] self.save_base(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.822Z] updated = self._save_table(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.822Z] results = self._do_insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.822Z] return manager._insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.822Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.822Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.822Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.822Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.822Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.822Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19130>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$mpQkMIriIP2J84GIpJgmk9$5ceb424234bd6f0cf4192852accb78ef', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z] ____ ModelPermissionsIntegrationTests.test_does_not_have_delete_permissions ____
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaec63f0>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$2oQZvj7s5DJxfjVsxaAfmq$ac5eb98d712fb2a1f3dc6d9437dcb1fb', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaec63f0>})
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.822Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.822Z] # ever set during testing).
[2024-11-23T20:01:20.822Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.822Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.822Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] # params default might be backend specific.
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.822Z] else:
[2024-11-23T20:01:20.822Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97c80>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$2oQZvj7s5DJxfjVsxaAfmq$ac5eb98d712fb2a1f3dc6d9437dcb1fb', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_does_not_have_delete_permissions>
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def setUp(self):
[2024-11-23T20:01:20.822Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.822Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.822Z] user.save(using=self._db)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.822Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.822Z] self.save_base(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.822Z] updated = self._save_table(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.822Z] results = self._do_insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.822Z] return manager._insert(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.822Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.822Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.822Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.822Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.822Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.822Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97c80>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$2oQZvj7s5DJxfjVsxaAfmq$ac5eb98d712fb2a1f3dc6d9437dcb1fb', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z] _____ ModelPermissionsIntegrationTests.test_does_not_have_put_permissions ______
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebdcacf0>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$aOCUb5a9ZNiytI5tgZsGRA$3fde62da0edc24e26e0fd1fad085e4b5', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebdcacf0>})
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.822Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.822Z] # ever set during testing).
[2024-11-23T20:01:20.822Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.822Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.822Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.822Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] # params default might be backend specific.
[2024-11-23T20:01:20.822Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.822Z] else:
[2024-11-23T20:01:20.822Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1bec0>
[2024-11-23T20:01:20.822Z] 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-23T20:01:20.822Z] params = ('md5$aOCUb5a9ZNiytI5tgZsGRA$3fde62da0edc24e26e0fd1fad085e4b5', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.822Z] if params is None:
[2024-11-23T20:01:20.822Z] return super().execute(query)
[2024-11-23T20:01:20.822Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.822Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.822Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.822Z] > return super().execute(query, params)
[2024-11-23T20:01:20.822Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_does_not_have_put_permissions>
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] def setUp(self):
[2024-11-23T20:01:20.822Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.822Z]
[2024-11-23T20:01:20.822Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.822Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.822Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.822Z] user.save(using=self._db)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.822Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.822Z] self.save_base(
[2024-11-23T20:01:20.822Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.823Z] updated = self._save_table(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.823Z] results = self._do_insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.823Z] return manager._insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.823Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.823Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.823Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.823Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.823Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.823Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1bec0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$aOCUb5a9ZNiytI5tgZsGRA$3fde62da0edc24e26e0fd1fad085e4b5', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z] _______ ModelPermissionsIntegrationTests.test_empty_view_does_not_assert _______
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd740b0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$nyr6NNeWPMHnu1iTjeLr0L$2d44efb7059da12fbe6c8c17923a934d', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd740b0>})
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.823Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.823Z] # ever set during testing).
[2024-11-23T20:01:20.823Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.823Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.823Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] # params default might be backend specific.
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.823Z] else:
[2024-11-23T20:01:20.823Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a0f0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$nyr6NNeWPMHnu1iTjeLr0L$2d44efb7059da12fbe6c8c17923a934d', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_empty_view_does_not_assert>
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def setUp(self):
[2024-11-23T20:01:20.823Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.823Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.823Z] user.save(using=self._db)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.823Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.823Z] self.save_base(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.823Z] updated = self._save_table(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.823Z] results = self._do_insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.823Z] return manager._insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.823Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.823Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.823Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.823Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.823Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.823Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a0f0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$nyr6NNeWPMHnu1iTjeLr0L$2d44efb7059da12fbe6c8c17923a934d', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z] __ ModelPermissionsIntegrationTests.test_get_queryset_has_create_permissions ___
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd75b50>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$KGofRZ5lUuZmp9ubIPcsaw$493b70a3e57e12540a7ca644156cdfdf', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd75b50>})
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.823Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.823Z] # ever set during testing).
[2024-11-23T20:01:20.823Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.823Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.823Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] # params default might be backend specific.
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.823Z] else:
[2024-11-23T20:01:20.823Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae18320>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$KGofRZ5lUuZmp9ubIPcsaw$493b70a3e57e12540a7ca644156cdfdf', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_get_queryset_has_create_permissions>
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def setUp(self):
[2024-11-23T20:01:20.823Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.823Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.823Z] user.save(using=self._db)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.823Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.823Z] self.save_base(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.823Z] updated = self._save_table(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.823Z] results = self._do_insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.823Z] return manager._insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.823Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.823Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.823Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.823Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.823Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.823Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae18320>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$KGofRZ5lUuZmp9ubIPcsaw$493b70a3e57e12540a7ca644156cdfdf', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z] _________ ModelPermissionsIntegrationTests.test_has_create_permissions _________
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd766f0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$EDZVauxw5NWkrjM7VGa8Bw$7c2e7a0bfb377cf2d8aa831435552cc1', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd766f0>})
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.823Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.823Z] # ever set during testing).
[2024-11-23T20:01:20.823Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.823Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.823Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] # params default might be backend specific.
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.823Z] else:
[2024-11-23T20:01:20.823Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$EDZVauxw5NWkrjM7VGa8Bw$7c2e7a0bfb377cf2d8aa831435552cc1', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_has_create_permissions>
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def setUp(self):
[2024-11-23T20:01:20.823Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.823Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.823Z] user.save(using=self._db)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.823Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.823Z] self.save_base(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.823Z] updated = self._save_table(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.823Z] results = self._do_insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.823Z] return manager._insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.823Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.823Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.823Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.823Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.823Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.823Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$EDZVauxw5NWkrjM7VGa8Bw$7c2e7a0bfb377cf2d8aa831435552cc1', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z] _________ ModelPermissionsIntegrationTests.test_has_delete_permissions _________
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd76870>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$f0tjdtkeGJL8qHqvHC1ryU$0dcedf44bfd82d3acaaa16d08c67bdbe', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd76870>})
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.823Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.823Z] # ever set during testing).
[2024-11-23T20:01:20.823Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.823Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.823Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] # params default might be backend specific.
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.823Z] else:
[2024-11-23T20:01:20.823Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ec0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$f0tjdtkeGJL8qHqvHC1ryU$0dcedf44bfd82d3acaaa16d08c67bdbe', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_has_delete_permissions>
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def setUp(self):
[2024-11-23T20:01:20.823Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.823Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.823Z] user.save(using=self._db)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.823Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.823Z] self.save_base(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.823Z] updated = self._save_table(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.823Z] results = self._do_insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.823Z] return manager._insert(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.823Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.823Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.823Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.823Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.823Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.823Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.823Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.823Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.823Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.823Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ec0>
[2024-11-23T20:01:20.823Z] 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-23T20:01:20.823Z] params = ('md5$f0tjdtkeGJL8qHqvHC1ryU$0dcedf44bfd82d3acaaa16d08c67bdbe', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.823Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.823Z] if params is None:
[2024-11-23T20:01:20.823Z] return super().execute(query)
[2024-11-23T20:01:20.823Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.823Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.823Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.823Z] > return super().execute(query, params)
[2024-11-23T20:01:20.823Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.823Z]
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.824Z] __________ ModelPermissionsIntegrationTests.test_has_put_permissions ___________
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd76f90>
[2024-11-23T20:01:20.824Z] 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-23T20:01:20.824Z] params = ('md5$vhC9fW3UPDleH3oZ3Mq0he$8262b72c9a559f7ea7fcc156ca5d236a', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.824Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd76f90>})
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.824Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.824Z] # ever set during testing).
[2024-11-23T20:01:20.824Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.824Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.824Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.824Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.824Z] if params is None:
[2024-11-23T20:01:20.824Z] # params default might be backend specific.
[2024-11-23T20:01:20.824Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.824Z] else:
[2024-11-23T20:01:20.824Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.824Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b380>
[2024-11-23T20:01:20.824Z] 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-23T20:01:20.824Z] params = ('md5$vhC9fW3UPDleH3oZ3Mq0he$8262b72c9a559f7ea7fcc156ca5d236a', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.824Z] if params is None:
[2024-11-23T20:01:20.824Z] return super().execute(query)
[2024-11-23T20:01:20.824Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.824Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.824Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.824Z] > return super().execute(query, params)
[2024-11-23T20:01:20.824Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_has_put_permissions>
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def setUp(self):
[2024-11-23T20:01:20.824Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.824Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.824Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.824Z] user.save(using=self._db)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.824Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.824Z] self.save_base(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.824Z] updated = self._save_table(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.824Z] results = self._do_insert(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.824Z] return manager._insert(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.824Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.824Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.824Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.824Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.824Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.824Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.824Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:20.824Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.824Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b380>
[2024-11-23T20:01:20.824Z] 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-23T20:01:20.824Z] params = ('md5$vhC9fW3UPDleH3oZ3Mq0he$8262b72c9a559f7ea7fcc156ca5d236a', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.824Z] if params is None:
[2024-11-23T20:01:20.824Z] return super().execute(query)
[2024-11-23T20:01:20.824Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.824Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.824Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.824Z] > return super().execute(query, params)
[2024-11-23T20:01:20.824Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.824Z] _ ModelPermissionsIntegrationTests.test_ignore_model_permissions_with_authenticated_user _
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb6561b0>
[2024-11-23T20:01:20.824Z] 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-23T20:01:20.824Z] params = ('md5$PzmZLXg4kFh0gwtFStLfSj$1e7b56b5dbdf505fe2f3b28ee0e00d4e', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.824Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb6561b0>})
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:20.824Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:20.824Z] # ever set during testing).
[2024-11-23T20:01:20.824Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:20.824Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:20.824Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:20.824Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.824Z] if params is None:
[2024-11-23T20:01:20.824Z] # params default might be backend specific.
[2024-11-23T20:01:20.824Z] return self.cursor.execute(sql)
[2024-11-23T20:01:20.824Z] else:
[2024-11-23T20:01:20.824Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:20.824Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:20.824Z] 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-23T20:01:20.824Z] params = ('md5$PzmZLXg4kFh0gwtFStLfSj$1e7b56b5dbdf505fe2f3b28ee0e00d4e', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def execute(self, query, params=None):
[2024-11-23T20:01:20.824Z] if params is None:
[2024-11-23T20:01:20.824Z] return super().execute(query)
[2024-11-23T20:01:20.824Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:20.824Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:20.824Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:20.824Z] > return super().execute(query, params)
[2024-11-23T20:01:20.824Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_ignore_model_permissions_with_authenticated_user>
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] def setUp(self):
[2024-11-23T20:01:20.824Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:20.824Z]
[2024-11-23T20:01:20.824Z] tests/test_permissions.py:78:
[2024-11-23T20:01:20.824Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:20.824Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:20.824Z] user.save(using=self._db)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:20.824Z] super().save(*args, **kwargs)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:20.824Z] self.save_base(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:20.824Z] updated = self._save_table(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:20.824Z] results = self._do_insert(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:20.824Z] return manager._insert(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:20.824Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:20.824Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:20.824Z] cursor.execute(sql, params)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:20.824Z] return self._execute_with_wrappers(
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:20.824Z] return executor(sql, params, many, context)
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:20.824Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:20.824Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:20.824Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.075Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.075Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:21.075Z] 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-23T20:01:21.075Z] params = ('md5$PzmZLXg4kFh0gwtFStLfSj$1e7b56b5dbdf505fe2f3b28ee0e00d4e', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.075Z] if params is None:
[2024-11-23T20:01:21.075Z] return super().execute(query)
[2024-11-23T20:01:21.075Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.075Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.075Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.075Z] > return super().execute(query, params)
[2024-11-23T20:01:21.075Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.075Z] _ ModelPermissionsIntegrationTests.test_ignore_model_permissions_with_unauthenticated_user _
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb654290>
[2024-11-23T20:01:21.075Z] 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-23T20:01:21.075Z] params = ('md5$BKkfkfWdzsCUAbydbQaHgI$55c148cf60c47f3333bc0cbde399c009', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.075Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb654290>})
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.075Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.075Z] # ever set during testing).
[2024-11-23T20:01:21.075Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.075Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.075Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.075Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.075Z] if params is None:
[2024-11-23T20:01:21.075Z] # params default might be backend specific.
[2024-11-23T20:01:21.075Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.075Z] else:
[2024-11-23T20:01:21.075Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.075Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1ad50>
[2024-11-23T20:01:21.075Z] 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-23T20:01:21.075Z] params = ('md5$BKkfkfWdzsCUAbydbQaHgI$55c148cf60c47f3333bc0cbde399c009', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.075Z] if params is None:
[2024-11-23T20:01:21.075Z] return super().execute(query)
[2024-11-23T20:01:21.075Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.075Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.075Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.075Z] > return super().execute(query, params)
[2024-11-23T20:01:21.075Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_ignore_model_permissions_with_unauthenticated_user>
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def setUp(self):
[2024-11-23T20:01:21.075Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] tests/test_permissions.py:78:
[2024-11-23T20:01:21.075Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.075Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.075Z] user.save(using=self._db)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.075Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.075Z] self.save_base(
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.075Z] updated = self._save_table(
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.075Z] results = self._do_insert(
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.075Z] return manager._insert(
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.075Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.075Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.075Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.075Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.075Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.075Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.075Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.075Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.075Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1ad50>
[2024-11-23T20:01:21.075Z] 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-23T20:01:21.075Z] params = ('md5$BKkfkfWdzsCUAbydbQaHgI$55c148cf60c47f3333bc0cbde399c009', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.075Z] if params is None:
[2024-11-23T20:01:21.075Z] return super().execute(query)
[2024-11-23T20:01:21.075Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.075Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.075Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.075Z] > return super().execute(query, params)
[2024-11-23T20:01:21.075Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.075Z] ___________ ModelPermissionsIntegrationTests.test_options_disallowed ___________
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb6540b0>
[2024-11-23T20:01:21.075Z] 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-23T20:01:21.075Z] params = ('md5$m7MxCzpHb3bQDNoLSkB2Mt$b35072cf5e9b916e9decebc752976e05', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.075Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb6540b0>})
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.075Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.075Z] # ever set during testing).
[2024-11-23T20:01:21.075Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.075Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.075Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.075Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.075Z] if params is None:
[2024-11-23T20:01:21.075Z] # params default might be backend specific.
[2024-11-23T20:01:21.075Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.075Z] else:
[2024-11-23T20:01:21.075Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.075Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae18320>
[2024-11-23T20:01:21.075Z] 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-23T20:01:21.075Z] params = ('md5$m7MxCzpHb3bQDNoLSkB2Mt$b35072cf5e9b916e9decebc752976e05', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.075Z] if params is None:
[2024-11-23T20:01:21.075Z] return super().execute(query)
[2024-11-23T20:01:21.075Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.075Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.075Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.075Z] > return super().execute(query, params)
[2024-11-23T20:01:21.075Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_options_disallowed>
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] def setUp(self):
[2024-11-23T20:01:21.075Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:21.075Z]
[2024-11-23T20:01:21.075Z] tests/test_permissions.py:78:
[2024-11-23T20:01:21.075Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.075Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.075Z] user.save(using=self._db)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.075Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.075Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.076Z] self.save_base(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.076Z] updated = self._save_table(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.076Z] results = self._do_insert(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.076Z] return manager._insert(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.076Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.076Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.076Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.076Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.076Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.076Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.076Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.076Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae18320>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$m7MxCzpHb3bQDNoLSkB2Mt$b35072cf5e9b916e9decebc752976e05', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] return super().execute(query)
[2024-11-23T20:01:21.076Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.076Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.076Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.076Z] > return super().execute(query, params)
[2024-11-23T20:01:21.076Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.076Z] ___________ ModelPermissionsIntegrationTests.test_options_permitted ____________
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb618650>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$u3v2vnCZfLdZ8wfR4yo3v1$4a637f4ae6238df49550a8490a4833fb', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb618650>})
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.076Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.076Z] # ever set during testing).
[2024-11-23T20:01:21.076Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.076Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.076Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.076Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] # params default might be backend specific.
[2024-11-23T20:01:21.076Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.076Z] else:
[2024-11-23T20:01:21.076Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1af90>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$u3v2vnCZfLdZ8wfR4yo3v1$4a637f4ae6238df49550a8490a4833fb', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] return super().execute(query)
[2024-11-23T20:01:21.076Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.076Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.076Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.076Z] > return super().execute(query, params)
[2024-11-23T20:01:21.076Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_options_permitted>
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def setUp(self):
[2024-11-23T20:01:21.076Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] tests/test_permissions.py:78:
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.076Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.076Z] user.save(using=self._db)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.076Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.076Z] self.save_base(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.076Z] updated = self._save_table(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.076Z] results = self._do_insert(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.076Z] return manager._insert(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.076Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.076Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.076Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.076Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.076Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.076Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.076Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.076Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1af90>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$u3v2vnCZfLdZ8wfR4yo3v1$4a637f4ae6238df49550a8490a4833fb', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] return super().execute(query)
[2024-11-23T20:01:21.076Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.076Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.076Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.076Z] > return super().execute(query, params)
[2024-11-23T20:01:21.076Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.076Z] ___________ ModelPermissionsIntegrationTests.test_options_updateonly ___________
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb619190>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$r1NGarMWah944meam2ktef$b943df399a2df9f49f7564494be55fc5', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb619190>})
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.076Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.076Z] # ever set during testing).
[2024-11-23T20:01:21.076Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.076Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.076Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.076Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] # params default might be backend specific.
[2024-11-23T20:01:21.076Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.076Z] else:
[2024-11-23T20:01:21.076Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$r1NGarMWah944meam2ktef$b943df399a2df9f49f7564494be55fc5', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] return super().execute(query)
[2024-11-23T20:01:21.076Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.076Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.076Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.076Z] > return super().execute(query, params)
[2024-11-23T20:01:21.076Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_options_updateonly>
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def setUp(self):
[2024-11-23T20:01:21.076Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] tests/test_permissions.py:78:
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.076Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.076Z] user.save(using=self._db)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.076Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.076Z] self.save_base(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.076Z] updated = self._save_table(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.076Z] results = self._do_insert(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.076Z] return manager._insert(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.076Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.076Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.076Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.076Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.076Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.076Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.076Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.076Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$r1NGarMWah944meam2ktef$b943df399a2df9f49f7564494be55fc5', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] return super().execute(query)
[2024-11-23T20:01:21.076Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.076Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.076Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.076Z] > return super().execute(query, params)
[2024-11-23T20:01:21.076Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.076Z] __________ ModelPermissionsIntegrationTests.test_queryset_assertions ___________
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb656cf0>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$WZ9xxV67gqxL2DpQCf0jJu$4d7782b76b6d3917eaab6ee3ab3e4294', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb656cf0>})
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.076Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.076Z] # ever set during testing).
[2024-11-23T20:01:21.076Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.076Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.076Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.076Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] # params default might be backend specific.
[2024-11-23T20:01:21.076Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.076Z] else:
[2024-11-23T20:01:21.076Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.076Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae190a0>
[2024-11-23T20:01:21.076Z] 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-23T20:01:21.076Z] params = ('md5$WZ9xxV67gqxL2DpQCf0jJu$4d7782b76b6d3917eaab6ee3ab3e4294', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.076Z]
[2024-11-23T20:01:21.076Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.076Z] if params is None:
[2024-11-23T20:01:21.076Z] return super().execute(query)
[2024-11-23T20:01:21.076Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_queryset_assertions>
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def setUp(self):
[2024-11-23T20:01:21.077Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] tests/test_permissions.py:78:
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.077Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.077Z] user.save(using=self._db)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.077Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.077Z] self.save_base(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.077Z] updated = self._save_table(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.077Z] results = self._do_insert(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.077Z] return manager._insert(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.077Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.077Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.077Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.077Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.077Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.077Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.077Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.077Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae190a0>
[2024-11-23T20:01:21.077Z] 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-23T20:01:21.077Z] params = ('md5$WZ9xxV67gqxL2DpQCf0jJu$4d7782b76b6d3917eaab6ee3ab3e4294', None, False, 'disallowed', '', '', ...)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] return super().execute(query)
[2024-11-23T20:01:21.077Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z] ________________ CustomPermissionsTests.test_permission_denied _________________
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb619bb0>
[2024-11-23T20:01:21.077Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb619bb0>})
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.077Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.077Z] # ever set during testing).
[2024-11-23T20:01:21.077Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.077Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.077Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.077Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] # params default might be backend specific.
[2024-11-23T20:01:21.077Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.077Z] else:
[2024-11-23T20:01:21.077Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d9d90>
[2024-11-23T20:01:21.077Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] return super().execute(query)
[2024-11-23T20:01:21.077Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied>
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def setUp(self):
[2024-11-23T20:01:21.077Z] > BasicModel(text='foo').save()
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] tests/test_permissions.py:509:
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.077Z] self.save_base(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.077Z] updated = self._save_table(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.077Z] results = self._do_insert(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.077Z] return manager._insert(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.077Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.077Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.077Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.077Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.077Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.077Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.077Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.077Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d9d90>
[2024-11-23T20:01:21.077Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] return super().execute(query)
[2024-11-23T20:01:21.077Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z] ___________ CustomPermissionsTests.test_permission_denied_for_object ___________
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb619eb0>
[2024-11-23T20:01:21.077Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb619eb0>})
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.077Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.077Z] # ever set during testing).
[2024-11-23T20:01:21.077Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.077Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.077Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.077Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] # params default might be backend specific.
[2024-11-23T20:01:21.077Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.077Z] else:
[2024-11-23T20:01:21.077Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8daa80>
[2024-11-23T20:01:21.077Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] return super().execute(query)
[2024-11-23T20:01:21.077Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied_for_object>
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def setUp(self):
[2024-11-23T20:01:21.077Z] > BasicModel(text='foo').save()
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] tests/test_permissions.py:509:
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.077Z] self.save_base(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.077Z] updated = self._save_table(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.077Z] results = self._do_insert(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.077Z] return manager._insert(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.077Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.077Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.077Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.077Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.077Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.077Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.077Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.077Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8daa80>
[2024-11-23T20:01:21.077Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] return super().execute(query)
[2024-11-23T20:01:21.077Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z] _ CustomPermissionsTests.test_permission_denied_for_object_with_custom_detail __
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5e8350>
[2024-11-23T20:01:21.077Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5e8350>})
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.077Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.077Z] # ever set during testing).
[2024-11-23T20:01:21.077Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.077Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.077Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.077Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] # params default might be backend specific.
[2024-11-23T20:01:21.077Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.077Z] else:
[2024-11-23T20:01:21.077Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.077Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8da570>
[2024-11-23T20:01:21.077Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.077Z] params = ('foo',)
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.077Z] if params is None:
[2024-11-23T20:01:21.077Z] return super().execute(query)
[2024-11-23T20:01:21.077Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.077Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.077Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.077Z] > return super().execute(query, params)
[2024-11-23T20:01:21.077Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied_for_object_with_custom_detail>
[2024-11-23T20:01:21.077Z]
[2024-11-23T20:01:21.077Z] def setUp(self):
[2024-11-23T20:01:21.078Z] > BasicModel(text='foo').save()
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] tests/test_permissions.py:509:
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.078Z] self.save_base(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.078Z] updated = self._save_table(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.078Z] results = self._do_insert(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.078Z] return manager._insert(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.078Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.078Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.078Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.078Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.078Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.078Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.078Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.078Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8da570>
[2024-11-23T20:01:21.078Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.078Z] params = ('foo',)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] return super().execute(query)
[2024-11-23T20:01:21.078Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.078Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.078Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.078Z] > return super().execute(query, params)
[2024-11-23T20:01:21.078Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.078Z] _______ CustomPermissionsTests.test_permission_denied_with_custom_detail _______
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5e8dd0>
[2024-11-23T20:01:21.078Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.078Z] params = ('foo',)
[2024-11-23T20:01:21.078Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5e8dd0>})
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.078Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.078Z] # ever set during testing).
[2024-11-23T20:01:21.078Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.078Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.078Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.078Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] # params default might be backend specific.
[2024-11-23T20:01:21.078Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.078Z] else:
[2024-11-23T20:01:21.078Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d8560>
[2024-11-23T20:01:21.078Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.078Z] params = ('foo',)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] return super().execute(query)
[2024-11-23T20:01:21.078Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.078Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.078Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.078Z] > return super().execute(query, params)
[2024-11-23T20:01:21.078Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied_with_custom_detail>
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def setUp(self):
[2024-11-23T20:01:21.078Z] > BasicModel(text='foo').save()
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] tests/test_permissions.py:509:
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.078Z] self.save_base(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.078Z] updated = self._save_table(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.078Z] results = self._do_insert(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.078Z] return manager._insert(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.078Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.078Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.078Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.078Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.078Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.078Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.078Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.078Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d8560>
[2024-11-23T20:01:21.078Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T20:01:21.078Z] params = ('foo',)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] return super().execute(query)
[2024-11-23T20:01:21.078Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.078Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.078Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.078Z] > return super().execute(query, params)
[2024-11-23T20:01:21.078Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.078Z] __________________ PermissionsCompositionTests.test_and_false __________________
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ebd759d0>
[2024-11-23T20:01:21.078Z] 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-23T20:01:21.078Z] params = ('md5$Zko4JsLwt3EUt4L89SbZ74$b23caa152b156a4a59638ab2cd0a5db9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.078Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ebd759d0>})
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.078Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.078Z] # ever set during testing).
[2024-11-23T20:01:21.078Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.078Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.078Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.078Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] # params default might be backend specific.
[2024-11-23T20:01:21.078Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.078Z] else:
[2024-11-23T20:01:21.078Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ec0>
[2024-11-23T20:01:21.078Z] 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-23T20:01:21.078Z] params = ('md5$Zko4JsLwt3EUt4L89SbZ74$b23caa152b156a4a59638ab2cd0a5db9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] return super().execute(query)
[2024-11-23T20:01:21.078Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.078Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.078Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.078Z] > return super().execute(query, params)
[2024-11-23T20:01:21.078Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_and_false>
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def setUp(self):
[2024-11-23T20:01:21.078Z] self.username = 'john'
[2024-11-23T20:01:21.078Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.078Z] self.password = 'password'
[2024-11-23T20:01:21.078Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.078Z] self.username,
[2024-11-23T20:01:21.078Z] self.email,
[2024-11-23T20:01:21.078Z] self.password
[2024-11-23T20:01:21.078Z] )
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.078Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.078Z] user.save(using=self._db)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.078Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.078Z] self.save_base(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.078Z] updated = self._save_table(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.078Z] results = self._do_insert(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.078Z] return manager._insert(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.078Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.078Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.078Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.078Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.078Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.078Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.078Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.078Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.078Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae97ec0>
[2024-11-23T20:01:21.078Z] 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-23T20:01:21.078Z] params = ('md5$Zko4JsLwt3EUt4L89SbZ74$b23caa152b156a4a59638ab2cd0a5db9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.078Z] return super().execute(query)
[2024-11-23T20:01:21.078Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.078Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.078Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.078Z] > return super().execute(query, params)
[2024-11-23T20:01:21.078Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.078Z] ________________ PermissionsCompositionTests.test_and_lazyness _________________
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5eb890>
[2024-11-23T20:01:21.078Z] 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-23T20:01:21.078Z] params = ('md5$VLUorMsSvZca7c3yRq8uZv$da4a8ccd665140eaeb481a7217247cb5', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.078Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5eb890>})
[2024-11-23T20:01:21.078Z]
[2024-11-23T20:01:21.078Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.078Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.078Z] # ever set during testing).
[2024-11-23T20:01:21.078Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.078Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.078Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.078Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.078Z] if params is None:
[2024-11-23T20:01:21.079Z] # params default might be backend specific.
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.079Z] else:
[2024-11-23T20:01:21.079Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$VLUorMsSvZca7c3yRq8uZv$da4a8ccd665140eaeb481a7217247cb5', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_and_lazyness>
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def setUp(self):
[2024-11-23T20:01:21.079Z] self.username = 'john'
[2024-11-23T20:01:21.079Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.079Z] self.password = 'password'
[2024-11-23T20:01:21.079Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.079Z] self.username,
[2024-11-23T20:01:21.079Z] self.email,
[2024-11-23T20:01:21.079Z] self.password
[2024-11-23T20:01:21.079Z] )
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.079Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.079Z] user.save(using=self._db)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.079Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.079Z] self.save_base(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.079Z] updated = self._save_table(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.079Z] results = self._do_insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.079Z] return manager._insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.079Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.079Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.079Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.079Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.079Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.079Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.079Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$VLUorMsSvZca7c3yRq8uZv$da4a8ccd665140eaeb481a7217247cb5', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z] __________________ PermissionsCompositionTests.test_and_true ___________________
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5e9970>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$759O8HN2ToQ2pxK2s2ow0d$c45a88883024e9379be2c0e8f727c47d', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5e9970>})
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.079Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.079Z] # ever set during testing).
[2024-11-23T20:01:21.079Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.079Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.079Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.079Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] # params default might be backend specific.
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.079Z] else:
[2024-11-23T20:01:21.079Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$759O8HN2ToQ2pxK2s2ow0d$c45a88883024e9379be2c0e8f727c47d', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_and_true>
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def setUp(self):
[2024-11-23T20:01:21.079Z] self.username = 'john'
[2024-11-23T20:01:21.079Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.079Z] self.password = 'password'
[2024-11-23T20:01:21.079Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.079Z] self.username,
[2024-11-23T20:01:21.079Z] self.email,
[2024-11-23T20:01:21.079Z] self.password
[2024-11-23T20:01:21.079Z] )
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.079Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.079Z] user.save(using=self._db)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.079Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.079Z] self.save_base(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.079Z] updated = self._save_table(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.079Z] results = self._do_insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.079Z] return manager._insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.079Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.079Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.079Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.079Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.079Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.079Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.079Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$759O8HN2ToQ2pxK2s2ow0d$c45a88883024e9379be2c0e8f727c47d', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z] __________________ PermissionsCompositionTests.test_not_false __________________
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5eb530>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$rGgTfjgxfc1QLk8HDSlNGM$5449292cd86d7e23e7058f2e41614402', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5eb530>})
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.079Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.079Z] # ever set during testing).
[2024-11-23T20:01:21.079Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.079Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.079Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.079Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] # params default might be backend specific.
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.079Z] else:
[2024-11-23T20:01:21.079Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae18320>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$rGgTfjgxfc1QLk8HDSlNGM$5449292cd86d7e23e7058f2e41614402', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_not_false>
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def setUp(self):
[2024-11-23T20:01:21.079Z] self.username = 'john'
[2024-11-23T20:01:21.079Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.079Z] self.password = 'password'
[2024-11-23T20:01:21.079Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.079Z] self.username,
[2024-11-23T20:01:21.079Z] self.email,
[2024-11-23T20:01:21.079Z] self.password
[2024-11-23T20:01:21.079Z] )
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.079Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.079Z] user.save(using=self._db)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.079Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.079Z] self.save_base(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.079Z] updated = self._save_table(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.079Z] results = self._do_insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.079Z] return manager._insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.079Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.079Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.079Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.079Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.079Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.079Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.079Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae18320>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$rGgTfjgxfc1QLk8HDSlNGM$5449292cd86d7e23e7058f2e41614402', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z] __________________ PermissionsCompositionTests.test_not_true ___________________
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb624050>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$TC8vhmJjmCUiaW5v9Nxs3q$9024f074aa5d8f3b42c6260cf94c85b3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb624050>})
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.079Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.079Z] # ever set during testing).
[2024-11-23T20:01:21.079Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.079Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.079Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.079Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] # params default might be backend specific.
[2024-11-23T20:01:21.079Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.079Z] else:
[2024-11-23T20:01:21.079Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.079Z] 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-23T20:01:21.079Z] params = ('md5$TC8vhmJjmCUiaW5v9Nxs3q$9024f074aa5d8f3b42c6260cf94c85b3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.079Z] if params is None:
[2024-11-23T20:01:21.079Z] return super().execute(query)
[2024-11-23T20:01:21.079Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.079Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.079Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.079Z] > return super().execute(query, params)
[2024-11-23T20:01:21.079Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_not_true>
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] def setUp(self):
[2024-11-23T20:01:21.079Z] self.username = 'john'
[2024-11-23T20:01:21.079Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.079Z] self.password = 'password'
[2024-11-23T20:01:21.079Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.079Z] self.username,
[2024-11-23T20:01:21.079Z] self.email,
[2024-11-23T20:01:21.079Z] self.password
[2024-11-23T20:01:21.079Z] )
[2024-11-23T20:01:21.079Z]
[2024-11-23T20:01:21.079Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.079Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.079Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.079Z] user.save(using=self._db)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.079Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.079Z] self.save_base(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.079Z] updated = self._save_table(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.079Z] results = self._do_insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.079Z] return manager._insert(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.079Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.079Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.079Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.079Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.079Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.080Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.080Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$TC8vhmJjmCUiaW5v9Nxs3q$9024f074aa5d8f3b42c6260cf94c85b3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z] _____________ PermissionsCompositionTests.test_object_and_lazyness _____________
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb6274d0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$bxNoqJn9lYVIY4NasHr859$1abe2e415363f91cb25143596b063dc3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb6274d0>})
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.080Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.080Z] # ever set during testing).
[2024-11-23T20:01:21.080Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.080Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.080Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] # params default might be backend specific.
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.080Z] else:
[2024-11-23T20:01:21.080Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19130>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$bxNoqJn9lYVIY4NasHr859$1abe2e415363f91cb25143596b063dc3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_object_and_lazyness>
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def setUp(self):
[2024-11-23T20:01:21.080Z] self.username = 'john'
[2024-11-23T20:01:21.080Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.080Z] self.password = 'password'
[2024-11-23T20:01:21.080Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.080Z] self.username,
[2024-11-23T20:01:21.080Z] self.email,
[2024-11-23T20:01:21.080Z] self.password
[2024-11-23T20:01:21.080Z] )
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.080Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.080Z] user.save(using=self._db)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.080Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.080Z] self.save_base(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.080Z] updated = self._save_table(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.080Z] results = self._do_insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.080Z] return manager._insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.080Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.080Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.080Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.080Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.080Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.080Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19130>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$bxNoqJn9lYVIY4NasHr859$1abe2e415363f91cb25143596b063dc3', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z] _____________ PermissionsCompositionTests.test_object_or_lazyness ______________
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb625670>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$TpenjVsdGQaSoyvyypXMz8$e7413b88ee6f1109bff901d77701ffa8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb625670>})
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.080Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.080Z] # ever set during testing).
[2024-11-23T20:01:21.080Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.080Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.080Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] # params default might be backend specific.
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.080Z] else:
[2024-11-23T20:01:21.080Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae190a0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$TpenjVsdGQaSoyvyypXMz8$e7413b88ee6f1109bff901d77701ffa8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_object_or_lazyness>
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def setUp(self):
[2024-11-23T20:01:21.080Z] self.username = 'john'
[2024-11-23T20:01:21.080Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.080Z] self.password = 'password'
[2024-11-23T20:01:21.080Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.080Z] self.username,
[2024-11-23T20:01:21.080Z] self.email,
[2024-11-23T20:01:21.080Z] self.password
[2024-11-23T20:01:21.080Z] )
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.080Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.080Z] user.save(using=self._db)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.080Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.080Z] self.save_base(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.080Z] updated = self._save_table(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.080Z] results = self._do_insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.080Z] return manager._insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.080Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.080Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.080Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.080Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.080Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.080Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae190a0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$TpenjVsdGQaSoyvyypXMz8$e7413b88ee6f1109bff901d77701ffa8', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z] __________________ PermissionsCompositionTests.test_or_false ___________________
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb624830>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$DVllin13FRF5eHTIbmFrk3$131803c512ae5f2ce95462d51ee6cc50', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb624830>})
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.080Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.080Z] # ever set during testing).
[2024-11-23T20:01:21.080Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.080Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.080Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] # params default might be backend specific.
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.080Z] else:
[2024-11-23T20:01:21.080Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$DVllin13FRF5eHTIbmFrk3$131803c512ae5f2ce95462d51ee6cc50', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_or_false>
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def setUp(self):
[2024-11-23T20:01:21.080Z] self.username = 'john'
[2024-11-23T20:01:21.080Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.080Z] self.password = 'password'
[2024-11-23T20:01:21.080Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.080Z] self.username,
[2024-11-23T20:01:21.080Z] self.email,
[2024-11-23T20:01:21.080Z] self.password
[2024-11-23T20:01:21.080Z] )
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.080Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.080Z] user.save(using=self._db)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.080Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.080Z] self.save_base(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.080Z] updated = self._save_table(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.080Z] results = self._do_insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.080Z] return manager._insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.080Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.080Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.080Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.080Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.080Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.080Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$DVllin13FRF5eHTIbmFrk3$131803c512ae5f2ce95462d51ee6cc50', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z] _________________ PermissionsCompositionTests.test_or_lazyness _________________
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb6a19d0>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$LZVxAGZXgsWnlyPY5rgKyN$d07afcd5f2c16e79355207f434d1f966', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb6a19d0>})
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.080Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.080Z] # ever set during testing).
[2024-11-23T20:01:21.080Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.080Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.080Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] # params default might be backend specific.
[2024-11-23T20:01:21.080Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.080Z] else:
[2024-11-23T20:01:21.080Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.080Z] 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-23T20:01:21.080Z] params = ('md5$LZVxAGZXgsWnlyPY5rgKyN$d07afcd5f2c16e79355207f434d1f966', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.080Z] if params is None:
[2024-11-23T20:01:21.080Z] return super().execute(query)
[2024-11-23T20:01:21.080Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.080Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.080Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.080Z] > return super().execute(query, params)
[2024-11-23T20:01:21.080Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_or_lazyness>
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] def setUp(self):
[2024-11-23T20:01:21.080Z] self.username = 'john'
[2024-11-23T20:01:21.080Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.080Z] self.password = 'password'
[2024-11-23T20:01:21.080Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.080Z] self.username,
[2024-11-23T20:01:21.080Z] self.email,
[2024-11-23T20:01:21.080Z] self.password
[2024-11-23T20:01:21.080Z] )
[2024-11-23T20:01:21.080Z]
[2024-11-23T20:01:21.080Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.080Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.080Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.080Z] user.save(using=self._db)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.080Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.080Z] self.save_base(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.080Z] updated = self._save_table(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.080Z] results = self._do_insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.080Z] return manager._insert(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.080Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.080Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.080Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.080Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.080Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.080Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.080Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.080Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$LZVxAGZXgsWnlyPY5rgKyN$d07afcd5f2c16e79355207f434d1f966', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z] ___________________ PermissionsCompositionTests.test_or_true ___________________
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5dc770>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$wiiXkgGEcm2FUNRoo4Bxsl$f6e14001c0f62eb4d7d5f1d52837b884', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5dc770>})
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.081Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.081Z] # ever set during testing).
[2024-11-23T20:01:21.081Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.081Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.081Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] # params default might be backend specific.
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.081Z] else:
[2024-11-23T20:01:21.081Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae196d0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$wiiXkgGEcm2FUNRoo4Bxsl$f6e14001c0f62eb4d7d5f1d52837b884', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_or_true>
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def setUp(self):
[2024-11-23T20:01:21.081Z] self.username = 'john'
[2024-11-23T20:01:21.081Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.081Z] self.password = 'password'
[2024-11-23T20:01:21.081Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.081Z] self.username,
[2024-11-23T20:01:21.081Z] self.email,
[2024-11-23T20:01:21.081Z] self.password
[2024-11-23T20:01:21.081Z] )
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.081Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.081Z] user.save(using=self._db)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.081Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.081Z] self.save_base(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.081Z] updated = self._save_table(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.081Z] results = self._do_insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.081Z] return manager._insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.081Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.081Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.081Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.081Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.081Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.081Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae196d0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$wiiXkgGEcm2FUNRoo4Bxsl$f6e14001c0f62eb4d7d5f1d52837b884', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z] ________ PermissionsCompositionTests.test_several_levels_and_precedence ________
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5dd550>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$dSnUqZeNvQRUJZBToJU4Bj$c26adb2b3772030852a89f78a6bae720', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5dd550>})
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.081Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.081Z] # ever set during testing).
[2024-11-23T20:01:21.081Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.081Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.081Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] # params default might be backend specific.
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.081Z] else:
[2024-11-23T20:01:21.081Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1bbf0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$dSnUqZeNvQRUJZBToJU4Bj$c26adb2b3772030852a89f78a6bae720', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_several_levels_and_precedence>
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def setUp(self):
[2024-11-23T20:01:21.081Z] self.username = 'john'
[2024-11-23T20:01:21.081Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.081Z] self.password = 'password'
[2024-11-23T20:01:21.081Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.081Z] self.username,
[2024-11-23T20:01:21.081Z] self.email,
[2024-11-23T20:01:21.081Z] self.password
[2024-11-23T20:01:21.081Z] )
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.081Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.081Z] user.save(using=self._db)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.081Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.081Z] self.save_base(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.081Z] updated = self._save_table(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.081Z] results = self._do_insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.081Z] return manager._insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.081Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.081Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.081Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.081Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.081Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.081Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1bbf0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$dSnUqZeNvQRUJZBToJU4Bj$c26adb2b3772030852a89f78a6bae720', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z] _ PermissionsCompositionTests.test_several_levels_and_precedence_with_negation _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5dd4f0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$HplhMOzrCwOwM3E6kUq0HK$0106aa75416c2c001075975c056d7e5c', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5dd4f0>})
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.081Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.081Z] # ever set during testing).
[2024-11-23T20:01:21.081Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.081Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.081Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] # params default might be backend specific.
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.081Z] else:
[2024-11-23T20:01:21.081Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae196d0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$HplhMOzrCwOwM3E6kUq0HK$0106aa75416c2c001075975c056d7e5c', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_several_levels_and_precedence_with_negation>
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def setUp(self):
[2024-11-23T20:01:21.081Z] self.username = 'john'
[2024-11-23T20:01:21.081Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.081Z] self.password = 'password'
[2024-11-23T20:01:21.081Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.081Z] self.username,
[2024-11-23T20:01:21.081Z] self.email,
[2024-11-23T20:01:21.081Z] self.password
[2024-11-23T20:01:21.081Z] )
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.081Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.081Z] user.save(using=self._db)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.081Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.081Z] self.save_base(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.081Z] updated = self._save_table(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.081Z] results = self._do_insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.081Z] return manager._insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.081Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.081Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.081Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.081Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.081Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.081Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae196d0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$HplhMOzrCwOwM3E6kUq0HK$0106aa75416c2c001075975c056d7e5c', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z] _______ PermissionsCompositionTests.test_several_levels_without_negation _______
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5de1b0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$RxitKDEVy6S8rOTGVoejSX$fab7b2329e917fbd48d116595fdaccd4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5de1b0>})
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.081Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.081Z] # ever set during testing).
[2024-11-23T20:01:21.081Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.081Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.081Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] # params default might be backend specific.
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.081Z] else:
[2024-11-23T20:01:21.081Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8da8d0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$RxitKDEVy6S8rOTGVoejSX$fab7b2329e917fbd48d116595fdaccd4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_several_levels_without_negation>
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def setUp(self):
[2024-11-23T20:01:21.081Z] self.username = 'john'
[2024-11-23T20:01:21.081Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.081Z] self.password = 'password'
[2024-11-23T20:01:21.081Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.081Z] self.username,
[2024-11-23T20:01:21.081Z] self.email,
[2024-11-23T20:01:21.081Z] self.password
[2024-11-23T20:01:21.081Z] )
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.081Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.081Z] user.save(using=self._db)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.081Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.081Z] self.save_base(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.081Z] updated = self._save_table(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.081Z] results = self._do_insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.081Z] return manager._insert(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.081Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.081Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.081Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.081Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.081Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.081Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.081Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.081Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.081Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8da8d0>
[2024-11-23T20:01:21.081Z] 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-23T20:01:21.081Z] params = ('md5$RxitKDEVy6S8rOTGVoejSX$fab7b2329e917fbd48d116595fdaccd4', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.081Z] if params is None:
[2024-11-23T20:01:21.081Z] return super().execute(query)
[2024-11-23T20:01:21.081Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.081Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.081Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.081Z] > return super().execute(query, params)
[2024-11-23T20:01:21.081Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.081Z] _____ PermissionsCompositionTests.test_unimplemented_has_object_permission _____
[2024-11-23T20:01:21.081Z]
[2024-11-23T20:01:21.081Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb6a3350>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('md5$XItnNsFSAdCr6tRIfJgL0n$3901ec65ae7d188c435e0a3da1e1d6f0', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.082Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb6a3350>})
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.082Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.082Z] # ever set during testing).
[2024-11-23T20:01:21.082Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.082Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.082Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] # params default might be backend specific.
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.082Z] else:
[2024-11-23T20:01:21.082Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d87a0>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('md5$XItnNsFSAdCr6tRIfJgL0n$3901ec65ae7d188c435e0a3da1e1d6f0', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_unimplemented_has_object_permission>
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def setUp(self):
[2024-11-23T20:01:21.082Z] self.username = 'john'
[2024-11-23T20:01:21.082Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.082Z] self.password = 'password'
[2024-11-23T20:01:21.082Z] > self.user = User.objects.create_user(
[2024-11-23T20:01:21.082Z] self.username,
[2024-11-23T20:01:21.082Z] self.email,
[2024-11-23T20:01:21.082Z] self.password
[2024-11-23T20:01:21.082Z] )
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] tests/test_permissions.py:551:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.082Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.082Z] user.save(using=self._db)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.082Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.082Z] self.save_base(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.082Z] updated = self._save_table(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.082Z] results = self._do_insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.082Z] return manager._insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.082Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.082Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.082Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.082Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.082Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.082Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d87a0>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('md5$XItnNsFSAdCr6tRIfJgL0n$3901ec65ae7d188c435e0a3da1e1d6f0', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z] _ TestPrefetchRelatedUpdates.test_prefetch_related_excluding_instance_from_original_queryset _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb6a23f0>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T20:01:21.082Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb6a23f0>})
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.082Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.082Z] # ever set during testing).
[2024-11-23T20:01:21.082Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.082Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.082Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] # params default might be backend specific.
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.082Z] else:
[2024-11-23T20:01:21.082Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8da180>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <tests.test_prefetch_related.TestPrefetchRelatedUpdates testMethod=test_prefetch_related_excluding_instance_from_original_queryset>
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def setUp(self):
[2024-11-23T20:01:21.082Z] > self.user = User.objects.create(username='tom', email='tom at example.com')
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] tests/test_prefetch_related.py:23:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.082Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.082Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.082Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.082Z] self.save_base(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.082Z] updated = self._save_table(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.082Z] results = self._do_insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.082Z] return manager._insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.082Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.082Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.082Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.082Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.082Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.082Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8da180>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z] ___________ TestPrefetchRelatedUpdates.test_prefetch_related_updates ___________
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb69cf50>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T20:01:21.082Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb69cf50>})
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.082Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.082Z] # ever set during testing).
[2024-11-23T20:01:21.082Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.082Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.082Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] # params default might be backend specific.
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.082Z] else:
[2024-11-23T20:01:21.082Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8dab10>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <tests.test_prefetch_related.TestPrefetchRelatedUpdates testMethod=test_prefetch_related_updates>
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def setUp(self):
[2024-11-23T20:01:21.082Z] > self.user = User.objects.create(username='tom', email='tom at example.com')
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] tests/test_prefetch_related.py:23:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.082Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.082Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.082Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.082Z] self.save_base(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.082Z] updated = self._save_table(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.082Z] results = self._do_insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.082Z] return manager._insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.082Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.082Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.082Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.082Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.082Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.082Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8dab10>
[2024-11-23T20:01:21.082Z] 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-23T20:01:21.082Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z] _____________ HyperlinkedManyToManyTests.test_many_to_many_create ______________
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9a2210>
[2024-11-23T20:01:21.082Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.082Z] params = ('target-1',)
[2024-11-23T20:01:21.082Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9a2210>})
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.082Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.082Z] # ever set during testing).
[2024-11-23T20:01:21.082Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.082Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.082Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] # params default might be backend specific.
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.082Z] else:
[2024-11-23T20:01:21.082Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8db9b0>
[2024-11-23T20:01:21.082Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.082Z] params = ('target-1',)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_create>
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def setUp(self):
[2024-11-23T20:01:21.082Z] for idx in range(1, 4):
[2024-11-23T20:01:21.082Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.082Z] > target.save()
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.082Z] self.save_base(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.082Z] updated = self._save_table(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.082Z] results = self._do_insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.082Z] return manager._insert(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.082Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.082Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.082Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.082Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.082Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.082Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8db9b0>
[2024-11-23T20:01:21.082Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.082Z] params = ('target-1',)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z] ____________ HyperlinkedManyToManyTests.test_many_to_many_retrieve _____________
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9281d0>
[2024-11-23T20:01:21.082Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.082Z] params = ('target-1',)
[2024-11-23T20:01:21.082Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9281d0>})
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.082Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.082Z] # ever set during testing).
[2024-11-23T20:01:21.082Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.082Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.082Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.082Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] # params default might be backend specific.
[2024-11-23T20:01:21.082Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.082Z] else:
[2024-11-23T20:01:21.082Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.082Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.082Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.082Z] params = ('target-1',)
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.082Z] if params is None:
[2024-11-23T20:01:21.082Z] return super().execute(query)
[2024-11-23T20:01:21.082Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.082Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.082Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.082Z] > return super().execute(query, params)
[2024-11-23T20:01:21.082Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.082Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.082Z]
[2024-11-23T20:01:21.083Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_retrieve>
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def setUp(self):
[2024-11-23T20:01:21.083Z] for idx in range(1, 4):
[2024-11-23T20:01:21.083Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.083Z] > target.save()
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.083Z] self.save_base(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.083Z] updated = self._save_table(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.083Z] results = self._do_insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.083Z] return manager._insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.083Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.083Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.083Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.083Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.083Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.083Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1b9b0>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z] ____ HyperlinkedManyToManyTests.test_many_to_many_retrieve_prefetch_related ____
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9284d0>
[2024-11-23T20:01:21.083Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9284d0>})
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.083Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.083Z] # ever set during testing).
[2024-11-23T20:01:21.083Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.083Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.083Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] # params default might be backend specific.
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.083Z] else:
[2024-11-23T20:01:21.083Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a0f0>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_retrieve_prefetch_related>
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def setUp(self):
[2024-11-23T20:01:21.083Z] for idx in range(1, 4):
[2024-11-23T20:01:21.083Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.083Z] > target.save()
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.083Z] self.save_base(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.083Z] updated = self._save_table(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.083Z] results = self._do_insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.083Z] return manager._insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.083Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.083Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.083Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.083Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.083Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.083Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a0f0>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z] _____________ HyperlinkedManyToManyTests.test_many_to_many_update ______________
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d0a70>
[2024-11-23T20:01:21.083Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d0a70>})
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.083Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.083Z] # ever set during testing).
[2024-11-23T20:01:21.083Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.083Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.083Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] # params default might be backend specific.
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.083Z] else:
[2024-11-23T20:01:21.083Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_update>
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def setUp(self):
[2024-11-23T20:01:21.083Z] for idx in range(1, 4):
[2024-11-23T20:01:21.083Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.083Z] > target.save()
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.083Z] self.save_base(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.083Z] updated = self._save_table(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.083Z] results = self._do_insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.083Z] return manager._insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.083Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.083Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.083Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.083Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.083Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.083Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z] _____________ HyperlinkedManyToManyTests.test_relative_hyperlinks ______________
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d0530>
[2024-11-23T20:01:21.083Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d0530>})
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.083Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.083Z] # ever set during testing).
[2024-11-23T20:01:21.083Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.083Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.083Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] # params default might be backend specific.
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.083Z] else:
[2024-11-23T20:01:21.083Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_relative_hyperlinks>
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def setUp(self):
[2024-11-23T20:01:21.083Z] for idx in range(1, 4):
[2024-11-23T20:01:21.083Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.083Z] > target.save()
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.083Z] self.save_base(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.083Z] updated = self._save_table(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.083Z] results = self._do_insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.083Z] return manager._insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.083Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.083Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.083Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.083Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.083Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.083Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae1a7b0>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z] _________ HyperlinkedManyToManyTests.test_reverse_many_to_many_create __________
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea97e570>
[2024-11-23T20:01:21.083Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea97e570>})
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.083Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.083Z] # ever set during testing).
[2024-11-23T20:01:21.083Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.083Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.083Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] # params default might be backend specific.
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.083Z] else:
[2024-11-23T20:01:21.083Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8dba40>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_reverse_many_to_many_create>
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def setUp(self):
[2024-11-23T20:01:21.083Z] for idx in range(1, 4):
[2024-11-23T20:01:21.083Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.083Z] > target.save()
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.083Z] self.save_base(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.083Z] updated = self._save_table(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.083Z] results = self._do_insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.083Z] return manager._insert(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.083Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.083Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.083Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.083Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.083Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.083Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8dba40>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z] ________ HyperlinkedManyToManyTests.test_reverse_many_to_many_retrieve _________
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea97e510>
[2024-11-23T20:01:21.083Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea97e510>})
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.083Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.083Z] # ever set during testing).
[2024-11-23T20:01:21.083Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.083Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.083Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.083Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] # params default might be backend specific.
[2024-11-23T20:01:21.083Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.083Z] else:
[2024-11-23T20:01:21.083Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.083Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a450>
[2024-11-23T20:01:21.083Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.083Z] params = ('target-1',)
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.083Z] if params is None:
[2024-11-23T20:01:21.083Z] return super().execute(query)
[2024-11-23T20:01:21.083Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.083Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.083Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.083Z] > return super().execute(query, params)
[2024-11-23T20:01:21.083Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.083Z]
[2024-11-23T20:01:21.083Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_reverse_many_to_many_retrieve>
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def setUp(self):
[2024-11-23T20:01:21.084Z] for idx in range(1, 4):
[2024-11-23T20:01:21.084Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.084Z] > target.save()
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.084Z] self.save_base(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.084Z] updated = self._save_table(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.084Z] results = self._do_insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.084Z] return manager._insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.084Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.084Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.084Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.084Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.084Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.084Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a450>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z] _________ HyperlinkedManyToManyTests.test_reverse_many_to_many_update __________
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9a0110>
[2024-11-23T20:01:21.084Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9a0110>})
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.084Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.084Z] # ever set during testing).
[2024-11-23T20:01:21.084Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.084Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.084Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] # params default might be backend specific.
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.084Z] else:
[2024-11-23T20:01:21.084Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a180>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_reverse_many_to_many_update>
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def setUp(self):
[2024-11-23T20:01:21.084Z] for idx in range(1, 4):
[2024-11-23T20:01:21.084Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.084Z] > target.save()
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.084Z] self.save_base(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.084Z] updated = self._save_table(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.084Z] results = self._do_insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.084Z] return manager._insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.084Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.084Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.084Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.084Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.084Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.084Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a180>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z] ______________ HyperlinkedForeignKeyTests.test_foreign_key_create ______________
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb5e8e90>
[2024-11-23T20:01:21.084Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb5e8e90>})
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.084Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.084Z] # ever set during testing).
[2024-11-23T20:01:21.084Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.084Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.084Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] # params default might be backend specific.
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.084Z] else:
[2024-11-23T20:01:21.084Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_create>
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def setUp(self):
[2024-11-23T20:01:21.084Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.084Z] > target.save()
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.084Z] self.save_base(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.084Z] updated = self._save_table(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.084Z] results = self._do_insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.084Z] return manager._insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.084Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.084Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.084Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.084Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.084Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.084Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eae19f40>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z] _____________ HyperlinkedForeignKeyTests.test_foreign_key_retrieve _____________
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea929190>
[2024-11-23T20:01:21.084Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea929190>})
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.084Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.084Z] # ever set during testing).
[2024-11-23T20:01:21.084Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.084Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.084Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] # params default might be backend specific.
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.084Z] else:
[2024-11-23T20:01:21.084Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93ae70>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_retrieve>
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def setUp(self):
[2024-11-23T20:01:21.084Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.084Z] > target.save()
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.084Z] self.save_base(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.084Z] updated = self._save_table(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.084Z] results = self._do_insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.084Z] return manager._insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.084Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.084Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.084Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.084Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.084Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.084Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93ae70>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z] ______________ HyperlinkedForeignKeyTests.test_foreign_key_update ______________
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea929c70>
[2024-11-23T20:01:21.084Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea929c70>})
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.084Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.084Z] # ever set during testing).
[2024-11-23T20:01:21.084Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.084Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.084Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] # params default might be backend specific.
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.084Z] else:
[2024-11-23T20:01:21.084Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93b4a0>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_update>
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def setUp(self):
[2024-11-23T20:01:21.084Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.084Z] > target.save()
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.084Z] self.save_base(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.084Z] updated = self._save_table(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.084Z] results = self._do_insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.084Z] return manager._insert(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.084Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.084Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.084Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.084Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.084Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.084Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93b4a0>
[2024-11-23T20:01:21.084Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] return super().execute(query)
[2024-11-23T20:01:21.084Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.084Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.084Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.084Z] > return super().execute(query, params)
[2024-11-23T20:01:21.084Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.084Z] ______ HyperlinkedForeignKeyTests.test_foreign_key_update_incorrect_type _______
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d11f0>
[2024-11-23T20:01:21.084Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.084Z] params = ('target-1',)
[2024-11-23T20:01:21.084Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d11f0>})
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.084Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.084Z] # ever set during testing).
[2024-11-23T20:01:21.084Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.084Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.084Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.084Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.084Z] if params is None:
[2024-11-23T20:01:21.084Z] # params default might be backend specific.
[2024-11-23T20:01:21.084Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.084Z] else:
[2024-11-23T20:01:21.084Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.084Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.084Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.084Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93b2f0>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_update_incorrect_type>
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def setUp(self):
[2024-11-23T20:01:21.085Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.085Z] > target.save()
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.085Z] self.save_base(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.085Z] updated = self._save_table(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.085Z] results = self._do_insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.085Z] return manager._insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.085Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.085Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.085Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.085Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.085Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.085Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93b2f0>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z] _____ HyperlinkedForeignKeyTests.test_foreign_key_update_with_invalid_null _____
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d0a10>
[2024-11-23T20:01:21.085Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d0a10>})
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.085Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.085Z] # ever set during testing).
[2024-11-23T20:01:21.085Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.085Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.085Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] # params default might be backend specific.
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.085Z] else:
[2024-11-23T20:01:21.085Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9395b0>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_update_with_invalid_null>
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def setUp(self):
[2024-11-23T20:01:21.085Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.085Z] > target.save()
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.085Z] self.save_base(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.085Z] updated = self._save_table(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.085Z] results = self._do_insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.085Z] return manager._insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.085Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.085Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.085Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.085Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.085Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.085Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9395b0>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z] __________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_create __________
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea97e270>
[2024-11-23T20:01:21.085Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea97e270>})
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.085Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.085Z] # ever set during testing).
[2024-11-23T20:01:21.085Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.085Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.085Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] # params default might be backend specific.
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.085Z] else:
[2024-11-23T20:01:21.085Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93bb60>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_reverse_foreign_key_create>
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def setUp(self):
[2024-11-23T20:01:21.085Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.085Z] > target.save()
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.085Z] self.save_base(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.085Z] updated = self._save_table(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.085Z] results = self._do_insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.085Z] return manager._insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.085Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.085Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.085Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.085Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.085Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.085Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93bb60>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z] _________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_retrieve _________
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea97e3f0>
[2024-11-23T20:01:21.085Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea97e3f0>})
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.085Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.085Z] # ever set during testing).
[2024-11-23T20:01:21.085Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.085Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.085Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] # params default might be backend specific.
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.085Z] else:
[2024-11-23T20:01:21.085Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93aba0>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_reverse_foreign_key_retrieve>
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def setUp(self):
[2024-11-23T20:01:21.085Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.085Z] > target.save()
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.085Z] self.save_base(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.085Z] updated = self._save_table(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.085Z] results = self._do_insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.085Z] return manager._insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.085Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.085Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.085Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.085Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.085Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.085Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93aba0>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z] __________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_update __________
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb69fbf0>
[2024-11-23T20:01:21.085Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb69fbf0>})
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.085Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.085Z] # ever set during testing).
[2024-11-23T20:01:21.085Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.085Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.085Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] # params default might be backend specific.
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.085Z] else:
[2024-11-23T20:01:21.085Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93be30>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_reverse_foreign_key_update>
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def setUp(self):
[2024-11-23T20:01:21.085Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.085Z] > target.save()
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.085Z] self.save_base(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.085Z] updated = self._save_table(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.085Z] results = self._do_insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.085Z] return manager._insert(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.085Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.085Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.085Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.085Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.085Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.085Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93be30>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.085Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.085Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.085Z] > return super().execute(query, params)
[2024-11-23T20:01:21.085Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.085Z] _ HyperlinkedNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb69c710>
[2024-11-23T20:01:21.085Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb69c710>})
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.085Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.085Z] # ever set during testing).
[2024-11-23T20:01:21.085Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.085Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.085Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.085Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] # params default might be backend specific.
[2024-11-23T20:01:21.085Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.085Z] else:
[2024-11-23T20:01:21.085Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.085Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a720>
[2024-11-23T20:01:21.085Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.085Z] params = ('target-1',)
[2024-11-23T20:01:21.085Z]
[2024-11-23T20:01:21.085Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.085Z] if params is None:
[2024-11-23T20:01:21.085Z] return super().execute(query)
[2024-11-23T20:01:21.085Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_emptystring>
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def setUp(self):
[2024-11-23T20:01:21.086Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.086Z] > target.save()
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.086Z] self.save_base(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.086Z] updated = self._save_table(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.086Z] results = self._do_insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.086Z] return manager._insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.086Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.086Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.086Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.086Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.086Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.086Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a720>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z] __ HyperlinkedNullableForeignKeyTests.test_foreign_key_create_with_valid_null __
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9a2750>
[2024-11-23T20:01:21.086Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9a2750>})
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.086Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.086Z] # ever set during testing).
[2024-11-23T20:01:21.086Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.086Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.086Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] # params default might be backend specific.
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.086Z] else:
[2024-11-23T20:01:21.086Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93bbf0>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_null>
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def setUp(self):
[2024-11-23T20:01:21.086Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.086Z] > target.save()
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.086Z] self.save_base(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.086Z] updated = self._save_table(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.086Z] results = self._do_insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.086Z] return manager._insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.086Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.086Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.086Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.086Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.086Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.086Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93bbf0>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z] ____ HyperlinkedNullableForeignKeyTests.test_foreign_key_retrieve_with_null ____
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d2750>
[2024-11-23T20:01:21.086Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d2750>})
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.086Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.086Z] # ever set during testing).
[2024-11-23T20:01:21.086Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.086Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.086Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] # params default might be backend specific.
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.086Z] else:
[2024-11-23T20:01:21.086Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a180>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_retrieve_with_null>
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def setUp(self):
[2024-11-23T20:01:21.086Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.086Z] > target.save()
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.086Z] self.save_base(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.086Z] updated = self._save_table(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.086Z] results = self._do_insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.086Z] return manager._insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.086Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.086Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.086Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.086Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.086Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.086Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a180>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z] _ HyperlinkedNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb69e390>
[2024-11-23T20:01:21.086Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb69e390>})
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.086Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.086Z] # ever set during testing).
[2024-11-23T20:01:21.086Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.086Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.086Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] # params default might be backend specific.
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.086Z] else:
[2024-11-23T20:01:21.086Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939eb0>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_emptystring>
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def setUp(self):
[2024-11-23T20:01:21.086Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.086Z] > target.save()
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.086Z] self.save_base(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.086Z] updated = self._save_table(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.086Z] results = self._do_insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.086Z] return manager._insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.086Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.086Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.086Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.086Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.086Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.086Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939eb0>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z] __ HyperlinkedNullableForeignKeyTests.test_foreign_key_update_with_valid_null __
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9826f0>
[2024-11-23T20:01:21.086Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9826f0>})
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.086Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.086Z] # ever set during testing).
[2024-11-23T20:01:21.086Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.086Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.086Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] # params default might be backend specific.
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.086Z] else:
[2024-11-23T20:01:21.086Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939880>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_null>
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def setUp(self):
[2024-11-23T20:01:21.086Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.086Z] > target.save()
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.086Z] self.save_base(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.086Z] updated = self._save_table(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.086Z] results = self._do_insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.086Z] return manager._insert(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.086Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.086Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.086Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.086Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.086Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.086Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.086Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.086Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.086Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939880>
[2024-11-23T20:01:21.086Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.086Z] if params is None:
[2024-11-23T20:01:21.086Z] return super().execute(query)
[2024-11-23T20:01:21.086Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.086Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.086Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.086Z] > return super().execute(query, params)
[2024-11-23T20:01:21.086Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.086Z] _ HyperlinkedNullableOneToOneTests.test_reverse_foreign_key_retrieve_with_null _
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea980950>
[2024-11-23T20:01:21.086Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.086Z] params = ('target-1',)
[2024-11-23T20:01:21.086Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea980950>})
[2024-11-23T20:01:21.086Z]
[2024-11-23T20:01:21.086Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.086Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.086Z] # ever set during testing).
[2024-11-23T20:01:21.086Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.087Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.087Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] # params default might be backend specific.
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.087Z] else:
[2024-11-23T20:01:21.087Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939eb0>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableOneToOneTests testMethod=test_reverse_foreign_key_retrieve_with_null>
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def setUp(self):
[2024-11-23T20:01:21.087Z] target = OneToOneTarget(name='target-1')
[2024-11-23T20:01:21.087Z] > target.save()
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] tests/test_relations_hyperlink.py:436:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.087Z] self.save_base(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.087Z] updated = self._save_table(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.087Z] results = self._do_insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.087Z] return manager._insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.087Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.087Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.087Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.087Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.087Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.087Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939eb0>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z] __________________ PKManyToManyTests.test_many_to_many_create __________________
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea981cd0>
[2024-11-23T20:01:21.087Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea981cd0>})
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.087Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.087Z] # ever set during testing).
[2024-11-23T20:01:21.087Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.087Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.087Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] # params default might be backend specific.
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.087Z] else:
[2024-11-23T20:01:21.087Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0e60>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_create>
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def setUp(self):
[2024-11-23T20:01:21.087Z] for idx in range(1, 4):
[2024-11-23T20:01:21.087Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.087Z] > target.save()
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.087Z] self.save_base(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.087Z] updated = self._save_table(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.087Z] results = self._do_insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.087Z] return manager._insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.087Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.087Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.087Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.087Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.087Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.087Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0e60>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z] _________________ PKManyToManyTests.test_many_to_many_retrieve _________________
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea941f70>
[2024-11-23T20:01:21.087Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea941f70>})
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.087Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.087Z] # ever set during testing).
[2024-11-23T20:01:21.087Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.087Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.087Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] # params default might be backend specific.
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.087Z] else:
[2024-11-23T20:01:21.087Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939eb0>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_retrieve>
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def setUp(self):
[2024-11-23T20:01:21.087Z] for idx in range(1, 4):
[2024-11-23T20:01:21.087Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.087Z] > target.save()
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.087Z] self.save_base(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.087Z] updated = self._save_table(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.087Z] results = self._do_insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.087Z] return manager._insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.087Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.087Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.087Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.087Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.087Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.087Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939eb0>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z] ________ PKManyToManyTests.test_many_to_many_retrieve_prefetch_related _________
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9428d0>
[2024-11-23T20:01:21.087Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9428d0>})
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.087Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.087Z] # ever set during testing).
[2024-11-23T20:01:21.087Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.087Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.087Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] # params default might be backend specific.
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.087Z] else:
[2024-11-23T20:01:21.087Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c1400>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_retrieve_prefetch_related>
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def setUp(self):
[2024-11-23T20:01:21.087Z] for idx in range(1, 4):
[2024-11-23T20:01:21.087Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.087Z] > target.save()
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.087Z] self.save_base(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.087Z] updated = self._save_table(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.087Z] results = self._do_insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.087Z] return manager._insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.087Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.087Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.087Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.087Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.087Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.087Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c1400>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z] _________________ PKManyToManyTests.test_many_to_many_unsaved __________________
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2d2750>
[2024-11-23T20:01:21.087Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2d2750>})
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.087Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.087Z] # ever set during testing).
[2024-11-23T20:01:21.087Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.087Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.087Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] # params default might be backend specific.
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.087Z] else:
[2024-11-23T20:01:21.087Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d8560>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_unsaved>
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def setUp(self):
[2024-11-23T20:01:21.087Z] for idx in range(1, 4):
[2024-11-23T20:01:21.087Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.087Z] > target.save()
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.087Z] self.save_base(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.087Z] updated = self._save_table(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.087Z] results = self._do_insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.087Z] return manager._insert(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.087Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.087Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.087Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.087Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.087Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.087Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.087Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.087Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.087Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea8d8560>
[2024-11-23T20:01:21.087Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.087Z] if params is None:
[2024-11-23T20:01:21.087Z] return super().execute(query)
[2024-11-23T20:01:21.087Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.087Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.087Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.087Z] > return super().execute(query, params)
[2024-11-23T20:01:21.087Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.087Z] __________________ PKManyToManyTests.test_many_to_many_update __________________
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea942450>
[2024-11-23T20:01:21.087Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.087Z] params = ('target-1',)
[2024-11-23T20:01:21.087Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea942450>})
[2024-11-23T20:01:21.087Z]
[2024-11-23T20:01:21.087Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.087Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.087Z] # ever set during testing).
[2024-11-23T20:01:21.087Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.087Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.087Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] # params default might be backend specific.
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.088Z] else:
[2024-11-23T20:01:21.088Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93acc0>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_update>
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def setUp(self):
[2024-11-23T20:01:21.088Z] for idx in range(1, 4):
[2024-11-23T20:01:21.088Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.088Z] > target.save()
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.088Z] self.save_base(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.088Z] updated = self._save_table(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.088Z] results = self._do_insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.088Z] return manager._insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.088Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.088Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.088Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.088Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.088Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.088Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93acc0>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z] ______________ PKManyToManyTests.test_reverse_many_to_many_create ______________
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea942db0>
[2024-11-23T20:01:21.088Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea942db0>})
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.088Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.088Z] # ever set during testing).
[2024-11-23T20:01:21.088Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.088Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.088Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] # params default might be backend specific.
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.088Z] else:
[2024-11-23T20:01:21.088Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939520>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_reverse_many_to_many_create>
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def setUp(self):
[2024-11-23T20:01:21.088Z] for idx in range(1, 4):
[2024-11-23T20:01:21.088Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.088Z] > target.save()
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.088Z] self.save_base(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.088Z] updated = self._save_table(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.088Z] results = self._do_insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.088Z] return manager._insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.088Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.088Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.088Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.088Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.088Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.088Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939520>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z] _____________ PKManyToManyTests.test_reverse_many_to_many_retrieve _____________
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea94d3d0>
[2024-11-23T20:01:21.088Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea94d3d0>})
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.088Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.088Z] # ever set during testing).
[2024-11-23T20:01:21.088Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.088Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.088Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] # params default might be backend specific.
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.088Z] else:
[2024-11-23T20:01:21.088Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939e20>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_reverse_many_to_many_retrieve>
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def setUp(self):
[2024-11-23T20:01:21.088Z] for idx in range(1, 4):
[2024-11-23T20:01:21.088Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.088Z] > target.save()
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.088Z] self.save_base(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.088Z] updated = self._save_table(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.088Z] results = self._do_insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.088Z] return manager._insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.088Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.088Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.088Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.088Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.088Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.088Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939e20>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z] ______________ PKManyToManyTests.test_reverse_many_to_many_update ______________
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea94db50>
[2024-11-23T20:01:21.088Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea94db50>})
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.088Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.088Z] # ever set during testing).
[2024-11-23T20:01:21.088Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.088Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.088Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] # params default might be backend specific.
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.088Z] else:
[2024-11-23T20:01:21.088Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a180>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_reverse_many_to_many_update>
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def setUp(self):
[2024-11-23T20:01:21.088Z] for idx in range(1, 4):
[2024-11-23T20:01:21.088Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T20:01:21.088Z] > target.save()
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] tests/test_relations_pk.py:103:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.088Z] self.save_base(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.088Z] updated = self._save_table(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.088Z] results = self._do_insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.088Z] return manager._insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.088Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.088Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.088Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.088Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.088Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.088Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a180>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z] __________________ PKForeignKeyTests.test_foreign_key_create ___________________
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea94d730>
[2024-11-23T20:01:21.088Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea94d730>})
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.088Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.088Z] # ever set during testing).
[2024-11-23T20:01:21.088Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.088Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.088Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] # params default might be backend specific.
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.088Z] else:
[2024-11-23T20:01:21.088Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a450>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_create>
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def setUp(self):
[2024-11-23T20:01:21.088Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.088Z] > target.save()
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.088Z] self.save_base(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.088Z] updated = self._save_table(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.088Z] results = self._do_insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.088Z] return manager._insert(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.088Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.088Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.088Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.088Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.088Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.088Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.088Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.088Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.088Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a450>
[2024-11-23T20:01:21.088Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.088Z] params = ('target-1',)
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.088Z] if params is None:
[2024-11-23T20:01:21.088Z] return super().execute(query)
[2024-11-23T20:01:21.088Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.088Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.088Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.088Z] > return super().execute(query, params)
[2024-11-23T20:01:21.088Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.088Z]
[2024-11-23T20:01:21.088Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z] _______________ PKForeignKeyTests.test_foreign_key_not_required ________________
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea94eb70>
[2024-11-23T20:01:21.089Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea94eb70>})
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.089Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.089Z] # ever set during testing).
[2024-11-23T20:01:21.089Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.089Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.089Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] # params default might be backend specific.
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.089Z] else:
[2024-11-23T20:01:21.089Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c1a30>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_not_required>
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def setUp(self):
[2024-11-23T20:01:21.089Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.089Z] > target.save()
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.089Z] self.save_base(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.089Z] updated = self._save_table(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.089Z] results = self._do_insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.089Z] return manager._insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.089Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.089Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.089Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.089Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.089Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.089Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c1a30>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z] _________________ PKForeignKeyTests.test_foreign_key_retrieve __________________
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9b9d30>
[2024-11-23T20:01:21.089Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9b9d30>})
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.089Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.089Z] # ever set during testing).
[2024-11-23T20:01:21.089Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.089Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.089Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] # params default might be backend specific.
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.089Z] else:
[2024-11-23T20:01:21.089Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c05f0>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_retrieve>
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def setUp(self):
[2024-11-23T20:01:21.089Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.089Z] > target.save()
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.089Z] self.save_base(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.089Z] updated = self._save_table(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.089Z] results = self._do_insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.089Z] return manager._insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.089Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.089Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.089Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.089Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.089Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.089Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c05f0>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z] __________________ PKForeignKeyTests.test_foreign_key_update ___________________
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9b9010>
[2024-11-23T20:01:21.089Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9b9010>})
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.089Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.089Z] # ever set during testing).
[2024-11-23T20:01:21.089Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.089Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.089Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] # params default might be backend specific.
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.089Z] else:
[2024-11-23T20:01:21.089Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c24e0>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_update>
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def setUp(self):
[2024-11-23T20:01:21.089Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.089Z] > target.save()
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.089Z] self.save_base(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.089Z] updated = self._save_table(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.089Z] results = self._do_insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.089Z] return manager._insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.089Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.089Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.089Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.089Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.089Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.089Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c24e0>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z] ___________ PKForeignKeyTests.test_foreign_key_update_incorrect_type ___________
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9ba030>
[2024-11-23T20:01:21.089Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9ba030>})
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.089Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.089Z] # ever set during testing).
[2024-11-23T20:01:21.089Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.089Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.089Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] # params default might be backend specific.
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.089Z] else:
[2024-11-23T20:01:21.089Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2720>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_update_incorrect_type>
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def setUp(self):
[2024-11-23T20:01:21.089Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.089Z] > target.save()
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.089Z] self.save_base(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.089Z] updated = self._save_table(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.089Z] results = self._do_insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.089Z] return manager._insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.089Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.089Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.089Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.089Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.089Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.089Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2720>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z] _________ PKForeignKeyTests.test_foreign_key_update_with_invalid_null __________
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9b9970>
[2024-11-23T20:01:21.089Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9b9970>})
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.089Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.089Z] # ever set during testing).
[2024-11-23T20:01:21.089Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.089Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.089Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] # params default might be backend specific.
[2024-11-23T20:01:21.089Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.089Z] else:
[2024-11-23T20:01:21.089Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0710>
[2024-11-23T20:01:21.089Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.089Z] params = ('target-1',)
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.089Z] if params is None:
[2024-11-23T20:01:21.089Z] return super().execute(query)
[2024-11-23T20:01:21.089Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.089Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.089Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.089Z] > return super().execute(query, params)
[2024-11-23T20:01:21.089Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_update_with_invalid_null>
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] def setUp(self):
[2024-11-23T20:01:21.089Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.089Z] > target.save()
[2024-11-23T20:01:21.089Z]
[2024-11-23T20:01:21.089Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.089Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.089Z] self.save_base(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.089Z] updated = self._save_table(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.089Z] results = self._do_insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.089Z] return manager._insert(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.089Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.089Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.089Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.089Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.089Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.089Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.089Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.090Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0710>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z] ________________ PKForeignKeyTests.test_foreign_key_with_empty _________________
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9ba390>
[2024-11-23T20:01:21.090Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9ba390>})
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.090Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.090Z] # ever set during testing).
[2024-11-23T20:01:21.090Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.090Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.090Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] # params default might be backend specific.
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.090Z] else:
[2024-11-23T20:01:21.090Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_with_empty>
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def setUp(self):
[2024-11-23T20:01:21.090Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.090Z] > target.save()
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.090Z] self.save_base(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.090Z] updated = self._save_table(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.090Z] results = self._do_insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.090Z] return manager._insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.090Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.090Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.090Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.090Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.090Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.090Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z] _______________ PKForeignKeyTests.test_foreign_key_with_unsaved ________________
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea99f7d0>
[2024-11-23T20:01:21.090Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea99f7d0>})
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.090Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.090Z] # ever set during testing).
[2024-11-23T20:01:21.090Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.090Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.090Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] # params default might be backend specific.
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.090Z] else:
[2024-11-23T20:01:21.090Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2a80>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_with_unsaved>
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def setUp(self):
[2024-11-23T20:01:21.090Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.090Z] > target.save()
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.090Z] self.save_base(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.090Z] updated = self._save_table(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.090Z] results = self._do_insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.090Z] return manager._insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.090Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.090Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.090Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.090Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.090Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.090Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2a80>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z] _________ PKForeignKeyTests.test_queryset_size_with_Q_limited_choices __________
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea99c710>
[2024-11-23T20:01:21.090Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea99c710>})
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.090Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.090Z] # ever set during testing).
[2024-11-23T20:01:21.090Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.090Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.090Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] # params default might be backend specific.
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.090Z] else:
[2024-11-23T20:01:21.090Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0320>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_queryset_size_with_Q_limited_choices>
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def setUp(self):
[2024-11-23T20:01:21.090Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.090Z] > target.save()
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.090Z] self.save_base(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.090Z] updated = self._save_table(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.090Z] results = self._do_insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.090Z] return manager._insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.090Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.090Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.090Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.090Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.090Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.090Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0320>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z] __________ PKForeignKeyTests.test_queryset_size_with_limited_choices ___________
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea99d490>
[2024-11-23T20:01:21.090Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea99d490>})
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.090Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.090Z] # ever set during testing).
[2024-11-23T20:01:21.090Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.090Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.090Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] # params default might be backend specific.
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.090Z] else:
[2024-11-23T20:01:21.090Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3380>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_queryset_size_with_limited_choices>
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def setUp(self):
[2024-11-23T20:01:21.090Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.090Z] > target.save()
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.090Z] self.save_base(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.090Z] updated = self._save_table(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.090Z] results = self._do_insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.090Z] return manager._insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.090Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.090Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.090Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.090Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.090Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.090Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3380>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z] _________ PKForeignKeyTests.test_queryset_size_without_limited_choices _________
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea99d3d0>
[2024-11-23T20:01:21.090Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea99d3d0>})
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.090Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.090Z] # ever set during testing).
[2024-11-23T20:01:21.090Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.090Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.090Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] # params default might be backend specific.
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.090Z] else:
[2024-11-23T20:01:21.090Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0d40>
[2024-11-23T20:01:21.090Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.090Z] params = ('target-1',)
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.090Z] if params is None:
[2024-11-23T20:01:21.090Z] return super().execute(query)
[2024-11-23T20:01:21.090Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.090Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.090Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.090Z] > return super().execute(query, params)
[2024-11-23T20:01:21.090Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_queryset_size_without_limited_choices>
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] def setUp(self):
[2024-11-23T20:01:21.090Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.090Z] > target.save()
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.090Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.090Z] self.save_base(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.090Z] updated = self._save_table(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.090Z] results = self._do_insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.090Z] return manager._insert(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.090Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.090Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.090Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.090Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.090Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.090Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.090Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.090Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.090Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.090Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.090Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0d40>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z] ______________ PKForeignKeyTests.test_reverse_foreign_key_create _______________
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea99fef0>
[2024-11-23T20:01:21.091Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea99fef0>})
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.091Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.091Z] # ever set during testing).
[2024-11-23T20:01:21.091Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.091Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.091Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] # params default might be backend specific.
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.091Z] else:
[2024-11-23T20:01:21.091Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3a40>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_create>
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def setUp(self):
[2024-11-23T20:01:21.091Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.091Z] > target.save()
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.091Z] self.save_base(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.091Z] updated = self._save_table(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.091Z] results = self._do_insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.091Z] return manager._insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.091Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.091Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.091Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.091Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.091Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.091Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3a40>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z] _____________ PKForeignKeyTests.test_reverse_foreign_key_retrieve ______________
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea90cfb0>
[2024-11-23T20:01:21.091Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea90cfb0>})
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.091Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.091Z] # ever set during testing).
[2024-11-23T20:01:21.091Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.091Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.091Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] # params default might be backend specific.
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.091Z] else:
[2024-11-23T20:01:21.091Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3800>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_retrieve>
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def setUp(self):
[2024-11-23T20:01:21.091Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.091Z] > target.save()
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.091Z] self.save_base(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.091Z] updated = self._save_table(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.091Z] results = self._do_insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.091Z] return manager._insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.091Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.091Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.091Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.091Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.091Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.091Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3800>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z] _____ PKForeignKeyTests.test_reverse_foreign_key_retrieve_prefetch_related _____
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea90da90>
[2024-11-23T20:01:21.091Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea90da90>})
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.091Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.091Z] # ever set during testing).
[2024-11-23T20:01:21.091Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.091Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.091Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] # params default might be backend specific.
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.091Z] else:
[2024-11-23T20:01:21.091Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0f80>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_retrieve_prefetch_related>
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def setUp(self):
[2024-11-23T20:01:21.091Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.091Z] > target.save()
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.091Z] self.save_base(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.091Z] updated = self._save_table(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.091Z] results = self._do_insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.091Z] return manager._insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.091Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.091Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.091Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.091Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.091Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.091Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0f80>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z] ______________ PKForeignKeyTests.test_reverse_foreign_key_update _______________
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea90dcd0>
[2024-11-23T20:01:21.091Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea90dcd0>})
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.091Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.091Z] # ever set during testing).
[2024-11-23T20:01:21.091Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.091Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.091Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] # params default might be backend specific.
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.091Z] else:
[2024-11-23T20:01:21.091Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0b90>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_update>
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def setUp(self):
[2024-11-23T20:01:21.091Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.091Z] > target.save()
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] tests/test_relations_pk.py:225:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.091Z] self.save_base(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.091Z] updated = self._save_table(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.091Z] results = self._do_insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.091Z] return manager._insert(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.091Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.091Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.091Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.091Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.091Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.091Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0b90>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z] _____________ PKRelationTests.test_relation_field_callable_source ______________
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea90ea50>
[2024-11-23T20:01:21.091Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea90ea50>})
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.091Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.091Z] # ever set during testing).
[2024-11-23T20:01:21.091Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.091Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.091Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.091Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] # params default might be backend specific.
[2024-11-23T20:01:21.091Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.091Z] else:
[2024-11-23T20:01:21.091Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3020>
[2024-11-23T20:01:21.091Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.091Z] params = ('target-1',)
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.091Z] if params is None:
[2024-11-23T20:01:21.091Z] return super().execute(query)
[2024-11-23T20:01:21.091Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.091Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.091Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.091Z] > return super().execute(query, params)
[2024-11-23T20:01:21.091Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] self = <tests.test_relations_pk.PKRelationTests testMethod=test_relation_field_callable_source>
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] def setUp(self):
[2024-11-23T20:01:21.091Z] > self.target = ForeignKeyTarget.objects.create(name='target-1')
[2024-11-23T20:01:21.091Z]
[2024-11-23T20:01:21.091Z] tests/test_relations_pk.py:414:
[2024-11-23T20:01:21.091Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.091Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.091Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.091Z] self.save_base(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.091Z] updated = self._save_table(
[2024-11-23T20:01:21.091Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.092Z] results = self._do_insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.092Z] return manager._insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.092Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.092Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.092Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.092Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.092Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.092Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3020>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z] _____________ PKRelationTests.test_relation_field_property_source ______________
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1dc650>
[2024-11-23T20:01:21.092Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1dc650>})
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.092Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.092Z] # ever set during testing).
[2024-11-23T20:01:21.092Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.092Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.092Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] # params default might be backend specific.
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.092Z] else:
[2024-11-23T20:01:21.092Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3ad0>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <tests.test_relations_pk.PKRelationTests testMethod=test_relation_field_property_source>
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def setUp(self):
[2024-11-23T20:01:21.092Z] > self.target = ForeignKeyTarget.objects.create(name='target-1')
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] tests/test_relations_pk.py:414:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.092Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.092Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.092Z] self.save_base(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.092Z] updated = self._save_table(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.092Z] results = self._do_insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.092Z] return manager._insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.092Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.092Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.092Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.092Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.092Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.092Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3ad0>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z] ___ PKNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring ___
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9ba270>
[2024-11-23T20:01:21.092Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9ba270>})
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.092Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.092Z] # ever set during testing).
[2024-11-23T20:01:21.092Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.092Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.092Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] # params default might be backend specific.
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.092Z] else:
[2024-11-23T20:01:21.092Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93bbf0>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_emptystring>
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def setUp(self):
[2024-11-23T20:01:21.092Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.092Z] > target.save()
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.092Z] self.save_base(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.092Z] updated = self._save_table(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.092Z] results = self._do_insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.092Z] return manager._insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.092Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.092Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.092Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.092Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.092Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.092Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93bbf0>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z] ______ PKNullableForeignKeyTests.test_foreign_key_create_with_valid_null _______
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1dd370>
[2024-11-23T20:01:21.092Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1dd370>})
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.092Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.092Z] # ever set during testing).
[2024-11-23T20:01:21.092Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.092Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.092Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] # params default might be backend specific.
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.092Z] else:
[2024-11-23T20:01:21.092Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a720>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_null>
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def setUp(self):
[2024-11-23T20:01:21.092Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.092Z] > target.save()
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.092Z] self.save_base(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.092Z] updated = self._save_table(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.092Z] results = self._do_insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.092Z] return manager._insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.092Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.092Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.092Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.092Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.092Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.092Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a720>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z] ________ PKNullableForeignKeyTests.test_foreign_key_retrieve_with_null _________
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1de0f0>
[2024-11-23T20:01:21.092Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1de0f0>})
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.092Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.092Z] # ever set during testing).
[2024-11-23T20:01:21.092Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.092Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.092Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] # params default might be backend specific.
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.092Z] else:
[2024-11-23T20:01:21.092Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c16d0>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_retrieve_with_null>
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def setUp(self):
[2024-11-23T20:01:21.092Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.092Z] > target.save()
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.092Z] self.save_base(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.092Z] updated = self._save_table(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.092Z] results = self._do_insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.092Z] return manager._insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.092Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.092Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.092Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.092Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.092Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.092Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c16d0>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z] ___ PKNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring ___
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1ddeb0>
[2024-11-23T20:01:21.092Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1ddeb0>})
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.092Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.092Z] # ever set during testing).
[2024-11-23T20:01:21.092Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.092Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.092Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.092Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] # params default might be backend specific.
[2024-11-23T20:01:21.092Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.092Z] else:
[2024-11-23T20:01:21.092Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3f50>
[2024-11-23T20:01:21.092Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.092Z] params = ('target-1',)
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.092Z] if params is None:
[2024-11-23T20:01:21.092Z] return super().execute(query)
[2024-11-23T20:01:21.092Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.092Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.092Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.092Z] > return super().execute(query, params)
[2024-11-23T20:01:21.092Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_emptystring>
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] def setUp(self):
[2024-11-23T20:01:21.092Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.092Z] > target.save()
[2024-11-23T20:01:21.092Z]
[2024-11-23T20:01:21.092Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.092Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.092Z] self.save_base(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.092Z] updated = self._save_table(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.092Z] results = self._do_insert(
[2024-11-23T20:01:21.092Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.092Z] return manager._insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.093Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.093Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.093Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.093Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.093Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.093Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3f50>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z] ______ PKNullableForeignKeyTests.test_foreign_key_update_with_valid_null _______
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1dfd10>
[2024-11-23T20:01:21.093Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1dfd10>})
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.093Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.093Z] # ever set during testing).
[2024-11-23T20:01:21.093Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.093Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.093Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] # params default might be backend specific.
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.093Z] else:
[2024-11-23T20:01:21.093Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3d10>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_null>
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def setUp(self):
[2024-11-23T20:01:21.093Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.093Z] > target.save()
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.093Z] self.save_base(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.093Z] updated = self._save_table(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.093Z] results = self._do_insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.093Z] return manager._insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.093Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.093Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.093Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.093Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.093Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.093Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3d10>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z] ___ PKNullableForeignKeyTests.test_null_uuid_foreign_key_serializes_as_none ____
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1e98b0>
[2024-11-23T20:01:21.093Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1e98b0>})
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.093Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.093Z] # ever set during testing).
[2024-11-23T20:01:21.093Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.093Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.093Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] # params default might be backend specific.
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.093Z] else:
[2024-11-23T20:01:21.093Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_null_uuid_foreign_key_serializes_as_none>
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def setUp(self):
[2024-11-23T20:01:21.093Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.093Z] > target.save()
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.093Z] self.save_base(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.093Z] updated = self._save_table(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.093Z] results = self._do_insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.093Z] return manager._insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.093Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.093Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.093Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.093Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.093Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.093Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z] _ PKNullableForeignKeyTests.test_nullable_uuid_foreign_key_is_valid_when_none __
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1ea270>
[2024-11-23T20:01:21.093Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1ea270>})
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.093Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.093Z] # ever set during testing).
[2024-11-23T20:01:21.093Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.093Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.093Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] # params default might be backend specific.
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.093Z] else:
[2024-11-23T20:01:21.093Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0d40>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_nullable_uuid_foreign_key_is_valid_when_none>
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def setUp(self):
[2024-11-23T20:01:21.093Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.093Z] > target.save()
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] tests/test_relations_pk.py:442:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.093Z] self.save_base(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.093Z] updated = self._save_table(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.093Z] results = self._do_insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.093Z] return manager._insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.093Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.093Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.093Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.093Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.093Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.093Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c0d40>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z] _____ PKNullableOneToOneTests.test_reverse_foreign_key_retrieve_with_null ______
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1e9d90>
[2024-11-23T20:01:21.093Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1e9d90>})
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.093Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.093Z] # ever set during testing).
[2024-11-23T20:01:21.093Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.093Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.093Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] # params default might be backend specific.
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.093Z] else:
[2024-11-23T20:01:21.093Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939e20>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <tests.test_relations_pk.PKNullableOneToOneTests testMethod=test_reverse_foreign_key_retrieve_with_null>
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def setUp(self):
[2024-11-23T20:01:21.093Z] target = OneToOneTarget(name='target-1')
[2024-11-23T20:01:21.093Z] > target.save()
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] tests/test_relations_pk.py:558:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.093Z] self.save_base(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.093Z] updated = self._save_table(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.093Z] results = self._do_insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.093Z] return manager._insert(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.093Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.093Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.093Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.093Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.093Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.093Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea939e20>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z] ___________ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key ___________
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1e9c70>
[2024-11-23T20:01:21.093Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1e9c70>})
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.093Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.093Z] # ever set during testing).
[2024-11-23T20:01:21.093Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.093Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.093Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.093Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] # params default might be backend specific.
[2024-11-23T20:01:21.093Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.093Z] else:
[2024-11-23T20:01:21.093Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.093Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2060>
[2024-11-23T20:01:21.093Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.093Z] params = ('target-1',)
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.093Z] if params is None:
[2024-11-23T20:01:21.093Z] return super().execute(query)
[2024-11-23T20:01:21.093Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.093Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.093Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.093Z] > return super().execute(query, params)
[2024-11-23T20:01:21.093Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.093Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.093Z]
[2024-11-23T20:01:21.094Z] self = <tests.test_relations_pk.OneToOnePrimaryKeyTests testMethod=test_one_to_one_when_primary_key>
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def setUp(self):
[2024-11-23T20:01:21.094Z] # Given: Some target models already exist
[2024-11-23T20:01:21.094Z] self.target = target = OneToOneTarget(name='target-1')
[2024-11-23T20:01:21.094Z] > target.save()
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] tests/test_relations_pk.py:579:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.094Z] self.save_base(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.094Z] updated = self._save_table(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.094Z] results = self._do_insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.094Z] return manager._insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.094Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.094Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.094Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.094Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.094Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.094Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2060>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z] ___ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key_does_not_exist ____
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2bd190>
[2024-11-23T20:01:21.094Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2bd190>})
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.094Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.094Z] # ever set during testing).
[2024-11-23T20:01:21.094Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.094Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.094Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] # params default might be backend specific.
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.094Z] else:
[2024-11-23T20:01:21.094Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22c050>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <tests.test_relations_pk.OneToOnePrimaryKeyTests testMethod=test_one_to_one_when_primary_key_does_not_exist>
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def setUp(self):
[2024-11-23T20:01:21.094Z] # Given: Some target models already exist
[2024-11-23T20:01:21.094Z] self.target = target = OneToOneTarget(name='target-1')
[2024-11-23T20:01:21.094Z] > target.save()
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] tests/test_relations_pk.py:579:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.094Z] self.save_base(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.094Z] updated = self._save_table(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.094Z] results = self._do_insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.094Z] return manager._insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.094Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.094Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.094Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.094Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.094Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.094Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22c050>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z] ____ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key_no_duplicates ____
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2bc3b0>
[2024-11-23T20:01:21.094Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2bc3b0>})
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.094Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.094Z] # ever set during testing).
[2024-11-23T20:01:21.094Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.094Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.094Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] # params default might be backend specific.
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.094Z] else:
[2024-11-23T20:01:21.094Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22d370>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <tests.test_relations_pk.OneToOnePrimaryKeyTests testMethod=test_one_to_one_when_primary_key_no_duplicates>
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def setUp(self):
[2024-11-23T20:01:21.094Z] # Given: Some target models already exist
[2024-11-23T20:01:21.094Z] self.target = target = OneToOneTarget(name='target-1')
[2024-11-23T20:01:21.094Z] > target.save()
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] tests/test_relations_pk.py:579:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.094Z] self.save_base(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.094Z] updated = self._save_table(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.094Z] results = self._do_insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.094Z] return manager._insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.094Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.094Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.094Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.094Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.094Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.094Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22d370>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z] _________________ SlugForeignKeyTests.test_foreign_key_create __________________
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2bf590>
[2024-11-23T20:01:21.094Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2bf590>})
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.094Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.094Z] # ever set during testing).
[2024-11-23T20:01:21.094Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.094Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.094Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] # params default might be backend specific.
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.094Z] else:
[2024-11-23T20:01:21.094Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22c290>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_create>
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def setUp(self):
[2024-11-23T20:01:21.094Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.094Z] > target.save()
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.094Z] self.save_base(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.094Z] updated = self._save_table(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.094Z] results = self._do_insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.094Z] return manager._insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.094Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.094Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.094Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.094Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.094Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.094Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22c290>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z] ________________ SlugForeignKeyTests.test_foreign_key_retrieve _________________
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb29dfd0>
[2024-11-23T20:01:21.094Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb29dfd0>})
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.094Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.094Z] # ever set during testing).
[2024-11-23T20:01:21.094Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.094Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.094Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] # params default might be backend specific.
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.094Z] else:
[2024-11-23T20:01:21.094Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22c9e0>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_retrieve>
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def setUp(self):
[2024-11-23T20:01:21.094Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.094Z] > target.save()
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.094Z] self.save_base(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.094Z] updated = self._save_table(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.094Z] results = self._do_insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.094Z] return manager._insert(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.094Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.094Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.094Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.094Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.094Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.094Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22c9e0>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z] _________ SlugForeignKeyTests.test_foreign_key_retrieve_select_related _________
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb29c8f0>
[2024-11-23T20:01:21.094Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb29c8f0>})
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.094Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.094Z] # ever set during testing).
[2024-11-23T20:01:21.094Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.094Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.094Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.094Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] # params default might be backend specific.
[2024-11-23T20:01:21.094Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.094Z] else:
[2024-11-23T20:01:21.094Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.094Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22deb0>
[2024-11-23T20:01:21.094Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.094Z] params = ('target-1',)
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.094Z] if params is None:
[2024-11-23T20:01:21.094Z] return super().execute(query)
[2024-11-23T20:01:21.094Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.094Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.094Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.094Z] > return super().execute(query, params)
[2024-11-23T20:01:21.094Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.094Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_retrieve_select_related>
[2024-11-23T20:01:21.094Z]
[2024-11-23T20:01:21.095Z] def setUp(self):
[2024-11-23T20:01:21.095Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.095Z] > target.save()
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.095Z] self.save_base(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.095Z] updated = self._save_table(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.095Z] results = self._do_insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.095Z] return manager._insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.095Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.095Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.095Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.095Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.095Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.095Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22deb0>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z] _________________ SlugForeignKeyTests.test_foreign_key_update __________________
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb29c410>
[2024-11-23T20:01:21.095Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb29c410>})
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.095Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.095Z] # ever set during testing).
[2024-11-23T20:01:21.095Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.095Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.095Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] # params default might be backend specific.
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.095Z] else:
[2024-11-23T20:01:21.095Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22df40>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_update>
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def setUp(self):
[2024-11-23T20:01:21.095Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.095Z] > target.save()
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.095Z] self.save_base(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.095Z] updated = self._save_table(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.095Z] results = self._do_insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.095Z] return manager._insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.095Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.095Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.095Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.095Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.095Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.095Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22df40>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z] __________ SlugForeignKeyTests.test_foreign_key_update_incorrect_type __________
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb29d6d0>
[2024-11-23T20:01:21.095Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb29d6d0>})
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.095Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.095Z] # ever set during testing).
[2024-11-23T20:01:21.095Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.095Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.095Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] # params default might be backend specific.
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.095Z] else:
[2024-11-23T20:01:21.095Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e330>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_update_incorrect_type>
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def setUp(self):
[2024-11-23T20:01:21.095Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.095Z] > target.save()
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.095Z] self.save_base(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.095Z] updated = self._save_table(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.095Z] results = self._do_insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.095Z] return manager._insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.095Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.095Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.095Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.095Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.095Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.095Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e330>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z] ________ SlugForeignKeyTests.test_foreign_key_update_with_invalid_null _________
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb29e6f0>
[2024-11-23T20:01:21.095Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb29e6f0>})
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.095Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.095Z] # ever set during testing).
[2024-11-23T20:01:21.095Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.095Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.095Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] # params default might be backend specific.
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.095Z] else:
[2024-11-23T20:01:21.095Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e720>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_update_with_invalid_null>
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def setUp(self):
[2024-11-23T20:01:21.095Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.095Z] > target.save()
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.095Z] self.save_base(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.095Z] updated = self._save_table(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.095Z] results = self._do_insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.095Z] return manager._insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.095Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.095Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.095Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.095Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.095Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.095Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e720>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z] _____________ SlugForeignKeyTests.test_reverse_foreign_key_create ______________
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb28ccb0>
[2024-11-23T20:01:21.095Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb28ccb0>})
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.095Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.095Z] # ever set during testing).
[2024-11-23T20:01:21.095Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.095Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.095Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] # params default might be backend specific.
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.095Z] else:
[2024-11-23T20:01:21.095Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e450>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_create>
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def setUp(self):
[2024-11-23T20:01:21.095Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.095Z] > target.save()
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.095Z] self.save_base(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.095Z] updated = self._save_table(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.095Z] results = self._do_insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.095Z] return manager._insert(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.095Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.095Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.095Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.095Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.095Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.095Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e450>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] return super().execute(query)
[2024-11-23T20:01:21.095Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.095Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.095Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.095Z] > return super().execute(query, params)
[2024-11-23T20:01:21.095Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.095Z] ____________ SlugForeignKeyTests.test_reverse_foreign_key_retrieve _____________
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb28dc10>
[2024-11-23T20:01:21.095Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.095Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb28dc10>})
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.095Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.095Z] # ever set during testing).
[2024-11-23T20:01:21.095Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.095Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.095Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.095Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.095Z] if params is None:
[2024-11-23T20:01:21.095Z] # params default might be backend specific.
[2024-11-23T20:01:21.095Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.095Z] else:
[2024-11-23T20:01:21.095Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.095Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.095Z]
[2024-11-23T20:01:21.095Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22db50>
[2024-11-23T20:01:21.095Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.095Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_retrieve>
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def setUp(self):
[2024-11-23T20:01:21.096Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.096Z] > target.save()
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.096Z] self.save_base(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.096Z] updated = self._save_table(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.096Z] results = self._do_insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.096Z] return manager._insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.096Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.096Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.096Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.096Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.096Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.096Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22db50>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z] ____ SlugForeignKeyTests.test_reverse_foreign_key_retrieve_prefetch_related ____
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb28d9d0>
[2024-11-23T20:01:21.096Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb28d9d0>})
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.096Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.096Z] # ever set during testing).
[2024-11-23T20:01:21.096Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.096Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.096Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] # params default might be backend specific.
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.096Z] else:
[2024-11-23T20:01:21.096Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22df40>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_retrieve_prefetch_related>
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def setUp(self):
[2024-11-23T20:01:21.096Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.096Z] > target.save()
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.096Z] self.save_base(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.096Z] updated = self._save_table(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.096Z] results = self._do_insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.096Z] return manager._insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.096Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.096Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.096Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.096Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.096Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.096Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22df40>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z] _____________ SlugForeignKeyTests.test_reverse_foreign_key_update ______________
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb28f470>
[2024-11-23T20:01:21.096Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb28f470>})
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.096Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.096Z] # ever set during testing).
[2024-11-23T20:01:21.096Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.096Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.096Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] # params default might be backend specific.
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.096Z] else:
[2024-11-23T20:01:21.096Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22cef0>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_update>
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def setUp(self):
[2024-11-23T20:01:21.096Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.096Z] > target.save()
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] tests/test_relations_slug.py:48:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.096Z] self.save_base(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.096Z] updated = self._save_table(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.096Z] results = self._do_insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.096Z] return manager._insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.096Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.096Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.096Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.096Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.096Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.096Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22cef0>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z] __ SlugNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring __
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb26a210>
[2024-11-23T20:01:21.096Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb26a210>})
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.096Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.096Z] # ever set during testing).
[2024-11-23T20:01:21.096Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.096Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.096Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] # params default might be backend specific.
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.096Z] else:
[2024-11-23T20:01:21.096Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22f260>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_emptystring>
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def setUp(self):
[2024-11-23T20:01:21.096Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.096Z] > target.save()
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] tests/test_relations_slug.py:188:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.096Z] self.save_base(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.096Z] updated = self._save_table(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.096Z] results = self._do_insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.096Z] return manager._insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.096Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.096Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.096Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.096Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.096Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.096Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22f260>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z] _____ SlugNullableForeignKeyTests.test_foreign_key_create_with_valid_null ______
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb2698b0>
[2024-11-23T20:01:21.096Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb2698b0>})
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.096Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.096Z] # ever set during testing).
[2024-11-23T20:01:21.096Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.096Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.096Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] # params default might be backend specific.
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.096Z] else:
[2024-11-23T20:01:21.096Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e180>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_null>
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def setUp(self):
[2024-11-23T20:01:21.096Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.096Z] > target.save()
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] tests/test_relations_slug.py:188:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.096Z] self.save_base(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.096Z] updated = self._save_table(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.096Z] results = self._do_insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.096Z] return manager._insert(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.096Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.096Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.096Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.096Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.096Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.096Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e180>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.096Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.096Z] _______ SlugNullableForeignKeyTests.test_foreign_key_retrieve_with_null ________
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb1eae10>
[2024-11-23T20:01:21.096Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb1eae10>})
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.096Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.096Z] # ever set during testing).
[2024-11-23T20:01:21.096Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.096Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.096Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.096Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] # params default might be backend specific.
[2024-11-23T20:01:21.096Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.096Z] else:
[2024-11-23T20:01:21.096Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.096Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3ec0>
[2024-11-23T20:01:21.096Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.096Z] params = ('target-1',)
[2024-11-23T20:01:21.096Z]
[2024-11-23T20:01:21.096Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.096Z] if params is None:
[2024-11-23T20:01:21.096Z] return super().execute(query)
[2024-11-23T20:01:21.096Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.096Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.096Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.096Z] > return super().execute(query, params)
[2024-11-23T20:01:21.097Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_retrieve_with_null>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def setUp(self):
[2024-11-23T20:01:21.097Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.097Z] > target.save()
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_relations_slug.py:188:
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.097Z] self.save_base(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.097Z] updated = self._save_table(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.097Z] results = self._do_insert(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.097Z] return manager._insert(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.097Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.097Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.097Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.097Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.097Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.097Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.097Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.097Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3ec0>
[2024-11-23T20:01:21.097Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] return super().execute(query)
[2024-11-23T20:01:21.097Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.097Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.097Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.097Z] > return super().execute(query, params)
[2024-11-23T20:01:21.097Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.097Z] __ SlugNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring __
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb269550>
[2024-11-23T20:01:21.097Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb269550>})
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.097Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.097Z] # ever set during testing).
[2024-11-23T20:01:21.097Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.097Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.097Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.097Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] # params default might be backend specific.
[2024-11-23T20:01:21.097Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.097Z] else:
[2024-11-23T20:01:21.097Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a720>
[2024-11-23T20:01:21.097Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] return super().execute(query)
[2024-11-23T20:01:21.097Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.097Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.097Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.097Z] > return super().execute(query, params)
[2024-11-23T20:01:21.097Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_emptystring>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def setUp(self):
[2024-11-23T20:01:21.097Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.097Z] > target.save()
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_relations_slug.py:188:
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.097Z] self.save_base(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.097Z] updated = self._save_table(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.097Z] results = self._do_insert(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.097Z] return manager._insert(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.097Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.097Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.097Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.097Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.097Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.097Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.097Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.097Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea93a720>
[2024-11-23T20:01:21.097Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] return super().execute(query)
[2024-11-23T20:01:21.097Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.097Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.097Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.097Z] > return super().execute(query, params)
[2024-11-23T20:01:21.097Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.097Z] _____ SlugNullableForeignKeyTests.test_foreign_key_update_with_valid_null ______
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eb268e90>
[2024-11-23T20:01:21.097Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eb268e90>})
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.097Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.097Z] # ever set during testing).
[2024-11-23T20:01:21.097Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.097Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.097Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.097Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] # params default might be backend specific.
[2024-11-23T20:01:21.097Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.097Z] else:
[2024-11-23T20:01:21.097Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c1490>
[2024-11-23T20:01:21.097Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] return super().execute(query)
[2024-11-23T20:01:21.097Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.097Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.097Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.097Z] > return super().execute(query, params)
[2024-11-23T20:01:21.097Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_null>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def setUp(self):
[2024-11-23T20:01:21.097Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T20:01:21.097Z] > target.save()
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_relations_slug.py:188:
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.097Z] self.save_base(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.097Z] updated = self._save_table(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.097Z] results = self._do_insert(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.097Z] return manager._insert(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.097Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.097Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.097Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.097Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.097Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.097Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.097Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.097Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c1490>
[2024-11-23T20:01:21.097Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T20:01:21.097Z] params = ('target-1',)
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.097Z] if params is None:
[2024-11-23T20:01:21.097Z] return super().execute(query)
[2024-11-23T20:01:21.097Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.097Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.097Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.097Z] > return super().execute(query, params)
[2024-11-23T20:01:21.097Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.097Z] _ RendererEndToEndTests.test_204_no_content_responses_have_no_content_type_set _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_204_no_content_responses_have_no_content_type_set>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_204_no_content_responses_have_no_content_type_set(self):
[2024-11-23T20:01:21.097Z] """
[2024-11-23T20:01:21.097Z] Regression test for #1196
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] https://github.com/encode/django-rest-framework/issues/1196
[2024-11-23T20:01:21.097Z] """
[2024-11-23T20:01:21.097Z] resp = self.client.get('/empty')
[2024-11-23T20:01:21.097Z] > self.assertEqual(resp.get('Content-Type', None), None)
[2024-11-23T20:01:21.097Z] E AssertionError: 'text/html; charset=utf-8' != None
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_renderers.py:249: AssertionError
[2024-11-23T20:01:21.097Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.097Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] Traceback (most recent call last):
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.097Z] response = get_response(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.097Z] response = self.process_request(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.097Z] host = request.get_host()
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.097Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.097Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] WARNING django.request:log.py:248 Bad Request: /empty
[2024-11-23T20:01:21.097Z] _________ RendererEndToEndTests.test_contains_headers_of_api_response __________
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_contains_headers_of_api_response>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_contains_headers_of_api_response(self):
[2024-11-23T20:01:21.097Z] """
[2024-11-23T20:01:21.097Z] Issue #1437
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] Test we display the headers of the API response and not those from the
[2024-11-23T20:01:21.097Z] HTML response
[2024-11-23T20:01:21.097Z] """
[2024-11-23T20:01:21.097Z] resp = self.client.get('/html1')
[2024-11-23T20:01:21.097Z] > self.assertContains(resp, '>GET, HEAD, OPTIONS<')
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_renderers.py:260:
[2024-11-23T20:01:21.097Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:609: in assertContains
[2024-11-23T20:01:21.097Z] text_repr, real_count, msg_prefix, content_repr = self._assert_contains(
[2024-11-23T20:01:21.097Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:571: in _assert_contains
[2024-11-23T20:01:21.097Z] self.assertEqual(
[2024-11-23T20:01:21.097Z] E AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200)
[2024-11-23T20:01:21.097Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.097Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] Traceback (most recent call last):
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.097Z] response = get_response(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.097Z] response = self.process_request(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.097Z] host = request.get_host()
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.097Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.097Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] WARNING django.request:log.py:248 Bad Request: /html1
[2024-11-23T20:01:21.097Z] ________ RendererEndToEndTests.test_default_renderer_serializes_content ________
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_default_renderer_serializes_content>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_default_renderer_serializes_content(self):
[2024-11-23T20:01:21.097Z] """If the Accept header is not set the default renderer should serialize the response."""
[2024-11-23T20:01:21.097Z] resp = self.client.get('/')
[2024-11-23T20:01:21.097Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.097Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.097Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.097Z] E + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_renderers.py:164: AssertionError
[2024-11-23T20:01:21.097Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.097Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] Traceback (most recent call last):
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.097Z] response = get_response(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.097Z] response = self.process_request(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.097Z] host = request.get_host()
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.097Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.097Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.097Z] _ RendererEndToEndTests.test_default_renderer_serializes_content_on_accept_any _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_default_renderer_serializes_content_on_accept_any>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_default_renderer_serializes_content_on_accept_any(self):
[2024-11-23T20:01:21.097Z] """If the Accept header is set to */* the default renderer should serialize the response."""
[2024-11-23T20:01:21.097Z] resp = self.client.get('/', HTTP_ACCEPT='*/*')
[2024-11-23T20:01:21.097Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.097Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.097Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.097Z] E + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_renderers.py:178: AssertionError
[2024-11-23T20:01:21.097Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.097Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] Traceback (most recent call last):
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.097Z] response = get_response(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.097Z] response = self.process_request(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.097Z] host = request.get_host()
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.097Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.097Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.097Z] _________ RendererEndToEndTests.test_head_method_serializes_no_content _________
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_head_method_serializes_no_content>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_head_method_serializes_no_content(self):
[2024-11-23T20:01:21.097Z] """No response must be included in HEAD requests."""
[2024-11-23T20:01:21.097Z] resp = self.client.head('/')
[2024-11-23T20:01:21.097Z] > self.assertEqual(resp.status_code, DUMMYSTATUS)
[2024-11-23T20:01:21.097Z] E AssertionError: 400 != 200
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_renderers.py:171: AssertionError
[2024-11-23T20:01:21.097Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.097Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] Traceback (most recent call last):
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.097Z] response = get_response(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.097Z] response = self.process_request(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.097Z] host = request.get_host()
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.097Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.097Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.097Z] _ RendererEndToEndTests.test_specified_renderer_is_used_on_format_query_with_matching_accept _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_is_used_on_format_query_with_matching_accept>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_specified_renderer_is_used_on_format_query_with_matching_accept(self):
[2024-11-23T20:01:21.097Z] """If both a 'format' query and a matching Accept header specified,
[2024-11-23T20:01:21.097Z] the renderer with the matching format attribute should serialize the response."""
[2024-11-23T20:01:21.097Z] param = '?%s=%s' % (
[2024-11-23T20:01:21.097Z] api_settings.URL_FORMAT_OVERRIDE,
[2024-11-23T20:01:21.097Z] RendererB.format
[2024-11-23T20:01:21.097Z] )
[2024-11-23T20:01:21.097Z] resp = self.client.get('/' + param,
[2024-11-23T20:01:21.097Z] HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T20:01:21.097Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.097Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.097Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.097Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] tests/test_renderers.py:232: AssertionError
[2024-11-23T20:01:21.097Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.097Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] Traceback (most recent call last):
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.097Z] response = get_response(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.097Z] response = self.process_request(request)
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.097Z] host = request.get_host()
[2024-11-23T20:01:21.097Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.097Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.097Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.097Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.097Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_default_case _
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_default_case>
[2024-11-23T20:01:21.097Z]
[2024-11-23T20:01:21.097Z] def test_specified_renderer_serializes_content_default_case(self):
[2024-11-23T20:01:21.097Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T20:01:21.097Z] (In this case we check that works for the default renderer)"""
[2024-11-23T20:01:21.097Z] resp = self.client.get('/', HTTP_ACCEPT=RendererA.media_type)
[2024-11-23T20:01:21.097Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.098Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.098Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.098Z] E + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:186: AssertionError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.098Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_non_default_case _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_non_default_case>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_specified_renderer_serializes_content_non_default_case(self):
[2024-11-23T20:01:21.098Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T20:01:21.098Z] (In this case we check that works for a non-default renderer)"""
[2024-11-23T20:01:21.098Z] resp = self.client.get('/', HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T20:01:21.098Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.098Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.098Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.098Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:194: AssertionError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.098Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_on_format_kwargs _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_on_format_kwargs>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_specified_renderer_serializes_content_on_format_kwargs(self):
[2024-11-23T20:01:21.098Z] """If a 'format' keyword arg is specified, the renderer with the matching
[2024-11-23T20:01:21.098Z] format attribute should serialize the response."""
[2024-11-23T20:01:21.098Z] resp = self.client.get('/something.formatb')
[2024-11-23T20:01:21.098Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.098Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.098Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.098Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:219: AssertionError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /something.formatb
[2024-11-23T20:01:21.098Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_on_format_query _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_on_format_query>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_specified_renderer_serializes_content_on_format_query(self):
[2024-11-23T20:01:21.098Z] """If a 'format' query is specified, the renderer with the matching
[2024-11-23T20:01:21.098Z] format attribute should serialize the response."""
[2024-11-23T20:01:21.098Z] param = '?%s=%s' % (
[2024-11-23T20:01:21.098Z] api_settings.URL_FORMAT_OVERRIDE,
[2024-11-23T20:01:21.098Z] RendererB.format
[2024-11-23T20:01:21.098Z] )
[2024-11-23T20:01:21.098Z] resp = self.client.get('/' + param)
[2024-11-23T20:01:21.098Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.098Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.098Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.098Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:211: AssertionError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.098Z] _ RendererEndToEndTests.test_unsatisfiable_accept_header_on_request_returns_406_status _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_unsatisfiable_accept_header_on_request_returns_406_status>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
[2024-11-23T20:01:21.098Z] """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
[2024-11-23T20:01:21.098Z] resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
[2024-11-23T20:01:21.098Z] > self.assertEqual(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)
[2024-11-23T20:01:21.098Z] E AssertionError: 400 != 406
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:201: AssertionError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.098Z] ________________ JSONRendererTests.test_render_queryset_values _________________
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eab8e690>
[2024-11-23T20:01:21.098Z] sql = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (%s) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T20:01:21.098Z] params = ('dummy',)
[2024-11-23T20:01:21.098Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eab8e690>})
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.098Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.098Z] # ever set during testing).
[2024-11-23T20:01:21.098Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.098Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.098Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.098Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.098Z] if params is None:
[2024-11-23T20:01:21.098Z] # params default might be backend specific.
[2024-11-23T20:01:21.098Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.098Z] else:
[2024-11-23T20:01:21.098Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e0f0>
[2024-11-23T20:01:21.098Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T20:01:21.098Z] params = ('dummy',)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.098Z] if params is None:
[2024-11-23T20:01:21.098Z] return super().execute(query)
[2024-11-23T20:01:21.098Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.098Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.098Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.098Z] > return super().execute(query, params)
[2024-11-23T20:01:21.098Z] E sqlite3.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.JSONRendererTests testMethod=test_render_queryset_values>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_render_queryset_values(self):
[2024-11-23T20:01:21.098Z] > o = DummyTestModel.objects.create(name='dummy')
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:302:
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.098Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.098Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.098Z] self.save_base(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.098Z] updated = self._save_table(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.098Z] results = self._do_insert(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.098Z] return manager._insert(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.098Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.098Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.098Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.098Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.098Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.098Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.098Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.098Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e0f0>
[2024-11-23T20:01:21.098Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T20:01:21.098Z] params = ('dummy',)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.098Z] if params is None:
[2024-11-23T20:01:21.098Z] return super().execute(query)
[2024-11-23T20:01:21.098Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.098Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.098Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.098Z] > return super().execute(query, params)
[2024-11-23T20:01:21.098Z] E django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.098Z] ______________ JSONRendererTests.test_render_queryset_values_list ______________
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eab8f050>
[2024-11-23T20:01:21.098Z] sql = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (%s) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T20:01:21.098Z] params = ('dummy',)
[2024-11-23T20:01:21.098Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eab8f050>})
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.098Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.098Z] # ever set during testing).
[2024-11-23T20:01:21.098Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.098Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.098Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.098Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.098Z] if params is None:
[2024-11-23T20:01:21.098Z] # params default might be backend specific.
[2024-11-23T20:01:21.098Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.098Z] else:
[2024-11-23T20:01:21.098Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22db50>
[2024-11-23T20:01:21.098Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T20:01:21.098Z] params = ('dummy',)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.098Z] if params is None:
[2024-11-23T20:01:21.098Z] return super().execute(query)
[2024-11-23T20:01:21.098Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.098Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.098Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.098Z] > return super().execute(query, params)
[2024-11-23T20:01:21.098Z] E sqlite3.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.JSONRendererTests testMethod=test_render_queryset_values_list>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_render_queryset_values_list(self):
[2024-11-23T20:01:21.098Z] > o = DummyTestModel.objects.create(name='dummy')
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:309:
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.098Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.098Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.098Z] self.save_base(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.098Z] updated = self._save_table(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.098Z] results = self._do_insert(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.098Z] return manager._insert(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.098Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.098Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.098Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.098Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.098Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.098Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.098Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.098Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22db50>
[2024-11-23T20:01:21.098Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T20:01:21.098Z] params = ('dummy',)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.098Z] if params is None:
[2024-11-23T20:01:21.098Z] return super().execute(query)
[2024-11-23T20:01:21.098Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.098Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.098Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.098Z] > return super().execute(query, params)
[2024-11-23T20:01:21.098Z] E django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.098Z] _______________________ CacheRenderTest.test_get_caching _______________________
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.CacheRenderTest testMethod=test_get_caching>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_get_caching(self):
[2024-11-23T20:01:21.098Z] """
[2024-11-23T20:01:21.098Z] Test caching of GET requests
[2024-11-23T20:01:21.098Z] """
[2024-11-23T20:01:21.098Z] response = self.client.get('/cache')
[2024-11-23T20:01:21.098Z] > cache.set('key', response)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:449:
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.core.cache.backends.locmem.LocMemCache object at 0x7176ebfae120>
[2024-11-23T20:01:21.098Z] key = ':1:key'
[2024-11-23T20:01:21.098Z] value = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">
[2024-11-23T20:01:21.098Z] timeout = <object object at 0x7176ef2a4f20>, version = None
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None):
[2024-11-23T20:01:21.098Z] key = self.make_and_validate_key(key, version=version)
[2024-11-23T20:01:21.098Z] > pickled = pickle.dumps(value, self.pickle_protocol)
[2024-11-23T20:01:21.098Z] E AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/core/cache/backends/locmem.py:53: AttributeError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /cache
[2024-11-23T20:01:21.098Z] ______________________ CacheRenderTest.test_head_caching _______________________
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.CacheRenderTest testMethod=test_head_caching>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_head_caching(self):
[2024-11-23T20:01:21.098Z] """
[2024-11-23T20:01:21.098Z] Test caching of HEAD requests
[2024-11-23T20:01:21.098Z] """
[2024-11-23T20:01:21.098Z] response = self.client.head('/cache')
[2024-11-23T20:01:21.098Z] > cache.set('key', response)
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:438:
[2024-11-23T20:01:21.098Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <django.core.cache.backends.locmem.LocMemCache object at 0x7176ebfae120>
[2024-11-23T20:01:21.098Z] key = ':1:key'
[2024-11-23T20:01:21.098Z] value = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">
[2024-11-23T20:01:21.098Z] timeout = <object object at 0x7176ef2a4f20>, version = None
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None):
[2024-11-23T20:01:21.098Z] key = self.make_and_validate_key(key, version=version)
[2024-11-23T20:01:21.098Z] > pickled = pickle.dumps(value, self.pickle_protocol)
[2024-11-23T20:01:21.098Z] E AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] /usr/lib/python3.13/site-packages/django/core/cache/backends/locmem.py:53: AttributeError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /cache
[2024-11-23T20:01:21.098Z] ____________ BrowsableAPIRendererTests.test_extra_actions_dropdown _____________
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_renderers.BrowsableAPIRendererTests testMethod=test_extra_actions_dropdown>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_extra_actions_dropdown(self):
[2024-11-23T20:01:21.098Z] resp = self.client.get('/api/examples/', HTTP_ACCEPT='text/html')
[2024-11-23T20:01:21.098Z] > assert 'id="extra-actions-menu"' in resp.content.decode()
[2024-11-23T20:01:21.098Z] 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-23T20:01:21.098Z] 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 0x7176eab21630>()
[2024-11-23T20:01:21.098Z] E + where <built-in method decode of bytes object at 0x7176eab21630> = 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-23T20:01:21.098Z] 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-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] tests/test_renderers.py:718: AssertionError
[2024-11-23T20:01:21.098Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.098Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] Traceback (most recent call last):
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.098Z] response = get_response(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.098Z] response = self.process_request(request)
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.098Z] host = request.get_host()
[2024-11-23T20:01:21.098Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.098Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.098Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.098Z] WARNING django.request:log.py:248 Bad Request: /api/examples/
[2024-11-23T20:01:21.098Z] ____________ FileUploadTests.test_fileuploads_closed_at_request_end ____________
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] self = <tests.test_request.FileUploadTests testMethod=test_fileuploads_closed_at_request_end>
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] def test_fileuploads_closed_at_request_end(self):
[2024-11-23T20:01:21.098Z] with tempfile.NamedTemporaryFile() as f:
[2024-11-23T20:01:21.098Z] response = self.client.post('/upload/', {'file': f})
[2024-11-23T20:01:21.098Z]
[2024-11-23T20:01:21.098Z] # sanity check that file was processed
[2024-11-23T20:01:21.099Z] > assert len(response.data) == 1
[2024-11-23T20:01:21.099Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] tests/test_request.py:174: AttributeError
[2024-11-23T20:01:21.099Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.099Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.099Z] Traceback (most recent call last):
[2024-11-23T20:01:21.099Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.099Z] response = get_response(request)
[2024-11-23T20:01:21.099Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.099Z] response = self.process_request(request)
[2024-11-23T20:01:21.099Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.099Z] host = request.get_host()
[2024-11-23T20:01:21.099Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.099Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.099Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.099Z] WARNING django.request:log.py:248 Bad Request: /upload/
[2024-11-23T20:01:21.099Z] _ TestContentParsingWithAuthentication.test_user_logged_in_authentication_has_POST_when_not_logged_in _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eab0be30>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$jvfO1e072ASyFSpi1kXTZ5$ad71b977def88e592148ed8b36237aa9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.099Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eab0be30>})
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.099Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.099Z] # ever set during testing).
[2024-11-23T20:01:21.099Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.099Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.099Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] # params default might be backend specific.
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.099Z] else:
[2024-11-23T20:01:21.099Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb49e0>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$jvfO1e072ASyFSpi1kXTZ5$ad71b977def88e592148ed8b36237aa9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <tests.test_request.TestContentParsingWithAuthentication testMethod=test_user_logged_in_authentication_has_POST_when_not_logged_in>
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def setUp(self):
[2024-11-23T20:01:21.099Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:21.099Z] self.username = 'john'
[2024-11-23T20:01:21.099Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T20:01:21.099Z] self.password = 'password'
[2024-11-23T20:01:21.099Z] > self.user = User.objects.create_user(self.username, self.email, self.password)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] tests/test_request.py:187:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.099Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.099Z] user.save(using=self._db)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.099Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.099Z] self.save_base(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.099Z] updated = self._save_table(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.099Z] results = self._do_insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.099Z] return manager._insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.099Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.099Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.099Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.099Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.099Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.099Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb49e0>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$jvfO1e072ASyFSpi1kXTZ5$ad71b977def88e592148ed8b36237aa9', None, False, 'john', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z] ____ TestUserSetter.test_calling_user_fails_when_attribute_error_is_raised _____
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaafd430>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$BLA2j5sppZWzjFHx60IEeh$09a17d08256c10ecce8085abd340601a', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaafd430>})
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.099Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.099Z] # ever set during testing).
[2024-11-23T20:01:21.099Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.099Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.099Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] # params default might be backend specific.
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.099Z] else:
[2024-11-23T20:01:21.099Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb63c0>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$BLA2j5sppZWzjFHx60IEeh$09a17d08256c10ecce8085abd340601a', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <tests.test_request.TestUserSetter testMethod=test_calling_user_fails_when_attribute_error_is_raised>
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def setUp(self):
[2024-11-23T20:01:21.099Z] # Pass request object through session middleware so session is
[2024-11-23T20:01:21.099Z] # available to login and logout functions
[2024-11-23T20:01:21.099Z] self.wrapped_request = factory.get('/')
[2024-11-23T20:01:21.099Z] self.request = Request(self.wrapped_request)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T20:01:21.099Z] return None
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.099Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] tests/test_request.py:217:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.099Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.099Z] user.save(using=self._db)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.099Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.099Z] self.save_base(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.099Z] updated = self._save_table(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.099Z] results = self._do_insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.099Z] return manager._insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.099Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.099Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.099Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.099Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.099Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.099Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb63c0>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$BLA2j5sppZWzjFHx60IEeh$09a17d08256c10ecce8085abd340601a', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z] _________ TestUserSetter.test_logged_in_user_is_set_on_wrapped_request _________
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaafd910>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$kQbh5G75mw5pZPPkHr4Fdn$5ec14a8bdbe6254015c80d7c877d3943', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaafd910>})
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.099Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.099Z] # ever set during testing).
[2024-11-23T20:01:21.099Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.099Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.099Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] # params default might be backend specific.
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.099Z] else:
[2024-11-23T20:01:21.099Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22cef0>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$kQbh5G75mw5pZPPkHr4Fdn$5ec14a8bdbe6254015c80d7c877d3943', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <tests.test_request.TestUserSetter testMethod=test_logged_in_user_is_set_on_wrapped_request>
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def setUp(self):
[2024-11-23T20:01:21.099Z] # Pass request object through session middleware so session is
[2024-11-23T20:01:21.099Z] # available to login and logout functions
[2024-11-23T20:01:21.099Z] self.wrapped_request = factory.get('/')
[2024-11-23T20:01:21.099Z] self.request = Request(self.wrapped_request)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T20:01:21.099Z] return None
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.099Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] tests/test_request.py:217:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.099Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.099Z] user.save(using=self._db)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.099Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.099Z] self.save_base(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.099Z] updated = self._save_table(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.099Z] results = self._do_insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.099Z] return manager._insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.099Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.099Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.099Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.099Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.099Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.099Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22cef0>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$kQbh5G75mw5pZPPkHr4Fdn$5ec14a8bdbe6254015c80d7c877d3943', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z] _____________________ TestUserSetter.test_user_can_be_set ______________________
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaafda30>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$fvyC2Rg4BgruQ1Y64GwGWv$1f68102d9f4e04cf07456b0c9d11a1d9', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaafda30>})
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.099Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.099Z] # ever set during testing).
[2024-11-23T20:01:21.099Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.099Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.099Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.099Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] # params default might be backend specific.
[2024-11-23T20:01:21.099Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.099Z] else:
[2024-11-23T20:01:21.099Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb6180>
[2024-11-23T20:01:21.099Z] 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-23T20:01:21.099Z] params = ('md5$fvyC2Rg4BgruQ1Y64GwGWv$1f68102d9f4e04cf07456b0c9d11a1d9', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.099Z] if params is None:
[2024-11-23T20:01:21.099Z] return super().execute(query)
[2024-11-23T20:01:21.099Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.099Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.099Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.099Z] > return super().execute(query, params)
[2024-11-23T20:01:21.099Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] self = <tests.test_request.TestUserSetter testMethod=test_user_can_be_set>
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def setUp(self):
[2024-11-23T20:01:21.099Z] # Pass request object through session middleware so session is
[2024-11-23T20:01:21.099Z] # available to login and logout functions
[2024-11-23T20:01:21.099Z] self.wrapped_request = factory.get('/')
[2024-11-23T20:01:21.099Z] self.request = Request(self.wrapped_request)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T20:01:21.099Z] return None
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.099Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T20:01:21.099Z]
[2024-11-23T20:01:21.099Z] tests/test_request.py:217:
[2024-11-23T20:01:21.099Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.099Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.099Z] user.save(using=self._db)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.099Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.099Z] self.save_base(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.099Z] updated = self._save_table(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.099Z] results = self._do_insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.099Z] return manager._insert(
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.099Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.099Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.099Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.099Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.100Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.100Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.100Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.100Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.100Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb6180>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$fvyC2Rg4BgruQ1Y64GwGWv$1f68102d9f4e04cf07456b0c9d11a1d9', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] return super().execute(query)
[2024-11-23T20:01:21.100Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.100Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.100Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.100Z] > return super().execute(query, params)
[2024-11-23T20:01:21.100Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.100Z] ______________________ TestUserSetter.test_user_can_login ______________________
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaafec90>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$6uB1R1EO2ApUGZbX79atsL$4cac4fe842c6e012e7936266732f392c', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaafec90>})
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.100Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.100Z] # ever set during testing).
[2024-11-23T20:01:21.100Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.100Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.100Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.100Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] # params default might be backend specific.
[2024-11-23T20:01:21.100Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.100Z] else:
[2024-11-23T20:01:21.100Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7410>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$6uB1R1EO2ApUGZbX79atsL$4cac4fe842c6e012e7936266732f392c', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] return super().execute(query)
[2024-11-23T20:01:21.100Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.100Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.100Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.100Z] > return super().execute(query, params)
[2024-11-23T20:01:21.100Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_request.TestUserSetter testMethod=test_user_can_login>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def setUp(self):
[2024-11-23T20:01:21.100Z] # Pass request object through session middleware so session is
[2024-11-23T20:01:21.100Z] # available to login and logout functions
[2024-11-23T20:01:21.100Z] self.wrapped_request = factory.get('/')
[2024-11-23T20:01:21.100Z] self.request = Request(self.wrapped_request)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T20:01:21.100Z] return None
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.100Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_request.py:217:
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.100Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.100Z] user.save(using=self._db)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.100Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.100Z] self.save_base(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.100Z] updated = self._save_table(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.100Z] results = self._do_insert(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.100Z] return manager._insert(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.100Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.100Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.100Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.100Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.100Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.100Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.100Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.100Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7410>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$6uB1R1EO2ApUGZbX79atsL$4cac4fe842c6e012e7936266732f392c', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] return super().execute(query)
[2024-11-23T20:01:21.100Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.100Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.100Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.100Z] > return super().execute(query, params)
[2024-11-23T20:01:21.100Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.100Z] _____________________ TestUserSetter.test_user_can_logout ______________________
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eab4d190>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$HXr0neSx0O7wa204IHFAcM$6380860f2c896719a88c89248e756cea', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eab4d190>})
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.100Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.100Z] # ever set during testing).
[2024-11-23T20:01:21.100Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.100Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.100Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.100Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] # params default might be backend specific.
[2024-11-23T20:01:21.100Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.100Z] else:
[2024-11-23T20:01:21.100Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7650>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$HXr0neSx0O7wa204IHFAcM$6380860f2c896719a88c89248e756cea', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] return super().execute(query)
[2024-11-23T20:01:21.100Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.100Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.100Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.100Z] > return super().execute(query, params)
[2024-11-23T20:01:21.100Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_request.TestUserSetter testMethod=test_user_can_logout>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def setUp(self):
[2024-11-23T20:01:21.100Z] # Pass request object through session middleware so session is
[2024-11-23T20:01:21.100Z] # available to login and logout functions
[2024-11-23T20:01:21.100Z] self.wrapped_request = factory.get('/')
[2024-11-23T20:01:21.100Z] self.request = Request(self.wrapped_request)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T20:01:21.100Z] return None
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.100Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_request.py:217:
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.100Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.100Z] user.save(using=self._db)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.100Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.100Z] self.save_base(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.100Z] updated = self._save_table(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.100Z] results = self._do_insert(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.100Z] return manager._insert(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.100Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.100Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.100Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.100Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.100Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.100Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.100Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.100Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.100Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7650>
[2024-11-23T20:01:21.100Z] 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-23T20:01:21.100Z] params = ('md5$HXr0neSx0O7wa204IHFAcM$6380860f2c896719a88c89248e756cea', None, False, 'ringo', '', '', ...)
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.100Z] if params is None:
[2024-11-23T20:01:21.100Z] return super().execute(query)
[2024-11-23T20:01:21.100Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.100Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.100Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.100Z] > return super().execute(query, params)
[2024-11-23T20:01:21.100Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.100Z] ___________ TestHttpRequest.test_duplicate_request_form_data_access ____________
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_request.TestHttpRequest testMethod=test_duplicate_request_form_data_access>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] @override_settings(ROOT_URLCONF='tests.test_request')
[2024-11-23T20:01:21.100Z] def test_duplicate_request_form_data_access(self):
[2024-11-23T20:01:21.100Z] """
[2024-11-23T20:01:21.100Z] Form data is copied to the underlying django request for middleware
[2024-11-23T20:01:21.100Z] and file closing reasons. Duplicate processing of a request with form
[2024-11-23T20:01:21.100Z] data is 'safe' in so far as accessing `request.POST` does not trigger
[2024-11-23T20:01:21.100Z] the duplicate stream parse exception.
[2024-11-23T20:01:21.100Z] """
[2024-11-23T20:01:21.100Z] response = APIClient().post('/echo/', data={'a': 'b'})
[2024-11-23T20:01:21.100Z] > request = response._request
[2024-11-23T20:01:21.100Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute '_request'. Did you mean: 'request'?
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_request.py:336: AttributeError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.100Z] response = get_response(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.100Z] response = self.process_request(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.100Z] host = request.get_host()
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.100Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.100Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] WARNING django.request:log.py:248 Bad Request: /echo/
[2024-11-23T20:01:21.100Z] _______ TestHttpRequest.test_duplicate_request_stream_parsing_exception ________
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_request.TestHttpRequest testMethod=test_duplicate_request_stream_parsing_exception>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] @override_settings(ROOT_URLCONF='tests.test_request')
[2024-11-23T20:01:21.100Z] def test_duplicate_request_stream_parsing_exception(self):
[2024-11-23T20:01:21.100Z] """
[2024-11-23T20:01:21.100Z] Check assumption that duplicate stream parsing will result in a
[2024-11-23T20:01:21.100Z] `RawPostDataException` being raised.
[2024-11-23T20:01:21.100Z] """
[2024-11-23T20:01:21.100Z] response = APIClient().post('/echo/', data={'a': 'b'}, format='json')
[2024-11-23T20:01:21.100Z] > request = response._request
[2024-11-23T20:01:21.100Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute '_request'. Did you mean: 'request'?
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_request.py:317: AttributeError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.100Z] response = get_response(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.100Z] response = self.process_request(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.100Z] host = request.get_host()
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.100Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.100Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] WARNING django.request:log.py:248 Bad Request: /echo/
[2024-11-23T20:01:21.100Z] ______ RendererIntegrationTests.test_default_renderer_serializes_content _______
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_default_renderer_serializes_content>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def test_default_renderer_serializes_content(self):
[2024-11-23T20:01:21.100Z] """If the Accept header is not set the default renderer should serialize the response."""
[2024-11-23T20:01:21.100Z] resp = self.client.get('/')
[2024-11-23T20:01:21.100Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.100Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.100Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.100Z] E + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_response.py:144: AssertionError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.100Z] response = get_response(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.100Z] response = self.process_request(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.100Z] host = request.get_host()
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.100Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.100Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.100Z] _ RendererIntegrationTests.test_default_renderer_serializes_content_on_accept_any _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_default_renderer_serializes_content_on_accept_any>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def test_default_renderer_serializes_content_on_accept_any(self):
[2024-11-23T20:01:21.100Z] """If the Accept header is set to */* the default renderer should serialize the response."""
[2024-11-23T20:01:21.100Z] resp = self.client.get('/', HTTP_ACCEPT='*/*')
[2024-11-23T20:01:21.100Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.100Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.100Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.100Z] E + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_response.py:158: AssertionError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.100Z] response = get_response(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.100Z] response = self.process_request(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.100Z] host = request.get_host()
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.100Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.100Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.100Z] _______ RendererIntegrationTests.test_head_method_serializes_no_content ________
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_head_method_serializes_no_content>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def test_head_method_serializes_no_content(self):
[2024-11-23T20:01:21.100Z] """No response must be included in HEAD requests."""
[2024-11-23T20:01:21.100Z] resp = self.client.head('/')
[2024-11-23T20:01:21.100Z] > self.assertEqual(resp.status_code, DUMMYSTATUS)
[2024-11-23T20:01:21.100Z] E AssertionError: 400 != 200
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_response.py:151: AssertionError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.100Z] response = get_response(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.100Z] response = self.process_request(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.100Z] host = request.get_host()
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.100Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.100Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.100Z] _ RendererIntegrationTests.test_specified_renderer_is_used_on_format_query_with_matching_accept _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_is_used_on_format_query_with_matching_accept>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def test_specified_renderer_is_used_on_format_query_with_matching_accept(self):
[2024-11-23T20:01:21.100Z] """If both a 'format' query and a matching Accept header specified,
[2024-11-23T20:01:21.100Z] the renderer with the matching format attribute should serialize the response."""
[2024-11-23T20:01:21.100Z] resp = self.client.get('/?format=%s' % RendererB.format,
[2024-11-23T20:01:21.100Z] HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T20:01:21.100Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.100Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.100Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.100Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_response.py:199: AssertionError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.100Z] response = get_response(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.100Z] response = self.process_request(request)
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.100Z] host = request.get_host()
[2024-11-23T20:01:21.100Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.100Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.100Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.100Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_default_case _
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_default_case>
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] def test_specified_renderer_serializes_content_default_case(self):
[2024-11-23T20:01:21.100Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T20:01:21.100Z] (In this case we check that works for the default renderer)"""
[2024-11-23T20:01:21.100Z] resp = self.client.get('/', HTTP_ACCEPT=RendererA.media_type)
[2024-11-23T20:01:21.100Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.100Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.100Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.100Z] E + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.100Z]
[2024-11-23T20:01:21.100Z] tests/test_response.py:166: AssertionError
[2024-11-23T20:01:21.100Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.100Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.100Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.101Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_non_default_case _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_non_default_case>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_specified_renderer_serializes_content_non_default_case(self):
[2024-11-23T20:01:21.101Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T20:01:21.101Z] (In this case we check that works for a non-default renderer)"""
[2024-11-23T20:01:21.101Z] resp = self.client.get('/', HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T20:01:21.101Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.101Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.101Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.101Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:174: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.101Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_on_format_kwargs _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_on_format_kwargs>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_specified_renderer_serializes_content_on_format_kwargs(self):
[2024-11-23T20:01:21.101Z] """If a 'format' keyword arg is specified, the renderer with the matching
[2024-11-23T20:01:21.101Z] format attribute should serialize the response."""
[2024-11-23T20:01:21.101Z] resp = self.client.get('/something.formatb')
[2024-11-23T20:01:21.101Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.101Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.101Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.101Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:190: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /something.formatb
[2024-11-23T20:01:21.101Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_on_format_query _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_on_format_query>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_specified_renderer_serializes_content_on_format_query(self):
[2024-11-23T20:01:21.101Z] """If a 'format' query is specified, the renderer with the matching
[2024-11-23T20:01:21.101Z] format attribute should serialize the response."""
[2024-11-23T20:01:21.101Z] resp = self.client.get('/?format=%s' % RendererB.format)
[2024-11-23T20:01:21.101Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T20:01:21.101Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T20:01:21.101Z] E - text/html; charset=utf-8
[2024-11-23T20:01:21.101Z] E + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:182: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.101Z] ___________ UnsupportedMediaTypeTests.test_should_allow_posting_json ___________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.UnsupportedMediaTypeTests testMethod=test_should_allow_posting_json>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_should_allow_posting_json(self):
[2024-11-23T20:01:21.101Z] response = self.client.post('/json', data='{"test": 123}', content_type='application/json')
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] > self.assertEqual(response.status_code, 200)
[2024-11-23T20:01:21.101Z] E AssertionError: 400 != 200
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:209: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /json
[2024-11-23T20:01:21.101Z] ________ UnsupportedMediaTypeTests.test_should_not_allow_posting_a_form ________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.UnsupportedMediaTypeTests testMethod=test_should_not_allow_posting_a_form>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_should_not_allow_posting_a_form(self):
[2024-11-23T20:01:21.101Z] response = self.client.post('/json', data={'test': 123})
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] > self.assertEqual(response.status_code, 415)
[2024-11-23T20:01:21.101Z] E AssertionError: 400 != 415
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:219: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /json
[2024-11-23T20:01:21.101Z] _________ UnsupportedMediaTypeTests.test_should_not_allow_posting_xml __________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.UnsupportedMediaTypeTests testMethod=test_should_not_allow_posting_xml>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_should_not_allow_posting_xml(self):
[2024-11-23T20:01:21.101Z] response = self.client.post('/json', data='<test>123</test>', content_type='application/xml')
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] > self.assertEqual(response.status_code, 415)
[2024-11-23T20:01:21.101Z] E AssertionError: 400 != 415
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:214: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /json
[2024-11-23T20:01:21.101Z] __________ Issue807Tests.test_content_type_set_explicitly_on_response __________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.Issue807Tests testMethod=test_content_type_set_explicitly_on_response>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_content_type_set_explicitly_on_response(self):
[2024-11-23T20:01:21.101Z] """
[2024-11-23T20:01:21.101Z] The content type may be set explicitly on the response.
[2024-11-23T20:01:21.101Z] """
[2024-11-23T20:01:21.101Z] headers = {"HTTP_ACCEPT": RendererC.media_type}
[2024-11-23T20:01:21.101Z] resp = self.client.get('/setbyview', **headers)
[2024-11-23T20:01:21.101Z] > self.assertEqual('setbyview', resp['Content-Type'])
[2024-11-23T20:01:21.101Z] E AssertionError: 'setbyview' != 'text/html; charset=utf-8'
[2024-11-23T20:01:21.101Z] E - setbyview
[2024-11-23T20:01:21.101Z] E + text/html; charset=utf-8
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:282: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /setbyview
[2024-11-23T20:01:21.101Z] ____________ Issue807Tests.test_does_not_append_charset_by_default _____________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.Issue807Tests testMethod=test_does_not_append_charset_by_default>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_does_not_append_charset_by_default(self):
[2024-11-23T20:01:21.101Z] """
[2024-11-23T20:01:21.101Z] Renderers don't include a charset unless set explicitly.
[2024-11-23T20:01:21.101Z] """
[2024-11-23T20:01:21.101Z] headers = {"HTTP_ACCEPT": RendererA.media_type}
[2024-11-23T20:01:21.101Z] resp = self.client.get('/', **headers)
[2024-11-23T20:01:21.101Z] expected = "{}; charset={}".format(RendererA.media_type, 'utf-8')
[2024-11-23T20:01:21.101Z] > self.assertEqual(expected, resp['Content-Type'])
[2024-11-23T20:01:21.101Z] E AssertionError: 'mock/renderera; charset=utf-8' != 'text/html; charset=utf-8'
[2024-11-23T20:01:21.101Z] E - mock/renderera; charset=utf-8
[2024-11-23T20:01:21.101Z] E + text/html; charset=utf-8
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:264: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.101Z] _ Issue807Tests.test_if_there_is_charset_specified_on_renderer_it_gets_appended _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_response.Issue807Tests testMethod=test_if_there_is_charset_specified_on_renderer_it_gets_appended>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_if_there_is_charset_specified_on_renderer_it_gets_appended(self):
[2024-11-23T20:01:21.101Z] """
[2024-11-23T20:01:21.101Z] If renderer class has charset attribute declared, it gets appended
[2024-11-23T20:01:21.101Z] to Response's Content-Type
[2024-11-23T20:01:21.101Z] """
[2024-11-23T20:01:21.101Z] headers = {"HTTP_ACCEPT": RendererC.media_type}
[2024-11-23T20:01:21.101Z] resp = self.client.get('/', **headers)
[2024-11-23T20:01:21.101Z] expected = "{}; charset={}".format(RendererC.media_type, RendererC.charset)
[2024-11-23T20:01:21.101Z] > self.assertEqual(expected, resp['Content-Type'])
[2024-11-23T20:01:21.101Z] E AssertionError: 'mock/rendererc; charset=rendererc' != 'text/html; charset=utf-8'
[2024-11-23T20:01:21.101Z] E - mock/rendererc; charset=rendererc
[2024-11-23T20:01:21.101Z] E + text/html; charset=utf-8
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_response.py:274: AssertionError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.101Z] _ ReverseTests.test_reverse_with_versioning_scheme_fallback_to_default_on_error _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_reverse.MockVersioningScheme object at 0x7176ebb42990>
[2024-11-23T20:01:21.101Z] args = ('view', None, None, <WSGIRequest: GET '/view'>, None), kwargs = {}
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def reverse(self, *args, **kwargs):
[2024-11-23T20:01:21.101Z] if self.raise_error:
[2024-11-23T20:01:21.101Z] > raise NoReverseMatch()
[2024-11-23T20:01:21.101Z] E django.urls.exceptions.NoReverseMatch
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_reverse.py:27: NoReverseMatch
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] During handling of the above exception, another exception occurred:
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_reverse.ReverseTests testMethod=test_reverse_with_versioning_scheme_fallback_to_default_on_error>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_reverse_with_versioning_scheme_fallback_to_default_on_error(self):
[2024-11-23T20:01:21.101Z] request = factory.get('/view')
[2024-11-23T20:01:21.101Z] request.versioning_scheme = MockVersioningScheme(raise_error=True)
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] > url = reverse('view', request=request)
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_reverse.py:53:
[2024-11-23T20:01:21.101Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.101Z] rest_framework/reverse.py:45: in reverse
[2024-11-23T20:01:21.101Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.101Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.101Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.101Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.101Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.101Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.101Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <WSGIRequest: GET '/view'>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def get_host(self):
[2024-11-23T20:01:21.101Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.101Z] host = self._get_raw_host()
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.101Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.101Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.101Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.101Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.101Z] return host
[2024-11-23T20:01:21.101Z] else:
[2024-11-23T20:01:21.101Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.101Z] if domain:
[2024-11-23T20:01:21.101Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.101Z] else:
[2024-11-23T20:01:21.101Z] msg += (
[2024-11-23T20:01:21.101Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.101Z] )
[2024-11-23T20:01:21.101Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.101Z] _____________ ReverseTests.test_reversed_urls_are_fully_qualified ______________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_reverse.ReverseTests testMethod=test_reversed_urls_are_fully_qualified>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_reversed_urls_are_fully_qualified(self):
[2024-11-23T20:01:21.101Z] request = factory.get('/view')
[2024-11-23T20:01:21.101Z] > url = reverse('view', request=request)
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_reverse.py:39:
[2024-11-23T20:01:21.101Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.101Z] rest_framework/reverse.py:47: in reverse
[2024-11-23T20:01:21.101Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.101Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.101Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.101Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.101Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.101Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.101Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <WSGIRequest: GET '/view'>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def get_host(self):
[2024-11-23T20:01:21.101Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.101Z] host = self._get_raw_host()
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.101Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.101Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.101Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.101Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.101Z] return host
[2024-11-23T20:01:21.101Z] else:
[2024-11-23T20:01:21.101Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.101Z] if domain:
[2024-11-23T20:01:21.101Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.101Z] else:
[2024-11-23T20:01:21.101Z] msg += (
[2024-11-23T20:01:21.101Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.101Z] )
[2024-11-23T20:01:21.101Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.101Z] ________________ TestSimpleRouter.test_multiple_action_handlers ________________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_routers.TestSimpleRouter testMethod=test_multiple_action_handlers>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_multiple_action_handlers(self):
[2024-11-23T20:01:21.101Z] # Standard action
[2024-11-23T20:01:21.101Z] response = self.client.post(reverse('basic-action3', args=[1]))
[2024-11-23T20:01:21.101Z] > assert response.data == {'post': '1'}
[2024-11-23T20:01:21.101Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_routers.py:191: AttributeError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.101Z] host = request.get_host()
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.101Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.101Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] WARNING django.request:log.py:248 Bad Request: /api/basics/1/action3/
[2024-11-23T20:01:21.101Z] __________________ TestRootView.test_retrieve_namespaced_root __________________
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] self = <tests.test_routers.TestRootView testMethod=test_retrieve_namespaced_root>
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] def test_retrieve_namespaced_root(self):
[2024-11-23T20:01:21.101Z] response = self.client.get('/namespaced/')
[2024-11-23T20:01:21.101Z] > assert response.data == {"example": "http://testserver/namespaced/example/"}
[2024-11-23T20:01:21.101Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.101Z]
[2024-11-23T20:01:21.101Z] tests/test_routers.py:212: AttributeError
[2024-11-23T20:01:21.101Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.101Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.101Z] Traceback (most recent call last):
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.101Z] response = get_response(request)
[2024-11-23T20:01:21.101Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.101Z] response = self.process_request(request)
[2024-11-23T20:01:21.102Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.102Z] host = request.get_host()
[2024-11-23T20:01:21.102Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.102Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.102Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.102Z] WARNING django.request:log.py:248 Bad Request: /namespaced/
[2024-11-23T20:01:21.102Z] ________________ TestRootView.test_retrieve_non_namespaced_root ________________
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <tests.test_routers.TestRootView testMethod=test_retrieve_non_namespaced_root>
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def test_retrieve_non_namespaced_root(self):
[2024-11-23T20:01:21.102Z] response = self.client.get('/non-namespaced/')
[2024-11-23T20:01:21.102Z] > assert response.data == {"example": "http://testserver/non-namespaced/example/"}
[2024-11-23T20:01:21.102Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] tests/test_routers.py:216: AttributeError
[2024-11-23T20:01:21.102Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.102Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.102Z] Traceback (most recent call last):
[2024-11-23T20:01:21.102Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.102Z] response = get_response(request)
[2024-11-23T20:01:21.102Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.102Z] response = self.process_request(request)
[2024-11-23T20:01:21.102Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.102Z] host = request.get_host()
[2024-11-23T20:01:21.102Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.102Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.102Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.102Z] WARNING django.request:log.py:248 Bad Request: /non-namespaced/
[2024-11-23T20:01:21.102Z] ____________ TestCustomLookupFields.test_custom_lookup_field_route _____________
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa96690>
[2024-11-23T20:01:21.102Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa96690>})
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.102Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.102Z] # ever set during testing).
[2024-11-23T20:01:21.102Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.102Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.102Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] # params default might be backend specific.
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.102Z] else:
[2024-11-23T20:01:21.102Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb6570>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_custom_lookup_field_route>
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def setUp(self):
[2024-11-23T20:01:21.102Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] tests/test_routers.py:229:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.102Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.102Z] self.save_base(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.102Z] updated = self._save_table(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.102Z] results = self._do_insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.102Z] return manager._insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.102Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.102Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.102Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.102Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.102Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb6570>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z] ________ TestCustomLookupFields.test_retrieve_lookup_field_detail_view _________
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa91130>
[2024-11-23T20:01:21.102Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa91130>})
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.102Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.102Z] # ever set during testing).
[2024-11-23T20:01:21.102Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.102Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.102Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] # params default might be backend specific.
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.102Z] else:
[2024-11-23T20:01:21.102Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb6de0>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_retrieve_lookup_field_detail_view>
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def setUp(self):
[2024-11-23T20:01:21.102Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] tests/test_routers.py:229:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.102Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.102Z] self.save_base(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.102Z] updated = self._save_table(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.102Z] results = self._do_insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.102Z] return manager._insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.102Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.102Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.102Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.102Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.102Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb6de0>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z] _________ TestCustomLookupFields.test_retrieve_lookup_field_list_view __________
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa91c70>
[2024-11-23T20:01:21.102Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa91c70>})
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.102Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.102Z] # ever set during testing).
[2024-11-23T20:01:21.102Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.102Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.102Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] # params default might be backend specific.
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.102Z] else:
[2024-11-23T20:01:21.102Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35c70>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_retrieve_lookup_field_list_view>
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def setUp(self):
[2024-11-23T20:01:21.102Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] tests/test_routers.py:229:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.102Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.102Z] self.save_base(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.102Z] updated = self._save_table(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.102Z] results = self._do_insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.102Z] return manager._insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.102Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.102Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.102Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.102Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.102Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35c70>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z] __ TestCustomLookupFields.test_retrieve_lookup_field_url_encoded_detail_view_ __
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaac50d0>
[2024-11-23T20:01:21.102Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaac50d0>})
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.102Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.102Z] # ever set during testing).
[2024-11-23T20:01:21.102Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.102Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.102Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] # params default might be backend specific.
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.102Z] else:
[2024-11-23T20:01:21.102Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7410>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_retrieve_lookup_field_url_encoded_detail_view_>
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def setUp(self):
[2024-11-23T20:01:21.102Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] tests/test_routers.py:229:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.102Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.102Z] self.save_base(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.102Z] updated = self._save_table(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.102Z] results = self._do_insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.102Z] return manager._insert(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.102Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.102Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.102Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.102Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.102Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.102Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7410>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.102Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.102Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.102Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.102Z] > return super().execute(query, params)
[2024-11-23T20:01:21.102Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.102Z] ____________ TestLookupUrlKwargs.test_custom_lookup_url_kwarg_route ____________
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaac42f0>
[2024-11-23T20:01:21.102Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaac42f0>})
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.102Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.102Z] # ever set during testing).
[2024-11-23T20:01:21.102Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.102Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.102Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.102Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] # params default might be backend specific.
[2024-11-23T20:01:21.102Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.102Z] else:
[2024-11-23T20:01:21.102Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.102Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.102Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.102Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.102Z]
[2024-11-23T20:01:21.102Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.102Z] if params is None:
[2024-11-23T20:01:21.102Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestLookupUrlKwargs testMethod=test_custom_lookup_url_kwarg_route>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def setUp(self):
[2024-11-23T20:01:21.103Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:286:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.103Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.103Z] self.save_base(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.103Z] updated = self._save_table(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.103Z] results = self._do_insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.103Z] return manager._insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.103Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.103Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.103Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.103Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.103Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z] ____ TestLookupUrlKwargs.test_retrieve_lookup_url_encoded_kwarg_detail_view ____
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa97fb0>
[2024-11-23T20:01:21.103Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa97fb0>})
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.103Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.103Z] # ever set during testing).
[2024-11-23T20:01:21.103Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.103Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.103Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] # params default might be backend specific.
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.103Z] else:
[2024-11-23T20:01:21.103Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestLookupUrlKwargs testMethod=test_retrieve_lookup_url_encoded_kwarg_detail_view>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def setUp(self):
[2024-11-23T20:01:21.103Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:286:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.103Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.103Z] self.save_base(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.103Z] updated = self._save_table(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.103Z] results = self._do_insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.103Z] return manager._insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.103Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.103Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.103Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.103Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.103Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z] ________ TestLookupUrlKwargs.test_retrieve_lookup_url_kwarg_detail_view ________
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9f81d0>
[2024-11-23T20:01:21.103Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9f81d0>})
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.103Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.103Z] # ever set during testing).
[2024-11-23T20:01:21.103Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.103Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.103Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] # params default might be backend specific.
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.103Z] else:
[2024-11-23T20:01:21.103Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestLookupUrlKwargs testMethod=test_retrieve_lookup_url_kwarg_detail_view>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def setUp(self):
[2024-11-23T20:01:21.103Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:286:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.103Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.103Z] self.save_base(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.103Z] updated = self._save_table(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.103Z] results = self._do_insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.103Z] return manager._insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.103Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.103Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.103Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.103Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.103Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z] ___________________ TestEmptyPrefix.test_empty_prefix_detail ___________________
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestEmptyPrefix testMethod=test_empty_prefix_detail>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def test_empty_prefix_detail(self):
[2024-11-23T20:01:21.103Z] response = self.client.get('/empty-prefix/1/')
[2024-11-23T20:01:21.103Z] > assert response.status_code == 200
[2024-11-23T20:01:21.103Z] E assert 400 == 200
[2024-11-23T20:01:21.103Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:480: AssertionError
[2024-11-23T20:01:21.103Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.103Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] Traceback (most recent call last):
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.103Z] response = get_response(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.103Z] response = self.process_request(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.103Z] host = request.get_host()
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.103Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.103Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] WARNING django.request:log.py:248 Bad Request: /empty-prefix/1/
[2024-11-23T20:01:21.103Z] ____________________ TestEmptyPrefix.test_empty_prefix_list ____________________
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestEmptyPrefix testMethod=test_empty_prefix_list>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def test_empty_prefix_list(self):
[2024-11-23T20:01:21.103Z] response = self.client.get('/empty-prefix/')
[2024-11-23T20:01:21.103Z] > assert response.status_code == 200
[2024-11-23T20:01:21.103Z] E assert 400 == 200
[2024-11-23T20:01:21.103Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:474: AssertionError
[2024-11-23T20:01:21.103Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.103Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] Traceback (most recent call last):
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.103Z] response = get_response(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.103Z] response = self.process_request(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.103Z] host = request.get_host()
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.103Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.103Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] WARNING django.request:log.py:248 Bad Request: /empty-prefix/
[2024-11-23T20:01:21.103Z] _________________ TestRegexUrlPath.test_regex_url_path_detail __________________
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestRegexUrlPath testMethod=test_regex_url_path_detail>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def test_regex_url_path_detail(self):
[2024-11-23T20:01:21.103Z] pk = '1'
[2024-11-23T20:01:21.103Z] kwarg = '1234'
[2024-11-23T20:01:21.103Z] response = self.client.get('/regex/{}/detail/{}/'.format(pk, kwarg))
[2024-11-23T20:01:21.103Z] > assert response.status_code == 200
[2024-11-23T20:01:21.103Z] E assert 400 == 200
[2024-11-23T20:01:21.103Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:499: AssertionError
[2024-11-23T20:01:21.103Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.103Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] Traceback (most recent call last):
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.103Z] response = get_response(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.103Z] response = self.process_request(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.103Z] host = request.get_host()
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.103Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.103Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] WARNING django.request:log.py:248 Bad Request: /regex/1/detail/1234/
[2024-11-23T20:01:21.103Z] __________________ TestRegexUrlPath.test_regex_url_path_list ___________________
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestRegexUrlPath testMethod=test_regex_url_path_list>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def test_regex_url_path_list(self):
[2024-11-23T20:01:21.103Z] kwarg = '1234'
[2024-11-23T20:01:21.103Z] response = self.client.get('/regex/list/{}/'.format(kwarg))
[2024-11-23T20:01:21.103Z] > assert response.status_code == 200
[2024-11-23T20:01:21.103Z] E assert 400 == 200
[2024-11-23T20:01:21.103Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:492: AssertionError
[2024-11-23T20:01:21.103Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.103Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] Traceback (most recent call last):
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.103Z] response = get_response(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.103Z] response = self.process_request(request)
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.103Z] host = request.get_host()
[2024-11-23T20:01:21.103Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.103Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.103Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.103Z] WARNING django.request:log.py:248 Bad Request: /regex/list/1234/
[2024-11-23T20:01:21.103Z] ___________________________ TestUrlPath.test_create ____________________________
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eab8e7b0>
[2024-11-23T20:01:21.103Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eab8e7b0>})
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.103Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.103Z] # ever set during testing).
[2024-11-23T20:01:21.103Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.103Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.103Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] # params default might be backend specific.
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.103Z] else:
[2024-11-23T20:01:21.103Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22cef0>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.103Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.103Z] if params is None:
[2024-11-23T20:01:21.103Z] return super().execute(query)
[2024-11-23T20:01:21.103Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.103Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.103Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.103Z] > return super().execute(query, params)
[2024-11-23T20:01:21.103Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <tests.test_routers.TestUrlPath testMethod=test_create>
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] def setUp(self):
[2024-11-23T20:01:21.103Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.103Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.103Z] self.save_base(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.103Z] updated = self._save_table(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.103Z] results = self._do_insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.103Z] return manager._insert(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.103Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.103Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.103Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.103Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.103Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.103Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.103Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.103Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.103Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.103Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.103Z]
[2024-11-23T20:01:21.103Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22cef0>
[2024-11-23T20:01:21.103Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z] _____________________ TestUrlPath.test_defaultrouter_root ______________________
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa90890>
[2024-11-23T20:01:21.104Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa90890>})
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.104Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.104Z] # ever set during testing).
[2024-11-23T20:01:21.104Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.104Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.104Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] # params default might be backend specific.
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.104Z] else:
[2024-11-23T20:01:21.104Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <tests.test_routers.TestUrlPath testMethod=test_defaultrouter_root>
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def setUp(self):
[2024-11-23T20:01:21.104Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.104Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.104Z] self.save_base(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.104Z] updated = self._save_table(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.104Z] results = self._do_insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.104Z] return manager._insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.104Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.104Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.104Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.104Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.104Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z] ___________________________ TestUrlPath.test_delete ____________________________
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa91190>
[2024-11-23T20:01:21.104Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa91190>})
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.104Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.104Z] # ever set during testing).
[2024-11-23T20:01:21.104Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.104Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.104Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] # params default might be backend specific.
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.104Z] else:
[2024-11-23T20:01:21.104Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e0f0>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <tests.test_routers.TestUrlPath testMethod=test_delete>
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def setUp(self):
[2024-11-23T20:01:21.104Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.104Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.104Z] self.save_base(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.104Z] updated = self._save_table(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.104Z] results = self._do_insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.104Z] return manager._insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.104Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.104Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.104Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.104Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.104Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e0f0>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z] _____________________ TestUrlPath.test_detail_extra_action _____________________
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa915b0>
[2024-11-23T20:01:21.104Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa915b0>})
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.104Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.104Z] # ever set during testing).
[2024-11-23T20:01:21.104Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.104Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.104Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] # params default might be backend specific.
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.104Z] else:
[2024-11-23T20:01:21.104Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <tests.test_routers.TestUrlPath testMethod=test_detail_extra_action>
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def setUp(self):
[2024-11-23T20:01:21.104Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.104Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.104Z] self.save_base(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.104Z] updated = self._save_table(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.104Z] results = self._do_insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.104Z] return manager._insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.104Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.104Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.104Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.104Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.104Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z] __________________ TestUrlPath.test_detail_extra_other_action __________________
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaac7950>
[2024-11-23T20:01:21.104Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaac7950>})
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.104Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.104Z] # ever set during testing).
[2024-11-23T20:01:21.104Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.104Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.104Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] # params default might be backend specific.
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.104Z] else:
[2024-11-23T20:01:21.104Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22d0a0>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <tests.test_routers.TestUrlPath testMethod=test_detail_extra_other_action>
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def setUp(self):
[2024-11-23T20:01:21.104Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.104Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.104Z] self.save_base(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.104Z] updated = self._save_table(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.104Z] results = self._do_insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.104Z] return manager._insert(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.104Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.104Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.104Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.104Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.104Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.104Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22d0a0>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z] ____________________________ TestUrlPath.test_list _____________________________
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaac5610>
[2024-11-23T20:01:21.104Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaac5610>})
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.104Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.104Z] # ever set during testing).
[2024-11-23T20:01:21.104Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.104Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.104Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.104Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] # params default might be backend specific.
[2024-11-23T20:01:21.104Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.104Z] else:
[2024-11-23T20:01:21.104Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.104Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.104Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.104Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.104Z] if params is None:
[2024-11-23T20:01:21.104Z] return super().execute(query)
[2024-11-23T20:01:21.104Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.104Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.104Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.104Z] > return super().execute(query, params)
[2024-11-23T20:01:21.104Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.104Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.104Z]
[2024-11-23T20:01:21.105Z] self = <tests.test_routers.TestUrlPath testMethod=test_list>
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def setUp(self):
[2024-11-23T20:01:21.105Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.105Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.105Z] self.save_base(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.105Z] updated = self._save_table(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.105Z] results = self._do_insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.105Z] return manager._insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.105Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.105Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.105Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.105Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.105Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z] ______________________ TestUrlPath.test_list_extra_action ______________________
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa88350>
[2024-11-23T20:01:21.105Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa88350>})
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.105Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.105Z] # ever set during testing).
[2024-11-23T20:01:21.105Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.105Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.105Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] # params default might be backend specific.
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.105Z] else:
[2024-11-23T20:01:21.105Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22eba0>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <tests.test_routers.TestUrlPath testMethod=test_list_extra_action>
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def setUp(self):
[2024-11-23T20:01:21.105Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.105Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.105Z] self.save_base(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.105Z] updated = self._save_table(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.105Z] results = self._do_insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.105Z] return manager._insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.105Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.105Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.105Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.105Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.105Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22eba0>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z] __________________________ TestUrlPath.test_retrieve ___________________________
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa8aff0>
[2024-11-23T20:01:21.105Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa8aff0>})
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.105Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.105Z] # ever set during testing).
[2024-11-23T20:01:21.105Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.105Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.105Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] # params default might be backend specific.
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.105Z] else:
[2024-11-23T20:01:21.105Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <tests.test_routers.TestUrlPath testMethod=test_retrieve>
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def setUp(self):
[2024-11-23T20:01:21.105Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.105Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.105Z] self.save_base(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.105Z] updated = self._save_table(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.105Z] results = self._do_insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.105Z] return manager._insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.105Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.105Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.105Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.105Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.105Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c3c80>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z] ___________________________ TestUrlPath.test_update ____________________________
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eaa89c10>
[2024-11-23T20:01:21.105Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eaa89c10>})
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.105Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.105Z] # ever set during testing).
[2024-11-23T20:01:21.105Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.105Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.105Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] # params default might be backend specific.
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.105Z] else:
[2024-11-23T20:01:21.105Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e180>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <tests.test_routers.TestUrlPath testMethod=test_update>
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def setUp(self):
[2024-11-23T20:01:21.105Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] tests/test_routers.py:512:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.105Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.105Z] self.save_base(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.105Z] updated = self._save_table(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.105Z] results = self._do_insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.105Z] return manager._insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.105Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.105Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.105Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.105Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.105Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e180>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T20:01:21.105Z] params = ('123', 'foo bar')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z] ____________________ TestToRepresentationManagerCheck.test _____________________
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea9d8f50>
[2024-11-23T20:01:21.105Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.105Z] params = ('OneToOneTarget',)
[2024-11-23T20:01:21.105Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea9d8f50>})
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.105Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.105Z] # ever set during testing).
[2024-11-23T20:01:21.105Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.105Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.105Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] # params default might be backend specific.
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.105Z] else:
[2024-11-23T20:01:21.105Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35760>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.105Z] params = ('OneToOneTarget',)
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <tests.test_serializer_lists.TestToRepresentationManagerCheck object at 0x7176eb85c910>
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def test(self):
[2024-11-23T20:01:21.105Z] > o2o_target = OneToOneTarget.objects.create(name='OneToOneTarget')
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] tests/test_serializer_lists.py:776:
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.105Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.105Z] self.save_base(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.105Z] updated = self._save_table(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.105Z] results = self._do_insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.105Z] return manager._insert(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.105Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.105Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.105Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.105Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.105Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.105Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.105Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.105Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.105Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35760>
[2024-11-23T20:01:21.105Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T20:01:21.105Z] params = ('OneToOneTarget',)
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.105Z] if params is None:
[2024-11-23T20:01:21.105Z] return super().execute(query)
[2024-11-23T20:01:21.105Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.105Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.105Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.105Z] > return super().execute(query, params)
[2024-11-23T20:01:21.105Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.105Z] ______________________ TestAPITestClient.test_can_logout _______________________
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] self = <tests.test_testing.TestAPITestClient testMethod=test_can_logout>
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] def test_can_logout(self):
[2024-11-23T20:01:21.105Z] """
[2024-11-23T20:01:21.105Z] `logout()` resets stored credentials
[2024-11-23T20:01:21.105Z] """
[2024-11-23T20:01:21.105Z] self.client.credentials(HTTP_AUTHORIZATION='example')
[2024-11-23T20:01:21.105Z] response = self.client.get('/view/')
[2024-11-23T20:01:21.105Z] > assert response.data['auth'] == 'example'
[2024-11-23T20:01:21.105Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.105Z]
[2024-11-23T20:01:21.105Z] tests/test_testing.py:172: AttributeError
[2024-11-23T20:01:21.105Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.105Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.105Z] Traceback (most recent call last):
[2024-11-23T20:01:21.105Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.105Z] response = get_response(request)
[2024-11-23T20:01:21.105Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.105Z] response = self.process_request(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.106Z] host = request.get_host()
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.106Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.106Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] WARNING django.request:log.py:248 Bad Request: /view/
[2024-11-23T20:01:21.106Z] ______________________ TestAPITestClient.test_credentials ______________________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_credentials>
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_credentials(self):
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] Setting `.credentials()` adds the required headers to each request.
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] self.client.credentials(HTTP_AUTHORIZATION='example')
[2024-11-23T20:01:21.106Z] for _ in range(0, 3):
[2024-11-23T20:01:21.106Z] response = self.client.get('/view/')
[2024-11-23T20:01:21.106Z] > assert response.data['auth'] == 'example'
[2024-11-23T20:01:21.106Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:81: AttributeError
[2024-11-23T20:01:21.106Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.106Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] Traceback (most recent call last):
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.106Z] response = get_response(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.106Z] response = self.process_request(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.106Z] host = request.get_host()
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.106Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.106Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] WARNING django.request:log.py:248 Bad Request: /view/
[2024-11-23T20:01:21.106Z] ________________ TestAPITestClient.test_csrf_exempt_by_default _________________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea672450>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('md5$783u9vPuH4Fhzg39ivr65h$877720dcb2e6420b926ebdb73a465cb4', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea672450>})
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.106Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.106Z] # ever set during testing).
[2024-11-23T20:01:21.106Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.106Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.106Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.106Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] # params default might be backend specific.
[2024-11-23T20:01:21.106Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.106Z] else:
[2024-11-23T20:01:21.106Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35520>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('md5$783u9vPuH4Fhzg39ivr65h$877720dcb2e6420b926ebdb73a465cb4', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] return super().execute(query)
[2024-11-23T20:01:21.106Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.106Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.106Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.106Z] > return super().execute(query, params)
[2024-11-23T20:01:21.106Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_csrf_exempt_by_default>
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_csrf_exempt_by_default(self):
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] By default, the test client is CSRF exempt.
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] > User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:149:
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.106Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.106Z] user.save(using=self._db)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.106Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.106Z] self.save_base(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.106Z] updated = self._save_table(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.106Z] results = self._do_insert(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.106Z] return manager._insert(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.106Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.106Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.106Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.106Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.106Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.106Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.106Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.106Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35520>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('md5$783u9vPuH4Fhzg39ivr65h$877720dcb2e6420b926ebdb73a465cb4', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] return super().execute(query)
[2024-11-23T20:01:21.106Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.106Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.106Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.106Z] > return super().execute(query, params)
[2024-11-23T20:01:21.106Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.106Z] _________ TestAPITestClient.test_empty_post_uses_default_boolean_value _________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_empty_post_uses_default_boolean_value>
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_empty_post_uses_default_boolean_value(self):
[2024-11-23T20:01:21.106Z] response = self.client.post(
[2024-11-23T20:01:21.106Z] '/post-view/',
[2024-11-23T20:01:21.106Z] data=None,
[2024-11-23T20:01:21.106Z] content_type='application/json'
[2024-11-23T20:01:21.106Z] )
[2024-11-23T20:01:21.106Z] > assert response.status_code == 200
[2024-11-23T20:01:21.106Z] E assert 400 == 200
[2024-11-23T20:01:21.106Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:236: AssertionError
[2024-11-23T20:01:21.106Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.106Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] Traceback (most recent call last):
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.106Z] response = get_response(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.106Z] response = self.process_request(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.106Z] host = request.get_host()
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.106Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.106Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] WARNING django.request:log.py:248 Bad Request: /post-view/
[2024-11-23T20:01:21.106Z] ____________ TestAPITestClient.test_explicitly_enforce_csrf_checks _____________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea673ef0>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('md5$3OEDcz3SwkHbNCuUV5n4uI$030e6561c2a5d746be61d21478fda1cb', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea673ef0>})
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.106Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.106Z] # ever set during testing).
[2024-11-23T20:01:21.106Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.106Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.106Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.106Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] # params default might be backend specific.
[2024-11-23T20:01:21.106Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.106Z] else:
[2024-11-23T20:01:21.106Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35fd0>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('md5$3OEDcz3SwkHbNCuUV5n4uI$030e6561c2a5d746be61d21478fda1cb', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] return super().execute(query)
[2024-11-23T20:01:21.106Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.106Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.106Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.106Z] > return super().execute(query, params)
[2024-11-23T20:01:21.106Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_explicitly_enforce_csrf_checks>
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_explicitly_enforce_csrf_checks(self):
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] The test client can enforce CSRF checks.
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] client = APIClient(enforce_csrf_checks=True)
[2024-11-23T20:01:21.106Z] > User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:159:
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.106Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.106Z] user.save(using=self._db)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.106Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.106Z] self.save_base(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.106Z] updated = self._save_table(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.106Z] results = self._do_insert(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.106Z] return manager._insert(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.106Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.106Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.106Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.106Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.106Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.106Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.106Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.106Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa35fd0>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('md5$3OEDcz3SwkHbNCuUV5n4uI$030e6561c2a5d746be61d21478fda1cb', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] return super().execute(query)
[2024-11-23T20:01:21.106Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.106Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.106Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.106Z] > return super().execute(query, params)
[2024-11-23T20:01:21.106Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.106Z] ____________ TestAPITestClient.test_follow_307_308_preserve_kwargs _____________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_follow_307_308_preserve_kwargs>
[2024-11-23T20:01:21.106Z] mocked_methods = ()
[2024-11-23T20:01:21.106Z] methods = ('get', 'post', 'put', 'patch', 'delete', 'options')
[2024-11-23T20:01:21.106Z] codes = (307, 308), method = 'get'
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_follow_307_308_preserve_kwargs(self, *mocked_methods):
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] Follow redirect by setting follow argument, and make sure the following
[2024-11-23T20:01:21.106Z] method called with appropriate kwargs.
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] methods = ('get', 'post', 'put', 'patch', 'delete', 'options')
[2024-11-23T20:01:21.106Z] codes = (307, 308)
[2024-11-23T20:01:21.106Z] for method, code in itertools.product(methods, codes):
[2024-11-23T20:01:21.106Z] subtest_ctx = self.subTest(method=method, code=code)
[2024-11-23T20:01:21.106Z] patch_ctx = patch.object(self.client, method, side_effect=getattr(self.client, method))
[2024-11-23T20:01:21.106Z] with subtest_ctx, patch_ctx as req_method:
[2024-11-23T20:01:21.106Z] kwargs = {'data': {'example': 'test'}, 'format': 'json'}
[2024-11-23T20:01:21.106Z] response = req_method('/redirect-view/%s/' % code, follow=True, **kwargs)
[2024-11-23T20:01:21.106Z] assert response.redirect_chain is not None
[2024-11-23T20:01:21.106Z] > assert response.status_code == 200
[2024-11-23T20:01:21.106Z] E assert 400 == 200
[2024-11-23T20:01:21.106Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:216: AssertionError
[2024-11-23T20:01:21.106Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.106Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] Traceback (most recent call last):
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.106Z] response = get_response(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.106Z] response = self.process_request(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.106Z] host = request.get_host()
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.106Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.106Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] WARNING django.request:log.py:248 Bad Request: /redirect-view/307/
[2024-11-23T20:01:21.106Z] ____________________ TestAPITestClient.test_follow_redirect ____________________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_follow_redirect>
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_follow_redirect(self):
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] Follow redirect by setting follow argument.
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] for method in ('get', 'post', 'put', 'patch', 'delete', 'options'):
[2024-11-23T20:01:21.106Z] with self.subTest(method=method):
[2024-11-23T20:01:21.106Z] req_method = getattr(self.client, method)
[2024-11-23T20:01:21.106Z] response = req_method('/redirect-view/')
[2024-11-23T20:01:21.106Z] > assert response.status_code == 302
[2024-11-23T20:01:21.106Z] E assert 400 == 302
[2024-11-23T20:01:21.106Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:197: AssertionError
[2024-11-23T20:01:21.106Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.106Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] Traceback (most recent call last):
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.106Z] response = get_response(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.106Z] response = self.process_request(request)
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.106Z] host = request.get_host()
[2024-11-23T20:01:21.106Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.106Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.106Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.106Z] WARNING django.request:log.py:248 Bad Request: /redirect-view/
[2024-11-23T20:01:21.106Z] ___________ TestAPITestClient.test_force_authenticate_with_sessions ____________
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea636db0>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('!f7Z710vHfzOb3AMSHqyJGHXdo6bF1GZhOh07Dttj', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea636db0>})
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.106Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.106Z] # ever set during testing).
[2024-11-23T20:01:21.106Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.106Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.106Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.106Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] # params default might be backend specific.
[2024-11-23T20:01:21.106Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.106Z] else:
[2024-11-23T20:01:21.106Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37890>
[2024-11-23T20:01:21.106Z] 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-23T20:01:21.106Z] params = ('!f7Z710vHfzOb3AMSHqyJGHXdo6bF1GZhOh07Dttj', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.106Z] if params is None:
[2024-11-23T20:01:21.106Z] return super().execute(query)
[2024-11-23T20:01:21.106Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.106Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.106Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.106Z] > return super().execute(query, params)
[2024-11-23T20:01:21.106Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_sessions>
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] def test_force_authenticate_with_sessions(self):
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] Setting `.force_authenticate()` forcibly authenticates each request.
[2024-11-23T20:01:21.106Z] """
[2024-11-23T20:01:21.106Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T20:01:21.106Z]
[2024-11-23T20:01:21.106Z] tests/test_testing.py:128:
[2024-11-23T20:01:21.106Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.106Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.106Z] user.save(using=self._db)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.106Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.106Z] self.save_base(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.106Z] updated = self._save_table(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.106Z] results = self._do_insert(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.106Z] return manager._insert(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.106Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.106Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.106Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.106Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.106Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.106Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.107Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37890>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!f7Z710vHfzOb3AMSHqyJGHXdo6bF1GZhOh07Dttj', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z] _____________ TestAPITestClient.test_force_authenticate_with_token _____________
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea636ff0>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!edP2EKeAaQvHL4dnZfNCVnDvDI3ODMMpJ70MuMSt', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea636ff0>})
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.107Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.107Z] # ever set during testing).
[2024-11-23T20:01:21.107Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.107Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.107Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] # params default might be backend specific.
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.107Z] else:
[2024-11-23T20:01:21.107Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37380>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!edP2EKeAaQvHL4dnZfNCVnDvDI3ODMMpJ70MuMSt', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_token>
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def test_force_authenticate_with_token(self):
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] Setting `.force_authenticate()` with a token forcibly authenticates each
[2024-11-23T20:01:21.107Z] request with that token.
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] tests/test_testing.py:101:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.107Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.107Z] user.save(using=self._db)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.107Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.107Z] self.save_base(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.107Z] updated = self._save_table(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.107Z] results = self._do_insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.107Z] return manager._insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.107Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.107Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.107Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.107Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.107Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.107Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37380>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!edP2EKeAaQvHL4dnZfNCVnDvDI3ODMMpJ70MuMSt', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z] _____________ TestAPITestClient.test_force_authenticate_with_user ______________
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6356d0>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!hgA0t4Gm4VN64yXQWw2r5DcibntaDvCpdm9dRmEy', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6356d0>})
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.107Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.107Z] # ever set during testing).
[2024-11-23T20:01:21.107Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.107Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.107Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] # params default might be backend specific.
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.107Z] else:
[2024-11-23T20:01:21.107Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!hgA0t4Gm4VN64yXQWw2r5DcibntaDvCpdm9dRmEy', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_user>
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def test_force_authenticate_with_user(self):
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] Setting `.force_authenticate()` with a user forcibly authenticates each
[2024-11-23T20:01:21.107Z] request with that user.
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] tests/test_testing.py:88:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.107Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.107Z] user.save(using=self._db)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.107Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.107Z] self.save_base(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.107Z] updated = self._save_table(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.107Z] results = self._do_insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.107Z] return manager._insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.107Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.107Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.107Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.107Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.107Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.107Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!hgA0t4Gm4VN64yXQWw2r5DcibntaDvCpdm9dRmEy', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z] ________ TestAPITestClient.test_force_authenticate_with_user_and_token _________
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea673890>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!RLusIjkkWtWWu6qEWCbFbddXvwzflCHQJtIsObB8', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea673890>})
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.107Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.107Z] # ever set during testing).
[2024-11-23T20:01:21.107Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.107Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.107Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] # params default might be backend specific.
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.107Z] else:
[2024-11-23T20:01:21.107Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22eba0>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!RLusIjkkWtWWu6qEWCbFbddXvwzflCHQJtIsObB8', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_user_and_token>
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def test_force_authenticate_with_user_and_token(self):
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] Setting `.force_authenticate()` with a user and token forcibly
[2024-11-23T20:01:21.107Z] authenticates each request with that user and token.
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] tests/test_testing.py:115:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.107Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.107Z] user.save(using=self._db)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.107Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.107Z] self.save_base(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.107Z] updated = self._save_table(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.107Z] results = self._do_insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.107Z] return manager._insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.107Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.107Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.107Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.107Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.107Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.107Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22eba0>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('!RLusIjkkWtWWu6qEWCbFbddXvwzflCHQJtIsObB8', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z] ___________ TestAPITestClient.test_logout_resets_force_authenticate ____________
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176eab4fcb0>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('md5$NqNgk4KE7UMKWKxGJ92mPH$f96d1a0b230bd98ae9495927cbfee4dd', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176eab4fcb0>})
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.107Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.107Z] # ever set during testing).
[2024-11-23T20:01:21.107Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.107Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.107Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] # params default might be backend specific.
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.107Z] else:
[2024-11-23T20:01:21.107Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('md5$NqNgk4KE7UMKWKxGJ92mPH$f96d1a0b230bd98ae9495927cbfee4dd', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <tests.test_testing.TestAPITestClient testMethod=test_logout_resets_force_authenticate>
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def test_logout_resets_force_authenticate(self):
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] `logout()` resets any `force_authenticate`
[2024-11-23T20:01:21.107Z] """
[2024-11-23T20:01:21.107Z] > user = User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] tests/test_testing.py:181:
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.107Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.107Z] user.save(using=self._db)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.107Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.107Z] self.save_base(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.107Z] updated = self._save_table(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.107Z] results = self._do_insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.107Z] return manager._insert(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.107Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.107Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.107Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.107Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.107Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.107Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.107Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.107Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.107Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.107Z] params = ('md5$NqNgk4KE7UMKWKxGJ92mPH$f96d1a0b230bd98ae9495927cbfee4dd', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.107Z] if params is None:
[2024-11-23T20:01:21.107Z] return super().execute(query)
[2024-11-23T20:01:21.107Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.107Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.107Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.107Z] > return super().execute(query, params)
[2024-11-23T20:01:21.107Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.107Z] ______________ TestAPIRequestFactory.test_csrf_exempt_by_default _______________
[2024-11-23T20:01:21.107Z]
[2024-11-23T20:01:21.107Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6abef0>
[2024-11-23T20:01:21.107Z] 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-23T20:01:21.108Z] params = ('md5$4PAq4CdPDUmUWK6wfSvuge$5dde8c4bf58d8a4403b86242ece0cf30', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6abef0>})
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.108Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.108Z] # ever set during testing).
[2024-11-23T20:01:21.108Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.108Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.108Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] # params default might be backend specific.
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.108Z] else:
[2024-11-23T20:01:21.108Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22eba0>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('md5$4PAq4CdPDUmUWK6wfSvuge$5dde8c4bf58d8a4403b86242ece0cf30', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <tests.test_testing.TestAPIRequestFactory testMethod=test_csrf_exempt_by_default>
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def test_csrf_exempt_by_default(self):
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] By default, the test client is CSRF exempt.
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] > user = User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] tests/test_testing.py:245:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.108Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.108Z] user.save(using=self._db)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.108Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.108Z] self.save_base(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.108Z] updated = self._save_table(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.108Z] results = self._do_insert(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.108Z] return manager._insert(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.108Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.108Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.108Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.108Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.108Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.108Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22eba0>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('md5$4PAq4CdPDUmUWK6wfSvuge$5dde8c4bf58d8a4403b86242ece0cf30', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z] __________ TestAPIRequestFactory.test_explicitly_enforce_csrf_checks ___________
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6ab770>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('md5$GjVsOev9gIX2dPc08LqVNm$7a97a5a8461d6712a6c9b9a2e410da43', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6ab770>})
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.108Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.108Z] # ever set during testing).
[2024-11-23T20:01:21.108Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.108Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.108Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] # params default might be backend specific.
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.108Z] else:
[2024-11-23T20:01:21.108Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('md5$GjVsOev9gIX2dPc08LqVNm$7a97a5a8461d6712a6c9b9a2e410da43', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <tests.test_testing.TestAPIRequestFactory testMethod=test_explicitly_enforce_csrf_checks>
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def test_explicitly_enforce_csrf_checks(self):
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] The test client can enforce CSRF checks.
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] > user = User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] tests/test_testing.py:256:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.108Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.108Z] user.save(using=self._db)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.108Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.108Z] self.save_base(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.108Z] updated = self._save_table(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.108Z] results = self._do_insert(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.108Z] return manager._insert(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.108Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.108Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.108Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.108Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.108Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.108Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('md5$GjVsOev9gIX2dPc08LqVNm$7a97a5a8461d6712a6c9b9a2e410da43', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z] ________________ TestAPIRequestFactory.test_force_authenticate _________________
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6ab830>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('!0jsZrgU5bUkPEGnTrLtb9BC9fhRAqsWuMB76jLVg', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6ab830>})
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.108Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.108Z] # ever set during testing).
[2024-11-23T20:01:21.108Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.108Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.108Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] # params default might be backend specific.
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.108Z] else:
[2024-11-23T20:01:21.108Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22f890>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('!0jsZrgU5bUkPEGnTrLtb9BC9fhRAqsWuMB76jLVg', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <tests.test_testing.TestAPIRequestFactory testMethod=test_force_authenticate>
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def test_force_authenticate(self):
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] Setting `force_authenticate()` forcibly authenticates the request.
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] tests/test_testing.py:280:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T20:01:21.108Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T20:01:21.108Z] user.save(using=self._db)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.108Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.108Z] self.save_base(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.108Z] updated = self._save_table(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.108Z] results = self._do_insert(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.108Z] return manager._insert(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.108Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.108Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.108Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.108Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.108Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.108Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22f890>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('!0jsZrgU5bUkPEGnTrLtb9BC9fhRAqsWuMB76jLVg', None, False, 'example', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z] ___________________ TestUrlPatternTestCase.test_urlpatterns ____________________
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <tests.test_testing.TestUrlPatternTestCase testMethod=test_urlpatterns>
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def test_urlpatterns(self):
[2024-11-23T20:01:21.108Z] > assert self.client.get('/').status_code == 200
[2024-11-23T20:01:21.108Z] E assert 400 == 200
[2024-11-23T20:01:21.108Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.108Z] E + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T20:01:21.108Z] E + where get = <django.test.client.Client object at 0x7176ea970e10>.get
[2024-11-23T20:01:21.108Z] E + where <django.test.client.Client object at 0x7176ea970e10> = <tests.test_testing.TestUrlPatternTestCase testMethod=test_urlpatterns>.client
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] tests/test_testing.py:339: AssertionError
[2024-11-23T20:01:21.108Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.108Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.108Z] Traceback (most recent call last):
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.108Z] response = get_response(request)
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.108Z] response = self.process_request(request)
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.108Z] host = request.get_host()
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.108Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.108Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.108Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.108Z] ____________________ TestExistingPatterns.test_urlpatterns _____________________
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <tests.test_testing.TestExistingPatterns testMethod=test_urlpatterns>
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def test_urlpatterns(self):
[2024-11-23T20:01:21.108Z] # sanity test to ensure that this test module does not have a '/' route
[2024-11-23T20:01:21.108Z] > assert self.client.get('/').status_code == 404
[2024-11-23T20:01:21.108Z] E assert 400 == 404
[2024-11-23T20:01:21.108Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.108Z] E + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T20:01:21.108Z] E + where get = <django.test.client.Client object at 0x7176ea970370>.get
[2024-11-23T20:01:21.108Z] E + where <django.test.client.Client object at 0x7176ea970370> = <tests.test_testing.TestExistingPatterns testMethod=test_urlpatterns>.client
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] tests/test_testing.py:345: AssertionError
[2024-11-23T20:01:21.108Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.108Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.108Z] Traceback (most recent call last):
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.108Z] response = get_response(request)
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.108Z] response = self.process_request(request)
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.108Z] host = request.get_host()
[2024-11-23T20:01:21.108Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.108Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.108Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.108Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T20:01:21.108Z] _____________ ThrottlingTests.test_request_throttling_is_per_user ______________
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea637fb0>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('', None, False, 'a', '', '', ...)
[2024-11-23T20:01:21.108Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea637fb0>})
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.108Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.108Z] # ever set during testing).
[2024-11-23T20:01:21.108Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.108Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.108Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.108Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] # params default might be backend specific.
[2024-11-23T20:01:21.108Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.108Z] else:
[2024-11-23T20:01:21.108Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb4830>
[2024-11-23T20:01:21.108Z] 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-23T20:01:21.108Z] params = ('', None, False, 'a', '', '', ...)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.108Z] if params is None:
[2024-11-23T20:01:21.108Z] return super().execute(query)
[2024-11-23T20:01:21.108Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.108Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.108Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.108Z] > return super().execute(query, params)
[2024-11-23T20:01:21.108Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] self = <tests.test_throttling.ThrottlingTests testMethod=test_request_throttling_is_per_user>
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] def test_request_throttling_is_per_user(self):
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] Ensure request rate is only limited per user, not globally for
[2024-11-23T20:01:21.108Z] PerUserThrottles
[2024-11-23T20:01:21.108Z] """
[2024-11-23T20:01:21.108Z] > self.ensure_is_throttled(MockView, 200)
[2024-11-23T20:01:21.108Z]
[2024-11-23T20:01:21.108Z] tests/test_throttling.py:129:
[2024-11-23T20:01:21.108Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.108Z] tests/test_throttling.py:117: in ensure_is_throttled
[2024-11-23T20:01:21.108Z] request.user = User.objects.create(username='a')
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.108Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.108Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.109Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.109Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.109Z] self.save_base(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.109Z] updated = self._save_table(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.109Z] results = self._do_insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.109Z] return manager._insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.109Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.109Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.109Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.109Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.109Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb4830>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'a', '', '', ...)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z] _ ScopedRateThrottleTests.test_get_cache_key_returns_correct_key_if_user_is_authenticated _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea636c30>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T20:01:21.109Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea636c30>})
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.109Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.109Z] # ever set during testing).
[2024-11-23T20:01:21.109Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.109Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.109Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] # params default might be backend specific.
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.109Z] else:
[2024-11-23T20:01:21.109Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa372f0>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <tests.test_throttling.ScopedRateThrottleTests testMethod=test_get_cache_key_returns_correct_key_if_user_is_authenticated>
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def test_get_cache_key_returns_correct_key_if_user_is_authenticated(self):
[2024-11-23T20:01:21.109Z] class DummyView:
[2024-11-23T20:01:21.109Z] throttle_scope = 'user'
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] request = Request(HttpRequest())
[2024-11-23T20:01:21.109Z] > user = User.objects.create(username='test')
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] tests/test_throttling.py:367:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.109Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.109Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.109Z] self.save_base(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.109Z] updated = self._save_table(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.109Z] results = self._do_insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.109Z] return manager._insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.109Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.109Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.109Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.109Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.109Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa372f0>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z] __________ AnonRateThrottleTests.test_authenticated_user_not_affected __________
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea640ad0>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T20:01:21.109Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea640ad0>})
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.109Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.109Z] # ever set during testing).
[2024-11-23T20:01:21.109Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.109Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.109Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] # params default might be backend specific.
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.109Z] else:
[2024-11-23T20:01:21.109Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e180>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <tests.test_throttling.AnonRateThrottleTests testMethod=test_authenticated_user_not_affected>
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def test_authenticated_user_not_affected(self):
[2024-11-23T20:01:21.109Z] request = Request(HttpRequest())
[2024-11-23T20:01:21.109Z] > user = User.objects.create(username='test')
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] tests/test_throttling.py:507:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.109Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T20:01:21.109Z] super().save(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.109Z] self.save_base(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.109Z] updated = self._save_table(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.109Z] results = self._do_insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.109Z] return manager._insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.109Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.109Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.109Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.109Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.109Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eb22e180>
[2024-11-23T20:01:21.109Z] 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-23T20:01:21.109Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z] ________ TestMaxValueValidatorValidation.test_max_value_validation_fail ________
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea620230>
[2024-11-23T20:01:21.109Z] sql = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (%s) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T20:01:21.109Z] params = (100,)
[2024-11-23T20:01:21.109Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea620230>})
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.109Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.109Z] # ever set during testing).
[2024-11-23T20:01:21.109Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.109Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.109Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] # params default might be backend specific.
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.109Z] else:
[2024-11-23T20:01:21.109Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa370b0>
[2024-11-23T20:01:21.109Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T20:01:21.109Z] params = (100,)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E sqlite3.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <tests.test_validation.TestMaxValueValidatorValidation testMethod=test_max_value_validation_fail>
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def test_max_value_validation_fail(self):
[2024-11-23T20:01:21.109Z] > obj = ValidationMaxValueValidatorModel.objects.create(number_value=100)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] tests/test_validation.py:157:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.109Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.109Z] self.save_base(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.109Z] updated = self._save_table(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.109Z] results = self._do_insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.109Z] return manager._insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.109Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.109Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.109Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.109Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.109Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa370b0>
[2024-11-23T20:01:21.109Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T20:01:21.109Z] params = (100,)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z] ______ TestMaxValueValidatorValidation.test_max_value_validation_success _______
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea621d90>
[2024-11-23T20:01:21.109Z] sql = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (%s) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T20:01:21.109Z] params = (100,)
[2024-11-23T20:01:21.109Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea621d90>})
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.109Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.109Z] # ever set during testing).
[2024-11-23T20:01:21.109Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.109Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.109Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] # params default might be backend specific.
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.109Z] else:
[2024-11-23T20:01:21.109Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb4830>
[2024-11-23T20:01:21.109Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T20:01:21.109Z] params = (100,)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E sqlite3.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <tests.test_validation.TestMaxValueValidatorValidation testMethod=test_max_value_validation_success>
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def test_max_value_validation_success(self):
[2024-11-23T20:01:21.109Z] > obj = ValidationMaxValueValidatorModel.objects.create(number_value=100)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] tests/test_validation.py:150:
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.109Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.109Z] self.save_base(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.109Z] updated = self._save_table(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.109Z] results = self._do_insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.109Z] return manager._insert(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.109Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.109Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.109Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.109Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.109Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.109Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.109Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.109Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.109Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb4830>
[2024-11-23T20:01:21.109Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T20:01:21.109Z] params = (100,)
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.109Z] if params is None:
[2024-11-23T20:01:21.109Z] return super().execute(query)
[2024-11-23T20:01:21.109Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.109Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.109Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.109Z] > return super().execute(query, params)
[2024-11-23T20:01:21.109Z] E django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.109Z] ______________ TestUniquenessValidation.test_doesnt_pollute_model ______________
[2024-11-23T20:01:21.109Z]
[2024-11-23T20:01:21.109Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea623950>
[2024-11-23T20:01:21.109Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.109Z] params = ('existing',)
[2024-11-23T20:01:21.110Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea623950>})
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.110Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.110Z] # ever set during testing).
[2024-11-23T20:01:21.110Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.110Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.110Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] # params default might be backend specific.
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.110Z] else:
[2024-11-23T20:01:21.110Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d17f0>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_doesnt_pollute_model>
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def setUp(self):
[2024-11-23T20:01:21.110Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.110Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.110Z] self.save_base(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.110Z] updated = self._save_table(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.110Z] results = self._do_insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.110Z] return manager._insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.110Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.110Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.110Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.110Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.110Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d17f0>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z] _________________ TestUniquenessValidation.test_is_not_unique __________________
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6a0890>
[2024-11-23T20:01:21.110Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6a0890>})
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.110Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.110Z] # ever set during testing).
[2024-11-23T20:01:21.110Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.110Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.110Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] # params default might be backend specific.
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.110Z] else:
[2024-11-23T20:01:21.110Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0ef0>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_is_not_unique>
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def setUp(self):
[2024-11-23T20:01:21.110Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.110Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.110Z] self.save_base(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.110Z] updated = self._save_table(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.110Z] results = self._do_insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.110Z] return manager._insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.110Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.110Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.110Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.110Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.110Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0ef0>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z] ___________________ TestUniquenessValidation.test_is_unique ____________________
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6a1070>
[2024-11-23T20:01:21.110Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6a1070>})
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.110Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.110Z] # ever set during testing).
[2024-11-23T20:01:21.110Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.110Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.110Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] # params default might be backend specific.
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.110Z] else:
[2024-11-23T20:01:21.110Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d22a0>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_is_unique>
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def setUp(self):
[2024-11-23T20:01:21.110Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.110Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.110Z] self.save_base(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.110Z] updated = self._save_table(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.110Z] results = self._do_insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.110Z] return manager._insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.110Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.110Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.110Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.110Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.110Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d22a0>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z] ____________ TestUniquenessValidation.test_related_model_is_unique _____________
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea67ce90>
[2024-11-23T20:01:21.110Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea67ce90>})
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.110Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.110Z] # ever set during testing).
[2024-11-23T20:01:21.110Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.110Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.110Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] # params default might be backend specific.
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.110Z] else:
[2024-11-23T20:01:21.110Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2450>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_related_model_is_unique>
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def setUp(self):
[2024-11-23T20:01:21.110Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.110Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.110Z] self.save_base(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.110Z] updated = self._save_table(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.110Z] results = self._do_insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.110Z] return manager._insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.110Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.110Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.110Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.110Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.110Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2450>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z] _____________ TestUniquenessValidation.test_relation_is_not_unique _____________
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea67c770>
[2024-11-23T20:01:21.110Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea67c770>})
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.110Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.110Z] # ever set during testing).
[2024-11-23T20:01:21.110Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.110Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.110Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.110Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] # params default might be backend specific.
[2024-11-23T20:01:21.110Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.110Z] else:
[2024-11-23T20:01:21.110Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d1130>
[2024-11-23T20:01:21.110Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.110Z] params = ('existing',)
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.110Z] if params is None:
[2024-11-23T20:01:21.110Z] return super().execute(query)
[2024-11-23T20:01:21.110Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.110Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.110Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.110Z] > return super().execute(query, params)
[2024-11-23T20:01:21.110Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_relation_is_not_unique>
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] def setUp(self):
[2024-11-23T20:01:21.110Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.110Z]
[2024-11-23T20:01:21.110Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.110Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.110Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.110Z] self.save_base(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.110Z] updated = self._save_table(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.110Z] results = self._do_insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.110Z] return manager._insert(
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.110Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.110Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.111Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.111Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.111Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.111Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.111Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d1130>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z] ______________________ TestUniquenessValidation.test_repr ______________________
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6a05f0>
[2024-11-23T20:01:21.111Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6a05f0>})
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.111Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.111Z] # ever set during testing).
[2024-11-23T20:01:21.111Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.111Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.111Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] # params default might be backend specific.
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.111Z] else:
[2024-11-23T20:01:21.111Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0b90>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_repr>
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def setUp(self):
[2024-11-23T20:01:21.111Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.111Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.111Z] self.save_base(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.111Z] updated = self._save_table(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.111Z] results = self._do_insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.111Z] return manager._insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.111Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.111Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.111Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.111Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.111Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0b90>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z] ___________ TestUniquenessValidation.test_updated_instance_excluded ____________
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6a0b30>
[2024-11-23T20:01:21.111Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6a0b30>})
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.111Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.111Z] # ever set during testing).
[2024-11-23T20:01:21.111Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.111Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.111Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] # params default might be backend specific.
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.111Z] else:
[2024-11-23T20:01:21.111Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2d50>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_updated_instance_excluded>
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def setUp(self):
[2024-11-23T20:01:21.111Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.111Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.111Z] self.save_base(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.111Z] updated = self._save_table(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.111Z] results = self._do_insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.111Z] return manager._insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.111Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.111Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.111Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.111Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.111Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2d50>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z] _______ TestUniquenessValidation.test_value_error_treated_as_not_unique ________
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea67dd90>
[2024-11-23T20:01:21.111Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea67dd90>})
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.111Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.111Z] # ever set during testing).
[2024-11-23T20:01:21.111Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.111Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.111Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] # params default might be backend specific.
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.111Z] else:
[2024-11-23T20:01:21.111Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0b90>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_value_error_treated_as_not_unique>
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def setUp(self):
[2024-11-23T20:01:21.111Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] tests/test_validators.py:78:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.111Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.111Z] self.save_base(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.111Z] updated = self._save_table(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.111Z] results = self._do_insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.111Z] return manager._insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.111Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.111Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.111Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.111Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.111Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0b90>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('existing',)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z] _________ TestUniquenessTogetherValidation.test_allow_explict_override _________
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea67ed50>
[2024-11-23T20:01:21.111Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('example', 1)
[2024-11-23T20:01:21.111Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea67ed50>})
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.111Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.111Z] # ever set during testing).
[2024-11-23T20:01:21.111Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.111Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.111Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] # params default might be backend specific.
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.111Z] else:
[2024-11-23T20:01:21.111Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d1be0>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('example', 1)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_allow_explict_override>
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def setUp(self):
[2024-11-23T20:01:21.111Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.111Z] race_name='example',
[2024-11-23T20:01:21.111Z] position=1
[2024-11-23T20:01:21.111Z] )
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.111Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.111Z] self.save_base(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.111Z] updated = self._save_table(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.111Z] results = self._do_insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.111Z] return manager._insert(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.111Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.111Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.111Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.111Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.111Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.111Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d1be0>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('example', 1)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.111Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.111Z] _ TestUniquenessTogetherValidation.test_default_validator_with_fields_with_source _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea6a3230>
[2024-11-23T20:01:21.111Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('example', 1)
[2024-11-23T20:01:21.111Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea6a3230>})
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.111Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.111Z] # ever set during testing).
[2024-11-23T20:01:21.111Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.111Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.111Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.111Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] # params default might be backend specific.
[2024-11-23T20:01:21.111Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.111Z] else:
[2024-11-23T20:01:21.111Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.111Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37770>
[2024-11-23T20:01:21.111Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.111Z] params = ('example', 1)
[2024-11-23T20:01:21.111Z]
[2024-11-23T20:01:21.111Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.111Z] if params is None:
[2024-11-23T20:01:21.111Z] return super().execute(query)
[2024-11-23T20:01:21.111Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.111Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.111Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.111Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_default_validator_with_fields_with_source>
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def setUp(self):
[2024-11-23T20:01:21.112Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.112Z] race_name='example',
[2024-11-23T20:01:21.112Z] position=1
[2024-11-23T20:01:21.112Z] )
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.112Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.112Z] self.save_base(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.112Z] updated = self._save_table(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.112Z] results = self._do_insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.112Z] return manager._insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.112Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.112Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.112Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.112Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.112Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37770>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z] _ TestUniquenessTogetherValidation.test_default_validator_with_multiple_fields_with_same_source _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4b10d0>
[2024-11-23T20:01:21.112Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4b10d0>})
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.112Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.112Z] # ever set during testing).
[2024-11-23T20:01:21.112Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.112Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.112Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] # params default might be backend specific.
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.112Z] else:
[2024-11-23T20:01:21.112Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d3530>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_default_validator_with_multiple_fields_with_same_source>
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def setUp(self):
[2024-11-23T20:01:21.112Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.112Z] race_name='example',
[2024-11-23T20:01:21.112Z] position=1
[2024-11-23T20:01:21.112Z] )
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.112Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.112Z] self.save_base(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.112Z] updated = self._save_table(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.112Z] results = self._do_insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.112Z] return manager._insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.112Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.112Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.112Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.112Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.112Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d3530>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z] _ TestUniquenessTogetherValidation.test_do_not_ignore_validation_for_null_fields _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4b0c50>
[2024-11-23T20:01:21.112Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4b0c50>})
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.112Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.112Z] # ever set during testing).
[2024-11-23T20:01:21.112Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.112Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.112Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] # params default might be backend specific.
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.112Z] else:
[2024-11-23T20:01:21.112Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_do_not_ignore_validation_for_null_fields>
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def setUp(self):
[2024-11-23T20:01:21.112Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.112Z] race_name='example',
[2024-11-23T20:01:21.112Z] position=1
[2024-11-23T20:01:21.112Z] )
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.112Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.112Z] self.save_base(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.112Z] updated = self._save_table(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.112Z] results = self._do_insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.112Z] return manager._insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.112Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.112Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.112Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.112Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.112Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z] _ TestUniquenessTogetherValidation.test_filter_queryset_do_not_skip_existing_attribute _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4b1d30>
[2024-11-23T20:01:21.112Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4b1d30>})
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.112Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.112Z] # ever set during testing).
[2024-11-23T20:01:21.112Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.112Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.112Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] # params default might be backend specific.
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.112Z] else:
[2024-11-23T20:01:21.112Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_filter_queryset_do_not_skip_existing_attribute>
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def setUp(self):
[2024-11-23T20:01:21.112Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.112Z] race_name='example',
[2024-11-23T20:01:21.112Z] position=1
[2024-11-23T20:01:21.112Z] )
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.112Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.112Z] self.save_base(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.112Z] updated = self._save_table(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.112Z] results = self._do_insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.112Z] return manager._insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.112Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.112Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.112Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.112Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.112Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z] _________ TestUniquenessTogetherValidation.test_ignore_excluded_fields _________
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea642db0>
[2024-11-23T20:01:21.112Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea642db0>})
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.112Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.112Z] # ever set during testing).
[2024-11-23T20:01:21.112Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.112Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.112Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] # params default might be backend specific.
[2024-11-23T20:01:21.112Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.112Z] else:
[2024-11-23T20:01:21.112Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.112Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.112Z] params = ('example', 1)
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.112Z] if params is None:
[2024-11-23T20:01:21.112Z] return super().execute(query)
[2024-11-23T20:01:21.112Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.112Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.112Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.112Z] > return super().execute(query, params)
[2024-11-23T20:01:21.112Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_excluded_fields>
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] def setUp(self):
[2024-11-23T20:01:21.112Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.112Z] race_name='example',
[2024-11-23T20:01:21.112Z] position=1
[2024-11-23T20:01:21.112Z] )
[2024-11-23T20:01:21.112Z]
[2024-11-23T20:01:21.112Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.112Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.112Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.112Z] self.save_base(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.112Z] updated = self._save_table(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.112Z] results = self._do_insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.112Z] return manager._insert(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.112Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.112Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.112Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.112Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.112Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.112Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.112Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.113Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z] ________ TestUniquenessTogetherValidation.test_ignore_read_only_fields _________
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea636630>
[2024-11-23T20:01:21.113Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea636630>})
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.113Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.113Z] # ever set during testing).
[2024-11-23T20:01:21.113Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.113Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.113Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] # params default might be backend specific.
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.113Z] else:
[2024-11-23T20:01:21.113Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37770>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_read_only_fields>
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def setUp(self):
[2024-11-23T20:01:21.113Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.113Z] race_name='example',
[2024-11-23T20:01:21.113Z] position=1
[2024-11-23T20:01:21.113Z] )
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.113Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.113Z] self.save_base(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.113Z] updated = self._save_table(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.113Z] results = self._do_insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.113Z] return manager._insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.113Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.113Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.113Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.113Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.113Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37770>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z] ___ TestUniquenessTogetherValidation.test_ignore_validation_for_null_fields ____
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4b3170>
[2024-11-23T20:01:21.113Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4b3170>})
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.113Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.113Z] # ever set during testing).
[2024-11-23T20:01:21.113Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.113Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.113Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] # params default might be backend specific.
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.113Z] else:
[2024-11-23T20:01:21.113Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa357f0>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_validation_for_null_fields>
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def setUp(self):
[2024-11-23T20:01:21.113Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.113Z] race_name='example',
[2024-11-23T20:01:21.113Z] position=1
[2024-11-23T20:01:21.113Z] )
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.113Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.113Z] self.save_base(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.113Z] updated = self._save_table(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.113Z] results = self._do_insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.113Z] return manager._insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.113Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.113Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.113Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.113Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.113Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa357f0>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z] _ TestUniquenessTogetherValidation.test_ignore_validation_for_unchanged_fields _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8110>
[2024-11-23T20:01:21.113Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8110>})
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.113Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.113Z] # ever set during testing).
[2024-11-23T20:01:21.113Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.113Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.113Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] # params default might be backend specific.
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.113Z] else:
[2024-11-23T20:01:21.113Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_validation_for_unchanged_fields>
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def setUp(self):
[2024-11-23T20:01:21.113Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.113Z] race_name='example',
[2024-11-23T20:01:21.113Z] position=1
[2024-11-23T20:01:21.113Z] )
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.113Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.113Z] self.save_base(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.113Z] updated = self._save_table(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.113Z] results = self._do_insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.113Z] return manager._insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.113Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.113Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.113Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.113Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.113Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z] _________ TestUniquenessTogetherValidation.test_is_not_unique_together _________
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8a70>
[2024-11-23T20:01:21.113Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8a70>})
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.113Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.113Z] # ever set during testing).
[2024-11-23T20:01:21.113Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.113Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.113Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] # params default might be backend specific.
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.113Z] else:
[2024-11-23T20:01:21.113Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_is_not_unique_together>
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def setUp(self):
[2024-11-23T20:01:21.113Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.113Z] race_name='example',
[2024-11-23T20:01:21.113Z] position=1
[2024-11-23T20:01:21.113Z] )
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.113Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.113Z] self.save_base(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.113Z] updated = self._save_table(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.113Z] results = self._do_insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.113Z] return manager._insert(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.113Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.113Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.113Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.113Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.113Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.113Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z] ___________ TestUniquenessTogetherValidation.test_is_unique_together ___________
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8ad0>
[2024-11-23T20:01:21.113Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8ad0>})
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.113Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.113Z] # ever set during testing).
[2024-11-23T20:01:21.113Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.113Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.113Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.113Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] # params default might be backend specific.
[2024-11-23T20:01:21.113Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.113Z] else:
[2024-11-23T20:01:21.113Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.113Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa357f0>
[2024-11-23T20:01:21.113Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.113Z] params = ('example', 1)
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.113Z] if params is None:
[2024-11-23T20:01:21.113Z] return super().execute(query)
[2024-11-23T20:01:21.113Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.113Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.113Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.113Z] > return super().execute(query, params)
[2024-11-23T20:01:21.113Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.113Z]
[2024-11-23T20:01:21.113Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_is_unique_together>
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def setUp(self):
[2024-11-23T20:01:21.114Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.114Z] race_name='example',
[2024-11-23T20:01:21.114Z] position=1
[2024-11-23T20:01:21.114Z] )
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.114Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.114Z] self.save_base(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.114Z] updated = self._save_table(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.114Z] results = self._do_insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.114Z] return manager._insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.114Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.114Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.114Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.114Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.114Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa357f0>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z] _____ TestUniquenessTogetherValidation.test_read_only_fields_with_default ______
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e0ad0>
[2024-11-23T20:01:21.114Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e0ad0>})
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.114Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.114Z] # ever set during testing).
[2024-11-23T20:01:21.114Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.114Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.114Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] # params default might be backend specific.
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.114Z] else:
[2024-11-23T20:01:21.114Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d1d90>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_read_only_fields_with_default>
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def setUp(self):
[2024-11-23T20:01:21.114Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.114Z] race_name='example',
[2024-11-23T20:01:21.114Z] position=1
[2024-11-23T20:01:21.114Z] )
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.114Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.114Z] self.save_base(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.114Z] updated = self._save_table(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.114Z] results = self._do_insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.114Z] return manager._insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.114Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.114Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.114Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.114Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.114Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d1d90>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z] _ TestUniquenessTogetherValidation.test_read_only_fields_with_default_and_source _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e13d0>
[2024-11-23T20:01:21.114Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e13d0>})
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.114Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.114Z] # ever set during testing).
[2024-11-23T20:01:21.114Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.114Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.114Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] # params default might be backend specific.
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.114Z] else:
[2024-11-23T20:01:21.114Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_read_only_fields_with_default_and_source>
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def setUp(self):
[2024-11-23T20:01:21.114Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.114Z] race_name='example',
[2024-11-23T20:01:21.114Z] position=1
[2024-11-23T20:01:21.114Z] )
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.114Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.114Z] self.save_base(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.114Z] updated = self._save_table(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.114Z] results = self._do_insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.114Z] return manager._insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.114Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.114Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.114Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.114Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.114Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea9c2c30>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z] __________________ TestUniquenessTogetherValidation.test_repr __________________
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4c9490>
[2024-11-23T20:01:21.114Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4c9490>})
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.114Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.114Z] # ever set during testing).
[2024-11-23T20:01:21.114Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.114Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.114Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] # params default might be backend specific.
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.114Z] else:
[2024-11-23T20:01:21.114Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2690>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_repr>
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def setUp(self):
[2024-11-23T20:01:21.114Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.114Z] race_name='example',
[2024-11-23T20:01:21.114Z] position=1
[2024-11-23T20:01:21.114Z] )
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.114Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.114Z] self.save_base(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.114Z] updated = self._save_table(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.114Z] results = self._do_insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.114Z] return manager._insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.114Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.114Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.114Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.114Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.114Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2690>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z] ______ TestUniquenessTogetherValidation.test_unique_together_is_required _______
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e1bb0>
[2024-11-23T20:01:21.114Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e1bb0>})
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.114Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.114Z] # ever set during testing).
[2024-11-23T20:01:21.114Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.114Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.114Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] # params default might be backend specific.
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.114Z] else:
[2024-11-23T20:01:21.114Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d09e0>
[2024-11-23T20:01:21.114Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.114Z] params = ('example', 1)
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.114Z] if params is None:
[2024-11-23T20:01:21.114Z] return super().execute(query)
[2024-11-23T20:01:21.114Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.114Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.114Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.114Z] > return super().execute(query, params)
[2024-11-23T20:01:21.114Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_unique_together_is_required>
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] def setUp(self):
[2024-11-23T20:01:21.114Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.114Z] race_name='example',
[2024-11-23T20:01:21.114Z] position=1
[2024-11-23T20:01:21.114Z] )
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.114Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.114Z] self.save_base(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.114Z] updated = self._save_table(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.114Z] results = self._do_insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.114Z] return manager._insert(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.114Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.114Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.114Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.114Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.114Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.114Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.114Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.114Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.114Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.114Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.114Z]
[2024-11-23T20:01:21.114Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d09e0>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z] _ TestUniquenessTogetherValidation.test_updated_instance_excluded_from_unique_together _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e1d90>
[2024-11-23T20:01:21.115Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e1d90>})
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.115Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.115Z] # ever set during testing).
[2024-11-23T20:01:21.115Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.115Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.115Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] # params default might be backend specific.
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.115Z] else:
[2024-11-23T20:01:21.115Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d03b0>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_updated_instance_excluded_from_unique_together>
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def setUp(self):
[2024-11-23T20:01:21.115Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.115Z] race_name='example',
[2024-11-23T20:01:21.115Z] position=1
[2024-11-23T20:01:21.115Z] )
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.115Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.115Z] self.save_base(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.115Z] updated = self._save_table(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.115Z] results = self._do_insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.115Z] return manager._insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.115Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.115Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.115Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.115Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.115Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d03b0>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z] ______ TestUniquenessTogetherValidation.test_writeable_fields_with_source ______
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4c9bb0>
[2024-11-23T20:01:21.115Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4c9bb0>})
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.115Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.115Z] # ever set during testing).
[2024-11-23T20:01:21.115Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.115Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.115Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] # params default might be backend specific.
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.115Z] else:
[2024-11-23T20:01:21.115Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d3380>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_writeable_fields_with_source>
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def setUp(self):
[2024-11-23T20:01:21.115Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T20:01:21.115Z] race_name='example',
[2024-11-23T20:01:21.115Z] position=1
[2024-11-23T20:01:21.115Z] )
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] tests/test_validators.py:187:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.115Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.115Z] self.save_base(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.115Z] updated = self._save_table(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.115Z] results = self._do_insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.115Z] return manager._insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.115Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.115Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.115Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.115Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.115Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d3380>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z] ___________________ TestUniqueConstraintValidation.test_repr ___________________
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e4c50>
[2024-11-23T20:01:21.115Z] sql = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (%s, %s, %s, %s) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e4c50>})
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.115Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.115Z] # ever set during testing).
[2024-11-23T20:01:21.115Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.115Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.115Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] # params default might be backend specific.
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.115Z] else:
[2024-11-23T20:01:21.115Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d30b0>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E sqlite3.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <tests.test_validators.TestUniqueConstraintValidation testMethod=test_repr>
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def setUp(self):
[2024-11-23T20:01:21.115Z] > self.instance = UniqueConstraintModel.objects.create(
[2024-11-23T20:01:21.115Z] race_name='example',
[2024-11-23T20:01:21.115Z] position=1,
[2024-11-23T20:01:21.115Z] global_id=1
[2024-11-23T20:01:21.115Z] )
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] tests/test_validators.py:528:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.115Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.115Z] self.save_base(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.115Z] updated = self._save_table(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.115Z] results = self._do_insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.115Z] return manager._insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.115Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.115Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.115Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.115Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.115Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d30b0>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z] _______ TestUniqueConstraintValidation.test_single_field_uniq_validators _______
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e56d0>
[2024-11-23T20:01:21.115Z] sql = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (%s, %s, %s, %s) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e56d0>})
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.115Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.115Z] # ever set during testing).
[2024-11-23T20:01:21.115Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.115Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.115Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] # params default might be backend specific.
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.115Z] else:
[2024-11-23T20:01:21.115Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d3020>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E sqlite3.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <tests.test_validators.TestUniqueConstraintValidation testMethod=test_single_field_uniq_validators>
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def setUp(self):
[2024-11-23T20:01:21.115Z] > self.instance = UniqueConstraintModel.objects.create(
[2024-11-23T20:01:21.115Z] race_name='example',
[2024-11-23T20:01:21.115Z] position=1,
[2024-11-23T20:01:21.115Z] global_id=1
[2024-11-23T20:01:21.115Z] )
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] tests/test_validators.py:528:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.115Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.115Z] self.save_base(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.115Z] updated = self._save_table(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.115Z] results = self._do_insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.115Z] return manager._insert(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.115Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.115Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.115Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.115Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.115Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.115Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d3020>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z] __________ TestUniqueConstraintValidation.test_unique_together_field ___________
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea498530>
[2024-11-23T20:01:21.115Z] sql = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (%s, %s, %s, %s) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea498530>})
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.115Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.115Z] # ever set during testing).
[2024-11-23T20:01:21.115Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.115Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.115Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.115Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] # params default might be backend specific.
[2024-11-23T20:01:21.115Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.115Z] else:
[2024-11-23T20:01:21.115Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.115Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0440>
[2024-11-23T20:01:21.115Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.115Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.115Z] if params is None:
[2024-11-23T20:01:21.115Z] return super().execute(query)
[2024-11-23T20:01:21.115Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.115Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.115Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.115Z] > return super().execute(query, params)
[2024-11-23T20:01:21.115Z] E sqlite3.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] self = <tests.test_validators.TestUniqueConstraintValidation testMethod=test_unique_together_field>
[2024-11-23T20:01:21.115Z]
[2024-11-23T20:01:21.115Z] def setUp(self):
[2024-11-23T20:01:21.115Z] > self.instance = UniqueConstraintModel.objects.create(
[2024-11-23T20:01:21.115Z] race_name='example',
[2024-11-23T20:01:21.116Z] position=1,
[2024-11-23T20:01:21.116Z] global_id=1
[2024-11-23T20:01:21.116Z] )
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] tests/test_validators.py:528:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.116Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.116Z] self.save_base(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.116Z] updated = self._save_table(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.116Z] results = self._do_insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.116Z] return manager._insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.116Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.116Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.116Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.116Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.116Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d0440>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('example', 1, 1, None)
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z] _________ TestUniquenessForDateValidation.test_is_not_unique_for_date __________
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea49b530>
[2024-11-23T20:01:21.116Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea49b530>})
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.116Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.116Z] # ever set during testing).
[2024-11-23T20:01:21.116Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.116Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.116Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] # params default might be backend specific.
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.116Z] else:
[2024-11-23T20:01:21.116Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d28d0>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_is_not_unique_for_date>
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def setUp(self):
[2024-11-23T20:01:21.116Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T20:01:21.116Z] slug='existing',
[2024-11-23T20:01:21.116Z] published='2000-01-01'
[2024-11-23T20:01:21.116Z] )
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] tests/test_validators.py:609:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.116Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.116Z] self.save_base(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.116Z] updated = self._save_table(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.116Z] results = self._do_insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.116Z] return manager._insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.116Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.116Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.116Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.116Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.116Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d28d0>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z] ___________ TestUniquenessForDateValidation.test_is_unique_for_date ____________
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e6ff0>
[2024-11-23T20:01:21.116Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e6ff0>})
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.116Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.116Z] # ever set during testing).
[2024-11-23T20:01:21.116Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.116Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.116Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] # params default might be backend specific.
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.116Z] else:
[2024-11-23T20:01:21.116Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2450>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_is_unique_for_date>
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def setUp(self):
[2024-11-23T20:01:21.116Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T20:01:21.116Z] slug='existing',
[2024-11-23T20:01:21.116Z] published='2000-01-01'
[2024-11-23T20:01:21.116Z] )
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] tests/test_validators.py:609:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.116Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.116Z] self.save_base(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.116Z] updated = self._save_table(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.116Z] results = self._do_insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.116Z] return manager._insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.116Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.116Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.116Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.116Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.116Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2450>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z] __________________ TestUniquenessForDateValidation.test_repr ___________________
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea3e6db0>
[2024-11-23T20:01:21.116Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea3e6db0>})
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.116Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.116Z] # ever set during testing).
[2024-11-23T20:01:21.116Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.116Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.116Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] # params default might be backend specific.
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.116Z] else:
[2024-11-23T20:01:21.116Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2f00>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_repr>
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def setUp(self):
[2024-11-23T20:01:21.116Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T20:01:21.116Z] slug='existing',
[2024-11-23T20:01:21.116Z] published='2000-01-01'
[2024-11-23T20:01:21.116Z] )
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] tests/test_validators.py:609:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.116Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.116Z] self.save_base(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.116Z] updated = self._save_table(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.116Z] results = self._do_insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.116Z] return manager._insert(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.116Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.116Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.116Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.116Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.116Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2f00>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z] _ TestUniquenessForDateValidation.test_updated_instance_excluded_from_unique_for_date _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea498ad0>
[2024-11-23T20:01:21.116Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea498ad0>})
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.116Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.116Z] # ever set during testing).
[2024-11-23T20:01:21.116Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.116Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.116Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.116Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] # params default might be backend specific.
[2024-11-23T20:01:21.116Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.116Z] else:
[2024-11-23T20:01:21.116Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d20f0>
[2024-11-23T20:01:21.116Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.116Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.116Z] if params is None:
[2024-11-23T20:01:21.116Z] return super().execute(query)
[2024-11-23T20:01:21.116Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.116Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.116Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.116Z] > return super().execute(query, params)
[2024-11-23T20:01:21.116Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_updated_instance_excluded_from_unique_for_date>
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] def setUp(self):
[2024-11-23T20:01:21.116Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T20:01:21.116Z] slug='existing',
[2024-11-23T20:01:21.116Z] published='2000-01-01'
[2024-11-23T20:01:21.116Z] )
[2024-11-23T20:01:21.116Z]
[2024-11-23T20:01:21.116Z] tests/test_validators.py:609:
[2024-11-23T20:01:21.116Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.116Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.116Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.116Z] self.save_base(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.116Z] updated = self._save_table(
[2024-11-23T20:01:21.116Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.117Z] results = self._do_insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.117Z] return manager._insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.117Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.117Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.117Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.117Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.117Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d20f0>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2000-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z] ________________ UniqueForMonthTests.test_not_unique_for_month _________________
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea49bad0>
[2024-11-23T20:01:21.117Z] sql = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea49bad0>})
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.117Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.117Z] # ever set during testing).
[2024-11-23T20:01:21.117Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.117Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.117Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] # params default might be backend specific.
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.117Z] else:
[2024-11-23T20:01:21.117Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2de0>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E sqlite3.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <tests.test_validators.UniqueForMonthTests testMethod=test_not_unique_for_month>
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def setUp(self):
[2024-11-23T20:01:21.117Z] > self.instance = UniqueForMonthModel.objects.create(
[2024-11-23T20:01:21.117Z] slug='existing', published='2017-01-01'
[2024-11-23T20:01:21.117Z] )
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] tests/test_validators.py:680:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.117Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.117Z] self.save_base(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.117Z] updated = self._save_table(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.117Z] results = self._do_insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.117Z] return manager._insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.117Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.117Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.117Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.117Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.117Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176ea6d2de0>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z] __________________ UniqueForMonthTests.test_unique_for_month ___________________
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8590>
[2024-11-23T20:01:21.117Z] sql = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea4c8590>})
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.117Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.117Z] # ever set during testing).
[2024-11-23T20:01:21.117Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.117Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.117Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] # params default might be backend specific.
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.117Z] else:
[2024-11-23T20:01:21.117Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E sqlite3.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <tests.test_validators.UniqueForMonthTests testMethod=test_unique_for_month>
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def setUp(self):
[2024-11-23T20:01:21.117Z] > self.instance = UniqueForMonthModel.objects.create(
[2024-11-23T20:01:21.117Z] slug='existing', published='2017-01-01'
[2024-11-23T20:01:21.117Z] )
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] tests/test_validators.py:680:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.117Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.117Z] self.save_base(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.117Z] updated = self._save_table(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.117Z] results = self._do_insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.117Z] return manager._insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.117Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.117Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.117Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.117Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.117Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eabb7d10>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z] _________________ UniqueForYearTests.test_not_unique_for_year __________________
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea40bcb0>
[2024-11-23T20:01:21.117Z] sql = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea40bcb0>})
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.117Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.117Z] # ever set during testing).
[2024-11-23T20:01:21.117Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.117Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.117Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] # params default might be backend specific.
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.117Z] else:
[2024-11-23T20:01:21.117Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E sqlite3.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <tests.test_validators.UniqueForYearTests testMethod=test_not_unique_for_year>
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def setUp(self):
[2024-11-23T20:01:21.117Z] > self.instance = UniqueForYearModel.objects.create(
[2024-11-23T20:01:21.117Z] slug='existing', published='2017-01-01'
[2024-11-23T20:01:21.117Z] )
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] tests/test_validators.py:719:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.117Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.117Z] self.save_base(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.117Z] updated = self._save_table(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.117Z] results = self._do_insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.117Z] return manager._insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.117Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.117Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.117Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.117Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.117Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa37530>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z] ___________________ UniqueForYearTests.test_unique_for_year ____________________
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.utils.CursorWrapper object at 0x7176ea409790>
[2024-11-23T20:01:21.117Z] sql = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7176ea409790>})
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T20:01:21.117Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T20:01:21.117Z] # ever set during testing).
[2024-11-23T20:01:21.117Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T20:01:21.117Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T20:01:21.117Z] self.db.validate_no_broken_transaction()
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] # params default might be backend specific.
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql)
[2024-11-23T20:01:21.117Z] else:
[2024-11-23T20:01:21.117Z] > return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa357f0>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E sqlite3.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] The above exception was the direct cause of the following exception:
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <tests.test_validators.UniqueForYearTests testMethod=test_unique_for_year>
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def setUp(self):
[2024-11-23T20:01:21.117Z] > self.instance = UniqueForYearModel.objects.create(
[2024-11-23T20:01:21.117Z] slug='existing', published='2017-01-01'
[2024-11-23T20:01:21.117Z] )
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] tests/test_validators.py:719:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T20:01:21.117Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T20:01:21.117Z] self.save_base(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T20:01:21.117Z] updated = self._save_table(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T20:01:21.117Z] results = self._do_insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T20:01:21.117Z] return manager._insert(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T20:01:21.117Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T20:01:21.117Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T20:01:21.117Z] cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T20:01:21.117Z] return self._execute_with_wrappers(
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T20:01:21.117Z] return executor(sql, params, many, context)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T20:01:21.117Z] with self.db.wrap_database_errors:
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T20:01:21.117Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T20:01:21.117Z] return self.cursor.execute(sql, params)
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7176eaa357f0>
[2024-11-23T20:01:21.117Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T20:01:21.117Z] params = ('existing', '2017-01-01')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def execute(self, query, params=None):
[2024-11-23T20:01:21.117Z] if params is None:
[2024-11-23T20:01:21.117Z] return super().execute(query)
[2024-11-23T20:01:21.117Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T20:01:21.117Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T20:01:21.117Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T20:01:21.117Z] > return super().execute(query, params)
[2024-11-23T20:01:21.117Z] E django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T20:01:21.117Z] ______________ TestURLReversing.test_reverse_namespace_versioning ______________
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_namespace_versioning>
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] def test_reverse_namespace_versioning(self):
[2024-11-23T20:01:21.117Z] class FakeResolverMatch(ResolverMatch):
[2024-11-23T20:01:21.117Z] namespace = 'v1'
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] scheme = versioning.NamespaceVersioning
[2024-11-23T20:01:21.117Z] view = ReverseView.as_view(versioning_class=scheme)
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] request = factory.get('/v1/endpoint/')
[2024-11-23T20:01:21.117Z] request.resolver_match = FakeResolverMatch
[2024-11-23T20:01:21.117Z] > response = view(request, version='v1')
[2024-11-23T20:01:21.117Z]
[2024-11-23T20:01:21.117Z] tests/test_versioning.py:220:
[2024-11-23T20:01:21.117Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:21.117Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:21.117Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:21.117Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:21.117Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:21.117Z] response = self.handle_exception(exc)
[2024-11-23T20:01:21.117Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:21.117Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:21.117Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:21.117Z] raise exc
[2024-11-23T20:01:21.117Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:21.117Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:21.117Z] tests/test_versioning.py:23: in get
[2024-11-23T20:01:21.118Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T20:01:21.118Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T20:01:21.118Z] return super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/v1/endpoint/'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] _____________ TestURLReversing.test_reverse_query_param_versioning _____________
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_query_param_versioning>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def test_reverse_query_param_versioning(self):
[2024-11-23T20:01:21.118Z] scheme = versioning.QueryParameterVersioning
[2024-11-23T20:01:21.118Z] view = ReverseView.as_view(versioning_class=scheme)
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] request = factory.get('/endpoint/?version=v1')
[2024-11-23T20:01:21.118Z] > response = view(request)
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:171:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:21.118Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:21.118Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:21.118Z] response = self.handle_exception(exc)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:21.118Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:21.118Z] raise exc
[2024-11-23T20:01:21.118Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:21.118Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:23: in get
[2024-11-23T20:01:21.118Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T20:01:21.118Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:181: in reverse
[2024-11-23T20:01:21.118Z] url = super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/endpoint/?version=v1'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] __________________ TestURLReversing.test_reverse_unversioned ___________________
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_unversioned>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def test_reverse_unversioned(self):
[2024-11-23T20:01:21.118Z] view = ReverseView.as_view()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] request = factory.get('/endpoint/')
[2024-11-23T20:01:21.118Z] > response = view(request)
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:163:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:21.118Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:21.118Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:21.118Z] response = self.handle_exception(exc)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:21.118Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:21.118Z] raise exc
[2024-11-23T20:01:21.118Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:21.118Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:23: in get
[2024-11-23T20:01:21.118Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:47: in reverse
[2024-11-23T20:01:21.118Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/endpoint/'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] ______________ TestURLReversing.test_reverse_url_path_versioning _______________
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_url_path_versioning>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def test_reverse_url_path_versioning(self):
[2024-11-23T20:01:21.118Z] scheme = versioning.URLPathVersioning
[2024-11-23T20:01:21.118Z] view = ReverseView.as_view(versioning_class=scheme)
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] request = factory.get('/v1/endpoint/')
[2024-11-23T20:01:21.118Z] > response = view(request, version='v1')
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:196:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T20:01:21.118Z] return view_func(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T20:01:21.118Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:515: in dispatch
[2024-11-23T20:01:21.118Z] response = self.handle_exception(exc)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T20:01:21.118Z] self.raise_uncaught_exception(exc)
[2024-11-23T20:01:21.118Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T20:01:21.118Z] raise exc
[2024-11-23T20:01:21.118Z] rest_framework/views.py:512: in dispatch
[2024-11-23T20:01:21.118Z] response = handler(request, *args, **kwargs)
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:23: in get
[2024-11-23T20:01:21.118Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T20:01:21.118Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:89: in reverse
[2024-11-23T20:01:21.118Z] return super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/v1/endpoint/'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_nested _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_api_url_is_properly_reversed_with_nested>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def test_api_url_is_properly_reversed_with_nested(self):
[2024-11-23T20:01:21.118Z] field = self._create_field('nested', 'v1:nested-namespace')
[2024-11-23T20:01:21.118Z] > assert field.to_representation(PKOnlyObject(3)) == 'http://testserver/v1/nested/namespaced/3/'
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:389:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T20:01:21.118Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T20:01:21.118Z] rest_framework/relations.py:334: in get_url
[2024-11-23T20:01:21.118Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T20:01:21.118Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T20:01:21.118Z] return super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_v1 _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_api_url_is_properly_reversed_with_v1>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def test_api_url_is_properly_reversed_with_v1(self):
[2024-11-23T20:01:21.118Z] field = self._create_field('namespaced', 'v1')
[2024-11-23T20:01:21.118Z] > assert field.to_representation(PKOnlyObject(3)) == 'http://testserver/v1/namespaced/3/'
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:381:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T20:01:21.118Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T20:01:21.118Z] rest_framework/relations.py:334: in get_url
[2024-11-23T20:01:21.118Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T20:01:21.118Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T20:01:21.118Z] return super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_v2 _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_api_url_is_properly_reversed_with_v2>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def test_api_url_is_properly_reversed_with_v2(self):
[2024-11-23T20:01:21.118Z] field = self._create_field('namespaced', 'v2')
[2024-11-23T20:01:21.118Z] > assert field.to_representation(PKOnlyObject(5)) == 'http://testserver/v2/namespaced/5/'
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] tests/test_versioning.py:385:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T20:01:21.118Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T20:01:21.118Z] rest_framework/relations.py:334: in get_url
[2024-11-23T20:01:21.118Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T20:01:21.118Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T20:01:21.118Z] return super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.118Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.118Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.118Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.118Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def get_host(self):
[2024-11-23T20:01:21.118Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.118Z] host = self._get_raw_host()
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.118Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.118Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.118Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.118Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.118Z] return host
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.118Z] if domain:
[2024-11-23T20:01:21.118Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.118Z] else:
[2024-11-23T20:01:21.118Z] msg += (
[2024-11-23T20:01:21.118Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.118Z] )
[2024-11-23T20:01:21.118Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.118Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.118Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_non_api_url_is_properly_reversed_regardless_of_the_version _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] viewname = 'non-api-view', args = None, kwargs = {'pk': 10}
[2024-11-23T20:01:21.118Z] request = <WSGIRequest: GET '/'>, format = None, extra = {}
[2024-11-23T20:01:21.118Z] scheme = <rest_framework.versioning.NamespaceVersioning object at 0x7176eb0cf750>
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] def reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra):
[2024-11-23T20:01:21.118Z] """
[2024-11-23T20:01:21.118Z] If versioning is being used then we pass any `reverse` calls through
[2024-11-23T20:01:21.118Z] to the versioning scheme instance, so that the resulting URL
[2024-11-23T20:01:21.118Z] can be modified if needed.
[2024-11-23T20:01:21.118Z] """
[2024-11-23T20:01:21.118Z] scheme = getattr(request, 'versioning_scheme', None)
[2024-11-23T20:01:21.118Z] if scheme is not None:
[2024-11-23T20:01:21.118Z] try:
[2024-11-23T20:01:21.118Z] > url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:41:
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T20:01:21.118Z] return super().reverse(
[2024-11-23T20:01:21.118Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T20:01:21.118Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.118Z] rest_framework/reverse.py:60: in _reverse
[2024-11-23T20:01:21.118Z] url = django_reverse(viewname, args=args, kwargs=kwargs, **extra)
[2024-11-23T20:01:21.118Z] /usr/lib/python3.13/site-packages/django/urls/base.py:88: in reverse
[2024-11-23T20:01:21.118Z] return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
[2024-11-23T20:01:21.118Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.118Z]
[2024-11-23T20:01:21.119Z] self = <URLResolver <URLResolver list> (None:None) '^/'>
[2024-11-23T20:01:21.119Z] lookup_view = 'non-api-view', _prefix = '/', args = (), kwargs = {'pk': 10}
[2024-11-23T20:01:21.119Z] possibilities = []
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def _reverse_with_prefix(self, lookup_view, _prefix, *args, **kwargs):
[2024-11-23T20:01:21.119Z] if args and kwargs:
[2024-11-23T20:01:21.119Z] raise ValueError("Don't mix *args and **kwargs in call to reverse()!")
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] if not self._populated:
[2024-11-23T20:01:21.119Z] self._populate()
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] possibilities = self.reverse_dict.getlist(lookup_view)
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] for possibility, pattern, defaults, converters in possibilities:
[2024-11-23T20:01:21.119Z] for result, params in possibility:
[2024-11-23T20:01:21.119Z] if args:
[2024-11-23T20:01:21.119Z] if len(args) != len(params):
[2024-11-23T20:01:21.119Z] continue
[2024-11-23T20:01:21.119Z] candidate_subs = dict(zip(params, args))
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] if set(kwargs).symmetric_difference(params).difference(defaults):
[2024-11-23T20:01:21.119Z] continue
[2024-11-23T20:01:21.119Z] matches = True
[2024-11-23T20:01:21.119Z] for k, v in defaults.items():
[2024-11-23T20:01:21.119Z] if k in params:
[2024-11-23T20:01:21.119Z] continue
[2024-11-23T20:01:21.119Z] if kwargs.get(k, v) != v:
[2024-11-23T20:01:21.119Z] matches = False
[2024-11-23T20:01:21.119Z] break
[2024-11-23T20:01:21.119Z] if not matches:
[2024-11-23T20:01:21.119Z] continue
[2024-11-23T20:01:21.119Z] candidate_subs = kwargs
[2024-11-23T20:01:21.119Z] # Convert the candidate subs to text using Converter.to_url().
[2024-11-23T20:01:21.119Z] text_candidate_subs = {}
[2024-11-23T20:01:21.119Z] match = True
[2024-11-23T20:01:21.119Z] for k, v in candidate_subs.items():
[2024-11-23T20:01:21.119Z] if k in converters:
[2024-11-23T20:01:21.119Z] try:
[2024-11-23T20:01:21.119Z] text_candidate_subs[k] = converters[k].to_url(v)
[2024-11-23T20:01:21.119Z] except ValueError:
[2024-11-23T20:01:21.119Z] match = False
[2024-11-23T20:01:21.119Z] break
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] text_candidate_subs[k] = str(v)
[2024-11-23T20:01:21.119Z] if not match:
[2024-11-23T20:01:21.119Z] continue
[2024-11-23T20:01:21.119Z] # WSGI provides decoded URLs, without %xx escapes, and the URL
[2024-11-23T20:01:21.119Z] # resolver operates on such URLs. First substitute arguments
[2024-11-23T20:01:21.119Z] # without quoting to build a decoded URL and look for a match.
[2024-11-23T20:01:21.119Z] # Then, if we have a match, redo the substitution with quoted
[2024-11-23T20:01:21.119Z] # arguments in order to return a properly encoded URL.
[2024-11-23T20:01:21.119Z] candidate_pat = _prefix.replace("%", "%%") + result
[2024-11-23T20:01:21.119Z] if re.search(
[2024-11-23T20:01:21.119Z] "^%s%s" % (re.escape(_prefix), pattern),
[2024-11-23T20:01:21.119Z] candidate_pat % text_candidate_subs,
[2024-11-23T20:01:21.119Z] ):
[2024-11-23T20:01:21.119Z] # safe characters from `pchar` definition of RFC 3986
[2024-11-23T20:01:21.119Z] url = quote(
[2024-11-23T20:01:21.119Z] candidate_pat % text_candidate_subs,
[2024-11-23T20:01:21.119Z] safe=RFC3986_SUBDELIMS + "/~:@",
[2024-11-23T20:01:21.119Z] )
[2024-11-23T20:01:21.119Z] # Don't allow construction of scheme relative urls.
[2024-11-23T20:01:21.119Z] return escape_leading_slashes(url)
[2024-11-23T20:01:21.119Z] # lookup_view can be URL name or callable, but callables are not
[2024-11-23T20:01:21.119Z] # friendly in error messages.
[2024-11-23T20:01:21.119Z] m = getattr(lookup_view, "__module__", None)
[2024-11-23T20:01:21.119Z] n = getattr(lookup_view, "__name__", None)
[2024-11-23T20:01:21.119Z] if m is not None and n is not None:
[2024-11-23T20:01:21.119Z] lookup_view_s = "%s.%s" % (m, n)
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] lookup_view_s = lookup_view
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] patterns = [pattern for (_, pattern, _, _) in possibilities]
[2024-11-23T20:01:21.119Z] if patterns:
[2024-11-23T20:01:21.119Z] if args:
[2024-11-23T20:01:21.119Z] arg_msg = "arguments '%s'" % (args,)
[2024-11-23T20:01:21.119Z] elif kwargs:
[2024-11-23T20:01:21.119Z] arg_msg = "keyword arguments '%s'" % kwargs
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] arg_msg = "no arguments"
[2024-11-23T20:01:21.119Z] msg = "Reverse for '%s' with %s not found. %d pattern(s) tried: %s" % (
[2024-11-23T20:01:21.119Z] lookup_view_s,
[2024-11-23T20:01:21.119Z] arg_msg,
[2024-11-23T20:01:21.119Z] len(patterns),
[2024-11-23T20:01:21.119Z] patterns,
[2024-11-23T20:01:21.119Z] )
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] msg = (
[2024-11-23T20:01:21.119Z] "Reverse for '%(view)s' not found. '%(view)s' is not "
[2024-11-23T20:01:21.119Z] "a valid view function or pattern name." % {"view": lookup_view_s}
[2024-11-23T20:01:21.119Z] )
[2024-11-23T20:01:21.119Z] > raise NoReverseMatch(msg)
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/urls/resolvers.py:831: NoReverseMatch
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] During handling of the above exception, another exception occurred:
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_non_api_url_is_properly_reversed_regardless_of_the_version>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def test_non_api_url_is_properly_reversed_regardless_of_the_version(self):
[2024-11-23T20:01:21.119Z] """
[2024-11-23T20:01:21.119Z] Regression test for #2711
[2024-11-23T20:01:21.119Z] """
[2024-11-23T20:01:21.119Z] field = self._create_field('non-api-view', 'v1')
[2024-11-23T20:01:21.119Z] > assert field.to_representation(PKOnlyObject(10)) == 'http://testserver/non-api/10/'
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_versioning.py:396:
[2024-11-23T20:01:21.119Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.119Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T20:01:21.119Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T20:01:21.119Z] rest_framework/relations.py:334: in get_url
[2024-11-23T20:01:21.119Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T20:01:21.119Z] rest_framework/reverse.py:45: in reverse
[2024-11-23T20:01:21.119Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.119Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.119Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.119Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.119Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.119Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.119Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def get_host(self):
[2024-11-23T20:01:21.119Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.119Z] host = self._get_raw_host()
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.119Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.119Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.119Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.119Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.119Z] return host
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.119Z] if domain:
[2024-11-23T20:01:21.119Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] msg += (
[2024-11-23T20:01:21.119Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.119Z] )
[2024-11-23T20:01:21.119Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.119Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.119Z] _________________ GetExtraActionUrlMapTests.test_action_names __________________
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <tests.test_viewsets.GetExtraActionUrlMapTests testMethod=test_action_names>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def test_action_names(self):
[2024-11-23T20:01:21.119Z] # Action 'name' and 'suffix' kwargs should be respected
[2024-11-23T20:01:21.119Z] response = self.client.get('/api/names/1/')
[2024-11-23T20:01:21.119Z] > view = response.view
[2024-11-23T20:01:21.119Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_viewsets.py:297: AttributeError
[2024-11-23T20:01:21.119Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.119Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z] Traceback (most recent call last):
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.119Z] response = get_response(request)
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.119Z] response = self.process_request(request)
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.119Z] host = request.get_host()
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.119Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.119Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z] WARNING django.request:log.py:248 Bad Request: /api/names/1/
[2024-11-23T20:01:21.119Z] __________________ GetExtraActionUrlMapTests.test_detail_view __________________
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <tests.test_viewsets.GetExtraActionUrlMapTests testMethod=test_detail_view>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def test_detail_view(self):
[2024-11-23T20:01:21.119Z] response = self.client.get('/api/actions/1/')
[2024-11-23T20:01:21.119Z] > view = response.view
[2024-11-23T20:01:21.119Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_viewsets.py:280: AttributeError
[2024-11-23T20:01:21.119Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.119Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z] Traceback (most recent call last):
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.119Z] response = get_response(request)
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.119Z] response = self.process_request(request)
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.119Z] host = request.get_host()
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.119Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.119Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z] WARNING django.request:log.py:248 Bad Request: /api/actions/1/
[2024-11-23T20:01:21.119Z] ___________________ GetExtraActionUrlMapTests.test_list_view ___________________
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <tests.test_viewsets.GetExtraActionUrlMapTests testMethod=test_list_view>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def test_list_view(self):
[2024-11-23T20:01:21.119Z] response = self.client.get('/api/actions/')
[2024-11-23T20:01:21.119Z] > view = response.view
[2024-11-23T20:01:21.119Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_viewsets.py:268: AttributeError
[2024-11-23T20:01:21.119Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T20:01:21.119Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z] Traceback (most recent call last):
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T20:01:21.119Z] response = get_response(request)
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T20:01:21.119Z] response = self.process_request(request)
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T20:01:21.119Z] host = request.get_host()
[2024-11-23T20:01:21.119Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T20:01:21.119Z] raise DisallowedHost(msg)
[2024-11-23T20:01:21.119Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z] WARNING django.request:log.py:248 Bad Request: /api/actions/
[2024-11-23T20:01:21.119Z] ___________________ ReverseActionTests.test_request_passing ____________________
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <tests.test_viewsets.ReverseActionTests testMethod=test_request_passing>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def test_request_passing(self):
[2024-11-23T20:01:21.119Z] view = ActionViewSet()
[2024-11-23T20:01:21.119Z] view.basename = router.get_default_basename(ActionViewSet)
[2024-11-23T20:01:21.119Z] view.request = factory.get('/')
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] # Passing the view's request object should result in an absolute URL.
[2024-11-23T20:01:21.119Z] > assert view.reverse_action('list') == 'http://testserver/api/actions/'
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_viewsets.py:342:
[2024-11-23T20:01:21.119Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.119Z] rest_framework/viewsets.py:175: in reverse_action
[2024-11-23T20:01:21.119Z] return reverse(url_name, *args, **kwargs)
[2024-11-23T20:01:21.119Z] rest_framework/reverse.py:47: in reverse
[2024-11-23T20:01:21.119Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T20:01:21.119Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T20:01:21.119Z] return request.build_absolute_uri(url)
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T20:01:21.119Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T20:01:21.119Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T20:01:21.119Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T20:01:21.119Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] self = <WSGIRequest: GET '/'>
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] def get_host(self):
[2024-11-23T20:01:21.119Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T20:01:21.119Z] host = self._get_raw_host()
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T20:01:21.119Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T20:01:21.119Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T20:01:21.119Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] domain, port = split_domain_port(host)
[2024-11-23T20:01:21.119Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T20:01:21.119Z] return host
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T20:01:21.119Z] if domain:
[2024-11-23T20:01:21.119Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T20:01:21.119Z] else:
[2024-11-23T20:01:21.119Z] msg += (
[2024-11-23T20:01:21.119Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T20:01:21.119Z] )
[2024-11-23T20:01:21.119Z] > raise DisallowedHost(msg)
[2024-11-23T20:01:21.119Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T20:01:21.119Z] =============================== warnings summary ===============================
[2024-11-23T20:01:21.119Z] rest_framework/fields.py:990
[2024-11-23T20:01:21.119Z] /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-23T20:01:21.119Z] warnings.warn("max_value should be an integer or Decimal instance.")
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] rest_framework/fields.py:992
[2024-11-23T20:01:21.119Z] /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-23T20:01:21.119Z] warnings.warn("min_value should be an integer or Decimal instance.")
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] rest_framework/urlpatterns.py:108: 3 warnings
[2024-11-23T20:01:21.119Z] tests/test_routers.py: 1 warning
[2024-11-23T20:01:21.119Z] tests/test_urlpatterns.py: 9 warnings
[2024-11-23T20:01:21.119Z] /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-23T20:01:21.119Z] register_converter(suffix_converter, converter_name)
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_serializer_lists.py:746
[2024-11-23T20:01:21.119Z] /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-23T20:01:21.119Z] @pytest.mark.django_db()
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_re_path
[2024-11-23T20:01:21.119Z] /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-23T20:01:21.119Z] register_converter(suffix_converter, converter_name)
[2024-11-23T20:01:21.119Z]
[2024-11-23T20:01:21.119Z] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[2024-11-23T20:01:21.119Z] =========================== short test summary info ============================
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_decoding_of_utf8_credentials - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_failing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_passing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_failing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_passing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_put_form_session_auth_passing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_accessible_as_classmethod - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_returns_string - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_form - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_bad_creds - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_missing_fields - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.119Z] FAILED tests/authentication/test_authentication.py::RemoteUserAuthenticationUnitTests::test_remote_user_works - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.119Z] 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-23T20:01:21.120Z] FAILED tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user - AssertionError: 400 != 403
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login - assert 200 == 400
[2024-11-23T20:01:21.120Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_fk - django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T20:01:21.120Z] FAILED tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_relation - django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T20:01:21.120Z] FAILED tests/test_atomic_requests.py::DBTransactionTests::test_no_exception_commit_transaction - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_atomic_requests.py::DBTransactionErrorTests::test_generic_exception_delegate_transaction_management - assert not True
[2024-11-23T20:01:21.120Z] + where True = <function get_rollback at 0x7176ed2a09a0>()
[2024-11-23T20:01:21.120Z] + where <function get_rollback at 0x7176ed2a09a0> = transaction.get_rollback
[2024-11-23T20:01:21.120Z] FAILED tests/test_atomic_requests.py::DBTransactionAPIExceptionTests::test_api_exception_rollback_transaction - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_atomic_requests.py::MultiDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_atomic_requests.py::NonAtomicDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction_non_atomic_view - assert 400 == 404
[2024-11-23T20:01:21.120Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.120Z] + and 404 = status.HTTP_404_NOT_FOUND
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_model_admin_displayed_fields - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_token_string_representation - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_whitespace_in_password - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token_invalid_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_do_not_reset_user_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_output - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_raising_error_for_invalid_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_reset_user_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_invalid_inputs - django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::SearchFilterM2MTests::test_m2m_search - django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::SearchFilterM2MTests::test_must_call_distinct - django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_default_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_default_ordering_using_string - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_get_template_context - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_incorrectfield_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_incorrecturl_extrahyphens_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_by_aggregate_field - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_by_dotted_source - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_improper_configuration - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_nonstandard_ordering_param - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_overridden_get_serializer_class - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_without_ordering_fields - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::OrderingFilterTests::test_reverse_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::SensitiveOrderingFilterTests::test_cannot_order_by_non_serializer_fields - django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_filters.py::SensitiveOrderingFilterTests::test_order_by_serializer_fields - django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_delete_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_get_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_head_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_post_cannot_set_id - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_post_error_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_post_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestRootView::test_put_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_delete_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_get_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_get_instance_view_incorrect_arg - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_patch_cannot_create_an_object - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_patch_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_post_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_put_cannot_set_id - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_put_error_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_put_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_put_to_deleted_instance - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestInstanceView::test_put_to_filtered_out_instance - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestOverriddenGetObject::test_overridden_get_object_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_generics.py::TestM2MBrowsableAPI::test_m2m_in_browsable_api - django.db.utils.OperationalError: no such table: tests_classa
[2024-11-23T20:01:21.120Z] FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_dynamic_serializer_form_in_browsable_api - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view - AssertionError: 400 != 404
[2024-11-23T20:01:21.120Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view - AssertionError: 400 != 403
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template - AssertionError: 400 != 404
[2024-11-23T20:01:21.120Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template - AssertionError: 400 != 403
[2024-11-23T20:01:21.120Z] FAILED tests/test_lazy_hyperlinks.py::TestLazyHyperlinkNames::test_lazy_hyperlink_names - django.db.utils.OperationalError: no such table: tests_example
[2024-11-23T20:01:21.120Z] FAILED tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_related_field_choices - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_custom_display_value - django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_default_display_value - django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestIntegration::test_pk_create - django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestIntegration::test_pk_retrival - django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestIntegration::test_pk_update - django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestBulkCreate::test_bulk_create - django.db.utils.OperationalError: no such table: tests_bulkcreatemodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::Issue2704TestCase::test_queryset_all - django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source - django.db.utils.OperationalError: no such table: tests_issue7550barmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source_with_default - django.db.utils.OperationalError: no such table: tests_issue7550foomodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::Issue3674Test::test_nonID_PK_foreignkey_model_serializer - django.db.utils.OperationalError: no such table: tests_issue3674parentmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::Test5004UniqueChoiceField::test_unique_choice_field - django.db.utils.OperationalError: no such table: tests_uniquechoicemodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::TestFieldSource::test_traverse_nullable_fk - django.db.utils.OperationalError: no such table: tests_nestedforeignkeysource
[2024-11-23T20:01:21.120Z] FAILED tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager - django.db.utils.OperationalError: no such table: tests_issue6110testmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_forward - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_reverse - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_negative - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_zero - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_get_paginated_response_schema - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_invalid_cursor - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_calling_method_not_allowed - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_check_auth_before_queryset_call - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_create_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_delete_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_put_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_empty_view_does_not_assert - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_get_queryset_has_create_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_create_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_delete_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_put_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_authenticated_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_unauthenticated_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_disallowed - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_permitted - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_updateonly - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_queryset_assertions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_with_custom_detail - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_false - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_true - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_not_false - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_not_true - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_object_and_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_object_or_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_false - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_true - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence_with_negation - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_without_negation - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_unimplemented_has_object_permission - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_updates - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_relative_hyperlinks - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_incorrect_type - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.120Z] 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-23T20:01:21.120Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_unsaved - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_not_required - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_incorrect_type - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_empty - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_unsaved - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_limited_choices - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_without_limited_choices - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKRelationTests::test_relation_field_callable_source - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKRelationTests::test_relation_field_property_source - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve_select_related - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_incorrect_type - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_head_method_serializes_no_content - AssertionError: 400 != 200
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_unsatisfiable_accept_header_on_request_returns_406_status - AssertionError: 400 != 406
[2024-11-23T20:01:21.121Z] FAILED tests/test_renderers.py::JSONRendererTests::test_render_queryset_values - django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_renderers.py::JSONRendererTests::test_render_queryset_values_list - django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_renderers.py::CacheRenderTest::test_get_caching - AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T20:01:21.121Z] FAILED tests/test_renderers.py::CacheRenderTest::test_head_caching - AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] + 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 0x7176eab21630>()
[2024-11-23T20:01:21.121Z] + where <built-in method decode of bytes object at 0x7176eab21630> = 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-23T20:01:21.121Z] + 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-23T20:01:21.121Z] FAILED tests/test_request.py::FileUploadTests::test_fileuploads_closed_at_request_end - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_request.py::TestUserSetter::test_user_can_be_set - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_request.py::TestUserSetter::test_user_can_login - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_request.py::TestUserSetter::test_user_can_logout - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] FAILED tests/test_response.py::RendererIntegrationTests::test_head_method_serializes_no_content - AssertionError: 400 != 200
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] + mock/rendererb; charset=utf-8
[2024-11-23T20:01:21.121Z] FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_allow_posting_json - AssertionError: 400 != 200
[2024-11-23T20:01:21.121Z] FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_a_form - AssertionError: 400 != 415
[2024-11-23T20:01:21.121Z] FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_xml - AssertionError: 400 != 415
[2024-11-23T20:01:21.121Z] FAILED tests/test_response.py::Issue807Tests::test_content_type_set_explicitly_on_response - AssertionError: 'setbyview' != 'text/html; charset=utf-8'
[2024-11-23T20:01:21.121Z] - setbyview
[2024-11-23T20:01:21.121Z] + text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - mock/renderera; charset=utf-8
[2024-11-23T20:01:21.121Z] + text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] - mock/rendererc; charset=rendererc
[2024-11-23T20:01:21.121Z] + text/html; charset=utf-8
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_routers.py::TestSimpleRouter::test_multiple_action_handlers - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestRootView::test_retrieve_namespaced_root - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestRootView::test_retrieve_non_namespaced_root - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_custom_lookup_field_route - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_detail_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_list_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_routers.py::TestLookupUrlKwargs::test_custom_lookup_url_kwarg_route - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_kwarg_detail_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_detail - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_list - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_detail - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_list - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_create - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_defaultrouter_root - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_delete - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_detail_extra_action - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_detail_extra_other_action - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_list - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_list_extra_action - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_retrieve - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_routers.py::TestUrlPath::test_update - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_serializer_lists.py::TestToRepresentationManagerCheck::test - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_can_logout - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_credentials - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_csrf_exempt_by_default - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_empty_post_uses_default_boolean_value - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_explicitly_enforce_csrf_checks - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_follow_307_308_preserve_kwargs - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_follow_redirect - assert 400 == 302
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_sessions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user_and_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPITestClient::test_logout_resets_force_authenticate - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPIRequestFactory::test_csrf_exempt_by_default - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPIRequestFactory::test_explicitly_enforce_csrf_checks - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestAPIRequestFactory::test_force_authenticate - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestUrlPatternTestCase::test_urlpatterns - assert 400 == 200
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T20:01:21.121Z] + where get = <django.test.client.Client object at 0x7176ea970e10>.get
[2024-11-23T20:01:21.121Z] + where <django.test.client.Client object at 0x7176ea970e10> = <tests.test_testing.TestUrlPatternTestCase testMethod=test_urlpatterns>.client
[2024-11-23T20:01:21.121Z] FAILED tests/test_testing.py::TestExistingPatterns::test_urlpatterns - assert 400 == 404
[2024-11-23T20:01:21.121Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T20:01:21.121Z] + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T20:01:21.121Z] + where get = <django.test.client.Client object at 0x7176ea970370>.get
[2024-11-23T20:01:21.121Z] + where <django.test.client.Client object at 0x7176ea970370> = <tests.test_testing.TestExistingPatterns testMethod=test_urlpatterns>.client
[2024-11-23T20:01:21.121Z] FAILED tests/test_throttling.py::ThrottlingTests::test_request_throttling_is_per_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_throttling.py::AnonRateThrottleTests::test_authenticated_user_not_affected - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T20:01:21.121Z] FAILED tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_fail - django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_success - django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_doesnt_pollute_model - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_is_not_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_is_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_related_model_is_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_relation_is_not_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_updated_instance_excluded - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_value_error_treated_as_not_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_allow_explict_override - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_fields_with_source - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_excluded_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_read_only_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_null_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_unchanged_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_is_not_unique_together - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_is_unique_together - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] 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-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_unique_together_is_required - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_updated_instance_excluded_from_unique_together - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_writeable_fields_with_source - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T20:01:21.121Z] FAILED tests/test_validators.py::TestUniqueConstraintValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::TestUniqueConstraintValidation::test_single_field_uniq_validators - django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::TestUniqueConstraintValidation::test_unique_together_field - django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_is_not_unique_for_date - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_is_unique_for_date - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T20:01:21.122Z] 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-23T20:01:21.122Z] FAILED tests/test_validators.py::UniqueForMonthTests::test_not_unique_for_month - django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::UniqueForMonthTests::test_unique_for_month - django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::UniqueForYearTests::test_not_unique_for_year - django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T20:01:21.122Z] FAILED tests/test_validators.py::UniqueForYearTests::test_unique_for_year - django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_action_names - AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T20:01:21.122Z] FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_detail_view - AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T20:01:21.122Z] FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_list_view - AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] 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-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_exact_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_regexp_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_additional_transforms - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_custom_lookup - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_escapes - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_multiple_words - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_null_characters - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_quotes - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] 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-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_with_filter_subclass - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_with_nonstandard_search_param - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterTests::test_startswith_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterToManyTests::test_multiple_filter_conditions - django.db.utils.OperationalError: no such table: tests_blog
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_must_call_distinct_subsequent_m2m_fields - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] ERROR tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_search_in_annotated_field - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T20:01:21.122Z] = 437 failed, 945 passed, 145 skipped, 1 deselected, 17 warnings, 18 errors in 90.84s (0:01:30) =
[2024-11-23T20:01:21.372Z] ==> ERROR: A failure occurred in check().
[2024-11-23T20:01:21.372Z] Aborting...
[2024-11-23T20:01:23.854Z] ==> ERROR: Build failed, check /build/buildpkg/world-goblins-x86_64/jenkins/build
[Pipeline] }
[2024-11-23T20:01:23.856Z] ERROR: Failed to build source
[2024-11-23T20:01:23.856Z] ERROR: script returned exit code 255
[2024-11-23T20:01:23.856Z] 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-23T20:01:24.016Z] Sending email to: artix-build-failures at artixlinux.org
More information about the artix-build-failures
mailing list