Tue May 7 13:21:59 UTC 2024 I: starting to build ormar/unstable/arm64 on jenkins on '2024-05-07 13:21' Tue May 7 13:21:59 UTC 2024 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/arm64_12/40120/console.log Tue May 7 13:21:59 UTC 2024 I: Downloading source for unstable/ormar=0.12.2-1 --2024-05-07 13:21:59-- http://deb.debian.org/debian/pool/main/o/ormar/ormar_0.12.2-1.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2757 (2.7K) [text/prs.lines.tag] Saving to: ‘ormar_0.12.2-1.dsc’ 0K .. 100% 380M=0s 2024-05-07 13:21:59 (380 MB/s) - ‘ormar_0.12.2-1.dsc’ saved [2757/2757] Tue May 7 13:21:59 UTC 2024 I: ormar_0.12.2-1.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: ormar Binary: python3-ormar Architecture: all Version: 0.12.2-1 Maintainer: Debian Python Team Uploaders: Edward Betts Homepage: https://github.com/collerek/ormar Standards-Version: 4.6.2 Vcs-Browser: https://salsa.debian.org/python-team/packages/ormar Vcs-Git: https://salsa.debian.org/python-team/packages/ormar.git Testsuite: autopkgtest Testsuite-Triggers: python3-aiomysql, python3-aiosqlite, python3-all, python3-anyio, python3-asgi-lifespan, python3-asyncpg, python3-cryptography, python3-databases, python3-fastapi, python3-httpx, python3-pydantic, python3-pytest, python3-pytest-asyncio, python3-pytest-tornasync, python3-requests Build-Depends: debhelper-compat (= 13), dh-sequence-python3, pybuild-plugin-pyproject, python3-aiomysql , python3-aiosqlite , python3-all , python3-anyio , python3-asgi-lifespan , python3-asyncpg , python3-cryptography , python3-databases , python3-fastapi , python3-httpx , python3-poetry-core, python3-pydantic , python3-pytest , python3-pytest-asyncio , python3-pytest-tornasync , python3-requests , python3-setuptools Package-List: python3-ormar deb python optional arch=all Checksums-Sha1: dcfcbf5351064aaea19f2955de47db1f43d822cd 375209 ormar_0.12.2.orig.tar.gz 5f2bcd4f43a03d4559fdb639319e9eea22bee124 3620 ormar_0.12.2-1.debian.tar.xz Checksums-Sha256: dc67369d2eff330655adc30ff4ba84fc6c56421b233142e3c8306eb19d6a2fc0 375209 ormar_0.12.2.orig.tar.gz f144db6ed1b6ebd212abdc1a0d10417944145d574737fcd758ee928694354117 3620 ormar_0.12.2-1.debian.tar.xz Files: 82809b1d7699425dc1076888244b4067 375209 ormar_0.12.2.orig.tar.gz 33a29731e5a9ef325ff4794f31376304 3620 ormar_0.12.2-1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE+4rPp4xyYInDitAmlgWhCYxjuSoFAmTwx1AACgkQlgWhCYxj uSrY5RAAnp9AexthKa1QNvJ3G7ldkYgyZZqpXP/8YAGOgtDpXl+A6L0RAUKUCy6f s458Vz9swUnIvnJT1mpMADE9+l5lsWinqGTBTTFbvhAXkIAcTYG6ta+UlHSKfxQ2 OfhDOEe5WjQG4nBnIIu2rNlLy9XwDgjwENfx2wsSNTmk31d73/H+x4HDgpN0RCEj YUYsyyRQAmIbSMq4mYtMcSmo1imjiiQJ8gdYiIEsHYWzfqemTtuH2xklvsFvSSl4 rWOMhbRNzrPuljr/U8SLHWULmmeXPNvQpqEnWRPDhjrqzoCsiOgiuURiwc+w7exN W49rsDOIFwL1QOMbjnSA5JWvuHRSU4ZiRZuYKjgQnRdlbgRB5hxy5disU+O+mFkh 8SuSzo6g1z5xzBVlyOtG9R0YreYOt+IVvoEB+joF0zylxqZeE7DkOVb2ER2T4kg0 LrzuAJo3xiIDR11qEOSRxMIpdEas4bvcl/fcqftC2kXWES2YVBKZObNJ53tLConY Y9+cWI86y9c7JIaiTQrXNYfsT3fOgHeYMc3FAWl7rT53KjSAQ7b97VpzX79ydowy tuo8acdF7GNRIKMkIZlYsgHiGUy+o0IpicglGBXzzRXkfRixu2YyJoGYycFgx9sc A0gyB66tbyEpIc2UPPDCheRD4QlUkRuxFVOzKvx4oN0z6PsqxbQ= =uG0d -----END PGP SIGNATURE----- Tue May 7 13:21:59 UTC 2024 I: Checking whether the package is not for us Tue May 7 13:21:59 UTC 2024 I: Starting 1st build on remote node codethink04-arm64.debian.net. Tue May 7 13:21:59 UTC 2024 I: Preparing to do remote build '1' on codethink04-arm64.debian.net. Tue May 7 13:27:17 UTC 2024 I: Deleting $TMPDIR on codethink04-arm64.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Tue May 7 01:22:02 -12 2024 I: pbuilder-time-stamp: 1715088122 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [ormar_0.12.2-1.dsc] I: copying [./ormar_0.12.2.orig.tar.gz] I: copying [./ormar_0.12.2-1.debian.tar.xz] I: Extracting source gpgv: Signature made Thu Aug 31 17:01:04 2023 gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./ormar_0.12.2-1.dsc: no acceptable signature found dpkg-source: info: extracting ormar in ormar-0.12.2 dpkg-source: info: unpacking ormar_0.12.2.orig.tar.gz dpkg-source: info: unpacking ormar_0.12.2-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 0001-Allow-newer-SQLAlchemy-in-pyproject.toml.patch I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/3188793/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='arm64' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' DISTRIBUTION='unstable' HOME='/root' HOST_ARCH='arm64' IFS=' ' INVOCATION_ID='507e1ed8c39940e1bfdc5989312087e1' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='3188793' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.srDzV6Sa/pbuilderrc_Txvn --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.srDzV6Sa/b1 --logfile b1/build.log ormar_0.12.2-1.dsc' SUDO_GID='109' SUDO_UID='104' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' http_proxy='http://192.168.101.4:3128' I: uname -a Linux codethink04-arm64 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 May 7 07:42 /bin -> usr/bin I: user script /srv/workspace/pbuilder/3188793/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: arm64 Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 13), dh-sequence-python3, pybuild-plugin-pyproject, python3-aiomysql, python3-aiosqlite, python3-all, python3-anyio, python3-asgi-lifespan, python3-asyncpg, python3-cryptography, python3-databases, python3-fastapi, python3-httpx, python3-poetry-core, python3-pydantic, python3-pytest, python3-pytest-asyncio, python3-pytest-tornasync, python3-requests, python3-setuptools dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19744 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-sequence-python3; however: Package dh-sequence-python3 is not installed. pbuilder-satisfydepends-dummy depends on pybuild-plugin-pyproject; however: Package pybuild-plugin-pyproject is not installed. pbuilder-satisfydepends-dummy depends on python3-aiomysql; however: Package python3-aiomysql is not installed. pbuilder-satisfydepends-dummy depends on python3-aiosqlite; however: Package python3-aiosqlite is not installed. pbuilder-satisfydepends-dummy depends on python3-all; however: Package python3-all is not installed. pbuilder-satisfydepends-dummy depends on python3-anyio; however: Package python3-anyio is not installed. pbuilder-satisfydepends-dummy depends on python3-asgi-lifespan; however: Package python3-asgi-lifespan is not installed. pbuilder-satisfydepends-dummy depends on python3-asyncpg; however: Package python3-asyncpg is not installed. pbuilder-satisfydepends-dummy depends on python3-cryptography; however: Package python3-cryptography is not installed. pbuilder-satisfydepends-dummy depends on python3-databases; however: Package python3-databases is not installed. pbuilder-satisfydepends-dummy depends on python3-fastapi; however: Package python3-fastapi is not installed. pbuilder-satisfydepends-dummy depends on python3-httpx; however: Package python3-httpx is not installed. pbuilder-satisfydepends-dummy depends on python3-poetry-core; however: Package python3-poetry-core is not installed. pbuilder-satisfydepends-dummy depends on python3-pydantic; however: Package python3-pydantic is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest; however: Package python3-pytest is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest-asyncio; however: Package python3-pytest-asyncio is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest-tornasync; however: Package python3-pytest-tornasync is not installed. pbuilder-satisfydepends-dummy depends on python3-requests; however: Package python3-requests is not installed. pbuilder-satisfydepends-dummy depends on python3-setuptools; however: Package python3-setuptools is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} ca-certificates{a} debhelper{a} dh-autoreconf{a} dh-python{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libdebhelper-perl{a} libelf1t64{a} libexpat1{a} libfile-stripnondeterminism-perl{a} libicu72{a} libmagic-mgc{a} libmagic1t64{a} libpipeline1{a} libpython3-stdlib{a} libpython3.11-minimal{a} libpython3.11-stdlib{a} libpython3.12-minimal{a} libpython3.12-stdlib{a} libreadline8t64{a} libsub-override-perl{a} libtool{a} libuchardet0{a} libuv1t64{a} libxml2{a} m4{a} man-db{a} media-types{a} netbase{a} openssl{a} po-debconf{a} pybuild-plugin-pyproject{a} python3{a} python3-aiomysql{a} python3-aiosqlite{a} python3-all{a} python3-anyio{a} python3-asgi-lifespan{a} python3-async-generator{a} python3-async-timeout{a} python3-asyncpg{a} python3-build{a} python3-certifi{a} python3-cffi-backend{a} python3-chardet{a} python3-charset-normalizer{a} python3-click{a} python3-colorama{a} python3-cryptography{a} python3-databases{a} python3-distutils{a} python3-fastapi{a} python3-greenlet{a} python3-h11{a} python3-httpcore{a} python3-httpx{a} python3-idna{a} python3-iniconfig{a} python3-installer{a} python3-lib2to3{a} python3-markdown-it{a} python3-mdurl{a} python3-minimal{a} python3-packaging{a} python3-pkg-resources{a} python3-pluggy{a} python3-poetry-core{a} python3-pydantic{a} python3-pygments{a} python3-pymysql{a} python3-pyproject-hooks{a} python3-pytest{a} python3-pytest-asyncio{a} python3-pytest-tornasync{a} python3-requests{a} python3-rich{a} python3-setuptools{a} python3-six{a} python3-sniffio{a} python3-sqlalchemy{a} python3-starlette{a} python3-toml{a} python3-tornado{a} python3-typing-extensions{a} python3-urllib3{a} python3-uvicorn{a} python3-uvloop{a} python3-wheel{a} python3-wsproto{a} python3.11{a} python3.11-minimal{a} python3.12{a} python3.12-minimal{a} readline-common{a} sensible-utils{a} tzdata{a} The following packages are RECOMMENDED but will NOT be installed: curl libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx python3-aiofiles python3-itsdangerous python3-jinja2 python3-multipart python3-sqlalchemy-ext python3-yaml wget 0 packages upgraded, 107 newly installed, 0 to remove and 0 not upgraded. Need to get 42.2 MB of archives. After unpacking 187 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian unstable/main arm64 libpython3.11-minimal arm64 3.11.9-1 [813 kB] Get: 2 http://deb.debian.org/debian unstable/main arm64 libexpat1 arm64 2.6.2-1 [88.7 kB] Get: 3 http://deb.debian.org/debian unstable/main arm64 python3.11-minimal arm64 3.11.9-1 [1767 kB] Get: 4 http://deb.debian.org/debian unstable/main arm64 python3-minimal arm64 3.11.8-1 [26.3 kB] Get: 5 http://deb.debian.org/debian unstable/main arm64 media-types all 10.1.0 [26.9 kB] Get: 6 http://deb.debian.org/debian unstable/main arm64 netbase all 6.4 [12.8 kB] Get: 7 http://deb.debian.org/debian unstable/main arm64 tzdata all 2024a-4 [255 kB] Get: 8 http://deb.debian.org/debian unstable/main arm64 readline-common all 8.2-4 [69.3 kB] Get: 9 http://deb.debian.org/debian unstable/main arm64 libreadline8t64 arm64 8.2-4 [157 kB] Get: 10 http://deb.debian.org/debian unstable/main arm64 libpython3.11-stdlib arm64 3.11.9-1 [1775 kB] Get: 11 http://deb.debian.org/debian unstable/main arm64 python3.11 arm64 3.11.9-1 [602 kB] Get: 12 http://deb.debian.org/debian unstable/main arm64 libpython3-stdlib arm64 3.11.8-1 [9332 B] Get: 13 http://deb.debian.org/debian unstable/main arm64 python3 arm64 3.11.8-1 [27.4 kB] Get: 14 http://deb.debian.org/debian unstable/main arm64 libpython3.12-minimal arm64 3.12.3-1 [802 kB] Get: 15 http://deb.debian.org/debian unstable/main arm64 python3.12-minimal arm64 3.12.3-1 [1931 kB] Get: 16 http://deb.debian.org/debian unstable/main arm64 sensible-utils all 0.0.22 [22.4 kB] Get: 17 http://deb.debian.org/debian unstable/main arm64 openssl arm64 3.2.1-3 [1324 kB] Get: 18 http://deb.debian.org/debian unstable/main arm64 ca-certificates all 20240203 [158 kB] Get: 19 http://deb.debian.org/debian unstable/main arm64 libmagic-mgc arm64 1:5.45-3 [314 kB] Get: 20 http://deb.debian.org/debian unstable/main arm64 libmagic1t64 arm64 1:5.45-3 [100 kB] Get: 21 http://deb.debian.org/debian unstable/main arm64 file arm64 1:5.45-3 [43.0 kB] Get: 22 http://deb.debian.org/debian unstable/main arm64 gettext-base arm64 0.21-14+b1 [160 kB] Get: 23 http://deb.debian.org/debian unstable/main arm64 libuchardet0 arm64 0.0.8-1+b1 [69.0 kB] Get: 24 http://deb.debian.org/debian unstable/main arm64 groff-base arm64 1.23.0-4 [1130 kB] Get: 25 http://deb.debian.org/debian unstable/main arm64 bsdextrautils arm64 2.40-8 [93.0 kB] Get: 26 http://deb.debian.org/debian unstable/main arm64 libpipeline1 arm64 1.5.7-2 [36.5 kB] Get: 27 http://deb.debian.org/debian unstable/main arm64 man-db arm64 2.12.1-1 [1394 kB] Get: 28 http://deb.debian.org/debian unstable/main arm64 m4 arm64 1.4.19-4 [277 kB] Get: 29 http://deb.debian.org/debian unstable/main arm64 autoconf all 2.71-3 [332 kB] Get: 30 http://deb.debian.org/debian unstable/main arm64 autotools-dev all 20220109.1 [51.6 kB] Get: 31 http://deb.debian.org/debian unstable/main arm64 automake all 1:1.16.5-1.3 [823 kB] Get: 32 http://deb.debian.org/debian unstable/main arm64 autopoint all 0.21-14 [496 kB] Get: 33 http://deb.debian.org/debian unstable/main arm64 libdebhelper-perl all 13.15.3 [88.0 kB] Get: 34 http://deb.debian.org/debian unstable/main arm64 libtool all 2.4.7-7 [517 kB] Get: 35 http://deb.debian.org/debian unstable/main arm64 dh-autoreconf all 20 [17.1 kB] Get: 36 http://deb.debian.org/debian unstable/main arm64 libarchive-zip-perl all 1.68-1 [104 kB] Get: 37 http://deb.debian.org/debian unstable/main arm64 libsub-override-perl all 0.10-1 [10.6 kB] Get: 38 http://deb.debian.org/debian unstable/main arm64 libfile-stripnondeterminism-perl all 1.13.1-1 [19.4 kB] Get: 39 http://deb.debian.org/debian unstable/main arm64 dh-strip-nondeterminism all 1.13.1-1 [8620 B] Get: 40 http://deb.debian.org/debian unstable/main arm64 libelf1t64 arm64 0.191-1+b1 [187 kB] Get: 41 http://deb.debian.org/debian unstable/main arm64 dwz arm64 0.15-1+b1 [102 kB] Get: 42 http://deb.debian.org/debian unstable/main arm64 libicu72 arm64 72.1-4+b1 [9224 kB] Get: 43 http://deb.debian.org/debian unstable/main arm64 libxml2 arm64 2.9.14+dfsg-1.3+b3 [624 kB] Get: 44 http://deb.debian.org/debian unstable/main arm64 gettext arm64 0.21-14+b1 [1249 kB] Get: 45 http://deb.debian.org/debian unstable/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 46 http://deb.debian.org/debian unstable/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 47 http://deb.debian.org/debian unstable/main arm64 debhelper all 13.15.3 [901 kB] Get: 48 http://deb.debian.org/debian unstable/main arm64 python3-pkg-resources all 68.1.2-2 [241 kB] Get: 49 http://deb.debian.org/debian unstable/main arm64 python3-lib2to3 all 3.12.3-1 [77.6 kB] Get: 50 http://deb.debian.org/debian unstable/main arm64 python3-distutils all 3.12.3-1 [131 kB] Get: 51 http://deb.debian.org/debian unstable/main arm64 python3-setuptools all 68.1.2-2 [468 kB] Get: 52 http://deb.debian.org/debian unstable/main arm64 dh-python all 6.20240422 [107 kB] Get: 53 http://deb.debian.org/debian unstable/main arm64 libpython3.12-stdlib arm64 3.12.3-1 [1889 kB] Get: 54 http://deb.debian.org/debian unstable/main arm64 libuv1t64 arm64 1.48.0-1.1 [142 kB] Get: 55 http://deb.debian.org/debian unstable/main arm64 python3-packaging all 24.0-1 [45.5 kB] Get: 56 http://deb.debian.org/debian unstable/main arm64 python3-pyproject-hooks all 1.0.0-2 [10.6 kB] Get: 57 http://deb.debian.org/debian unstable/main arm64 python3-toml all 0.10.2-1 [16.2 kB] Get: 58 http://deb.debian.org/debian unstable/main arm64 python3-wheel all 0.43.0-1 [52.5 kB] Get: 59 http://deb.debian.org/debian unstable/main arm64 python3-build all 1.2.1-1 [34.1 kB] Get: 60 http://deb.debian.org/debian unstable/main arm64 python3-installer all 0.7.0+dfsg1-3 [18.6 kB] Get: 61 http://deb.debian.org/debian unstable/main arm64 pybuild-plugin-pyproject all 6.20240422 [11.1 kB] Get: 62 http://deb.debian.org/debian unstable/main arm64 python3-pymysql all 1.1.0-1 [42.4 kB] Get: 63 http://deb.debian.org/debian unstable/main arm64 python3-aiomysql all 0.1.1-2 [38.5 kB] Get: 64 http://deb.debian.org/debian unstable/main arm64 python3-typing-extensions all 4.10.0-1 [66.2 kB] Get: 65 http://deb.debian.org/debian unstable/main arm64 python3-aiosqlite all 0.17.0-2 [16.2 kB] Get: 66 http://deb.debian.org/debian unstable/main arm64 python3.12 arm64 3.12.3-1 [659 kB] Get: 67 http://deb.debian.org/debian unstable/main arm64 python3-all arm64 3.11.8-1 [1056 B] Get: 68 http://deb.debian.org/debian unstable/main arm64 python3-idna all 3.6-2 [37.0 kB] Get: 69 http://deb.debian.org/debian unstable/main arm64 python3-sniffio all 1.3.0-2 [7076 B] Get: 70 http://deb.debian.org/debian unstable/main arm64 python3-anyio all 4.3.0-1 [56.5 kB] Get: 71 http://deb.debian.org/debian unstable/main arm64 python3-asgi-lifespan all 2.1.0-2 [12.8 kB] Get: 72 http://deb.debian.org/debian unstable/main arm64 python3-async-generator all 1.10-4 [17.4 kB] Get: 73 http://deb.debian.org/debian unstable/main arm64 python3-async-timeout all 4.0.3-1 [7660 B] Get: 74 http://deb.debian.org/debian unstable/main arm64 python3-asyncpg arm64 0.29.0-1 [706 kB] Get: 75 http://deb.debian.org/debian unstable/main arm64 python3-certifi all 2023.11.17-1 [155 kB] Get: 76 http://deb.debian.org/debian unstable/main arm64 python3-cffi-backend arm64 1.16.0-2+b2 [109 kB] Get: 77 http://deb.debian.org/debian unstable/main arm64 python3-chardet all 5.2.0+dfsg-1 [107 kB] Get: 78 http://deb.debian.org/debian unstable/main arm64 python3-charset-normalizer all 3.3.2-1 [51.6 kB] Get: 79 http://deb.debian.org/debian unstable/main arm64 python3-colorama all 0.4.6-4 [36.2 kB] Get: 80 http://deb.debian.org/debian unstable/main arm64 python3-click all 8.1.7-1 [94.0 kB] Get: 81 http://deb.debian.org/debian unstable/main arm64 python3-cryptography arm64 42.0.5-2 [1050 kB] Get: 82 http://deb.debian.org/debian unstable/main arm64 python3-greenlet arm64 3.0.1-3 [171 kB] Get: 83 http://deb.debian.org/debian unstable/main arm64 python3-sqlalchemy all 1.4.50+ds1-1 [1009 kB] Get: 84 http://deb.debian.org/debian unstable/main arm64 python3-databases all 0.8.0-1 [15.2 kB] Get: 85 http://deb.debian.org/debian unstable/main arm64 python3-pydantic arm64 1.10.14-1 [2709 kB] Get: 86 http://deb.debian.org/debian unstable/main arm64 python3-starlette all 0.37.2-1 [49.8 kB] Get: 87 http://deb.debian.org/debian unstable/main arm64 python3-h11 all 0.14.0-1 [50.1 kB] Get: 88 http://deb.debian.org/debian unstable/main arm64 python3-wsproto all 1.2.0-1 [25.4 kB] Get: 89 http://deb.debian.org/debian unstable/main arm64 python3-uvloop arm64 0.19.0+ds1-2.1 [779 kB] Get: 90 http://deb.debian.org/debian unstable/main arm64 python3-uvicorn all 0.29.0-1 [46.1 kB] Get: 91 http://deb.debian.org/debian unstable/main arm64 python3-fastapi all 0.110.0-1 [70.5 kB] Get: 92 http://deb.debian.org/debian unstable/main arm64 python3-httpcore all 1.0.4-1 [44.5 kB] Get: 93 http://deb.debian.org/debian unstable/main arm64 python3-pygments all 2.17.2+dfsg-1 [818 kB] Get: 94 http://deb.debian.org/debian unstable/main arm64 python3-mdurl all 0.1.2-1 [9444 B] Get: 95 http://deb.debian.org/debian unstable/main arm64 python3-markdown-it all 3.0.0-2 [62.5 kB] Get: 96 http://deb.debian.org/debian unstable/main arm64 python3-rich all 13.7.1-1 [201 kB] Get: 97 http://deb.debian.org/debian unstable/main arm64 python3-httpx all 0.27.0-1 [76.8 kB] Get: 98 http://deb.debian.org/debian unstable/main arm64 python3-iniconfig all 1.1.1-2 [6396 B] Get: 99 http://deb.debian.org/debian unstable/main arm64 python3-pluggy all 1.5.0-1 [26.9 kB] Get: 100 http://deb.debian.org/debian unstable/main arm64 python3-poetry-core all 1.9.0-1 [209 kB] Get: 101 http://deb.debian.org/debian unstable/main arm64 python3-pytest all 8.1.2-1 [246 kB] Get: 102 http://deb.debian.org/debian unstable/main arm64 python3-pytest-asyncio all 0.20.3-1.2 [13.3 kB] Get: 103 http://deb.debian.org/debian unstable/main arm64 python3-tornado arm64 6.4.0-1 [347 kB] Get: 104 http://deb.debian.org/debian unstable/main arm64 python3-pytest-tornasync all 0.6.0.post2-2 [6924 B] Get: 105 http://deb.debian.org/debian unstable/main arm64 python3-six all 1.16.0-6 [16.3 kB] Get: 106 http://deb.debian.org/debian unstable/main arm64 python3-urllib3 all 1.26.18-2 [116 kB] Get: 107 http://deb.debian.org/debian unstable/main arm64 python3-requests all 2.31.0+dfsg-1 [68.6 kB] Fetched 42.2 MB in 0s (85.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19744 files and directories currently installed.) Preparing to unpack .../libpython3.11-minimal_3.11.9-1_arm64.deb ... Unpacking libpython3.11-minimal:arm64 (3.11.9-1) ... Selecting previously unselected package libexpat1:arm64. Preparing to unpack .../libexpat1_2.6.2-1_arm64.deb ... Unpacking libexpat1:arm64 (2.6.2-1) ... Selecting previously unselected package python3.11-minimal. Preparing to unpack .../python3.11-minimal_3.11.9-1_arm64.deb ... Unpacking python3.11-minimal (3.11.9-1) ... Setting up libpython3.11-minimal:arm64 (3.11.9-1) ... Setting up libexpat1:arm64 (2.6.2-1) ... Setting up python3.11-minimal (3.11.9-1) ... Selecting previously unselected package python3-minimal. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20060 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.11.8-1_arm64.deb ... Unpacking python3-minimal (3.11.8-1) ... Selecting previously unselected package media-types. Preparing to unpack .../1-media-types_10.1.0_all.deb ... Unpacking media-types (10.1.0) ... Selecting previously unselected package netbase. Preparing to unpack .../2-netbase_6.4_all.deb ... Unpacking netbase (6.4) ... Selecting previously unselected package tzdata. Preparing to unpack .../3-tzdata_2024a-4_all.deb ... Unpacking tzdata (2024a-4) ... Selecting previously unselected package readline-common. Preparing to unpack .../4-readline-common_8.2-4_all.deb ... Unpacking readline-common (8.2-4) ... Selecting previously unselected package libreadline8t64:arm64. Preparing to unpack .../5-libreadline8t64_8.2-4_arm64.deb ... Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8 to /lib/aarch64-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8.2 to /lib/aarch64-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8 to /lib/aarch64-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8.2 to /lib/aarch64-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64' Unpacking libreadline8t64:arm64 (8.2-4) ... Selecting previously unselected package libpython3.11-stdlib:arm64. Preparing to unpack .../6-libpython3.11-stdlib_3.11.9-1_arm64.deb ... Unpacking libpython3.11-stdlib:arm64 (3.11.9-1) ... Selecting previously unselected package python3.11. Preparing to unpack .../7-python3.11_3.11.9-1_arm64.deb ... Unpacking python3.11 (3.11.9-1) ... Selecting previously unselected package libpython3-stdlib:arm64. Preparing to unpack .../8-libpython3-stdlib_3.11.8-1_arm64.deb ... Unpacking libpython3-stdlib:arm64 (3.11.8-1) ... Setting up python3-minimal (3.11.8-1) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 21052 files and directories currently installed.) Preparing to unpack .../00-python3_3.11.8-1_arm64.deb ... Unpacking python3 (3.11.8-1) ... Selecting previously unselected package libpython3.12-minimal:arm64. Preparing to unpack .../01-libpython3.12-minimal_3.12.3-1_arm64.deb ... Unpacking libpython3.12-minimal:arm64 (3.12.3-1) ... Selecting previously unselected package python3.12-minimal. Preparing to unpack .../02-python3.12-minimal_3.12.3-1_arm64.deb ... Unpacking python3.12-minimal (3.12.3-1) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../03-sensible-utils_0.0.22_all.deb ... Unpacking sensible-utils (0.0.22) ... Selecting previously unselected package openssl. Preparing to unpack .../04-openssl_3.2.1-3_arm64.deb ... Unpacking openssl (3.2.1-3) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../05-ca-certificates_20240203_all.deb ... Unpacking ca-certificates (20240203) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../06-libmagic-mgc_1%3a5.45-3_arm64.deb ... Unpacking libmagic-mgc (1:5.45-3) ... Selecting previously unselected package libmagic1t64:arm64. Preparing to unpack .../07-libmagic1t64_1%3a5.45-3_arm64.deb ... Unpacking libmagic1t64:arm64 (1:5.45-3) ... Selecting previously unselected package file. Preparing to unpack .../08-file_1%3a5.45-3_arm64.deb ... Unpacking file (1:5.45-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../09-gettext-base_0.21-14+b1_arm64.deb ... Unpacking gettext-base (0.21-14+b1) ... Selecting previously unselected package libuchardet0:arm64. Preparing to unpack .../10-libuchardet0_0.0.8-1+b1_arm64.deb ... Unpacking libuchardet0:arm64 (0.0.8-1+b1) ... Selecting previously unselected package groff-base. Preparing to unpack .../11-groff-base_1.23.0-4_arm64.deb ... Unpacking groff-base (1.23.0-4) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../12-bsdextrautils_2.40-8_arm64.deb ... Unpacking bsdextrautils (2.40-8) ... Selecting previously unselected package libpipeline1:arm64. Preparing to unpack .../13-libpipeline1_1.5.7-2_arm64.deb ... Unpacking libpipeline1:arm64 (1.5.7-2) ... Selecting previously unselected package man-db. Preparing to unpack .../14-man-db_2.12.1-1_arm64.deb ... Unpacking man-db (2.12.1-1) ... Selecting previously unselected package m4. Preparing to unpack .../15-m4_1.4.19-4_arm64.deb ... Unpacking m4 (1.4.19-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../16-autoconf_2.71-3_all.deb ... Unpacking autoconf (2.71-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../17-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../18-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../19-autopoint_0.21-14_all.deb ... Unpacking autopoint (0.21-14) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../20-libdebhelper-perl_13.15.3_all.deb ... Unpacking libdebhelper-perl (13.15.3) ... Selecting previously unselected package libtool. Preparing to unpack .../21-libtool_2.4.7-7_all.deb ... Unpacking libtool (2.4.7-7) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../22-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../23-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../24-libsub-override-perl_0.10-1_all.deb ... Unpacking libsub-override-perl (0.10-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../25-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../26-dh-strip-nondeterminism_1.13.1-1_all.deb ... Unpacking dh-strip-nondeterminism (1.13.1-1) ... Selecting previously unselected package libelf1t64:arm64. Preparing to unpack .../27-libelf1t64_0.191-1+b1_arm64.deb ... Unpacking libelf1t64:arm64 (0.191-1+b1) ... Selecting previously unselected package dwz. Preparing to unpack .../28-dwz_0.15-1+b1_arm64.deb ... Unpacking dwz (0.15-1+b1) ... Selecting previously unselected package libicu72:arm64. Preparing to unpack .../29-libicu72_72.1-4+b1_arm64.deb ... Unpacking libicu72:arm64 (72.1-4+b1) ... Selecting previously unselected package libxml2:arm64. Preparing to unpack .../30-libxml2_2.9.14+dfsg-1.3+b3_arm64.deb ... Unpacking libxml2:arm64 (2.9.14+dfsg-1.3+b3) ... Selecting previously unselected package gettext. Preparing to unpack .../31-gettext_0.21-14+b1_arm64.deb ... Unpacking gettext (0.21-14+b1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../32-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../33-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../34-debhelper_13.15.3_all.deb ... Unpacking debhelper (13.15.3) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../35-python3-pkg-resources_68.1.2-2_all.deb ... Unpacking python3-pkg-resources (68.1.2-2) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../36-python3-lib2to3_3.12.3-1_all.deb ... Unpacking python3-lib2to3 (3.12.3-1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../37-python3-distutils_3.12.3-1_all.deb ... Unpacking python3-distutils (3.12.3-1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../38-python3-setuptools_68.1.2-2_all.deb ... Unpacking python3-setuptools (68.1.2-2) ... Selecting previously unselected package dh-python. Preparing to unpack .../39-dh-python_6.20240422_all.deb ... Unpacking dh-python (6.20240422) ... Selecting previously unselected package libpython3.12-stdlib:arm64. Preparing to unpack .../40-libpython3.12-stdlib_3.12.3-1_arm64.deb ... Unpacking libpython3.12-stdlib:arm64 (3.12.3-1) ... Selecting previously unselected package libuv1t64:arm64. Preparing to unpack .../41-libuv1t64_1.48.0-1.1_arm64.deb ... Unpacking libuv1t64:arm64 (1.48.0-1.1) ... Selecting previously unselected package python3-packaging. Preparing to unpack .../42-python3-packaging_24.0-1_all.deb ... Unpacking python3-packaging (24.0-1) ... Selecting previously unselected package python3-pyproject-hooks. Preparing to unpack .../43-python3-pyproject-hooks_1.0.0-2_all.deb ... Unpacking python3-pyproject-hooks (1.0.0-2) ... Selecting previously unselected package python3-toml. Preparing to unpack .../44-python3-toml_0.10.2-1_all.deb ... Unpacking python3-toml (0.10.2-1) ... Selecting previously unselected package python3-wheel. Preparing to unpack .../45-python3-wheel_0.43.0-1_all.deb ... Unpacking python3-wheel (0.43.0-1) ... Selecting previously unselected package python3-build. Preparing to unpack .../46-python3-build_1.2.1-1_all.deb ... Unpacking python3-build (1.2.1-1) ... Selecting previously unselected package python3-installer. Preparing to unpack .../47-python3-installer_0.7.0+dfsg1-3_all.deb ... Unpacking python3-installer (0.7.0+dfsg1-3) ... Selecting previously unselected package pybuild-plugin-pyproject. Preparing to unpack .../48-pybuild-plugin-pyproject_6.20240422_all.deb ... Unpacking pybuild-plugin-pyproject (6.20240422) ... Selecting previously unselected package python3-pymysql. Preparing to unpack .../49-python3-pymysql_1.1.0-1_all.deb ... Unpacking python3-pymysql (1.1.0-1) ... Selecting previously unselected package python3-aiomysql. Preparing to unpack .../50-python3-aiomysql_0.1.1-2_all.deb ... Unpacking python3-aiomysql (0.1.1-2) ... Selecting previously unselected package python3-typing-extensions. Preparing to unpack .../51-python3-typing-extensions_4.10.0-1_all.deb ... Unpacking python3-typing-extensions (4.10.0-1) ... Selecting previously unselected package python3-aiosqlite. Preparing to unpack .../52-python3-aiosqlite_0.17.0-2_all.deb ... Unpacking python3-aiosqlite (0.17.0-2) ... Selecting previously unselected package python3.12. Preparing to unpack .../53-python3.12_3.12.3-1_arm64.deb ... Unpacking python3.12 (3.12.3-1) ... Selecting previously unselected package python3-all. Preparing to unpack .../54-python3-all_3.11.8-1_arm64.deb ... Unpacking python3-all (3.11.8-1) ... Selecting previously unselected package python3-idna. Preparing to unpack .../55-python3-idna_3.6-2_all.deb ... Unpacking python3-idna (3.6-2) ... Selecting previously unselected package python3-sniffio. Preparing to unpack .../56-python3-sniffio_1.3.0-2_all.deb ... Unpacking python3-sniffio (1.3.0-2) ... Selecting previously unselected package python3-anyio. Preparing to unpack .../57-python3-anyio_4.3.0-1_all.deb ... Unpacking python3-anyio (4.3.0-1) ... Selecting previously unselected package python3-asgi-lifespan. Preparing to unpack .../58-python3-asgi-lifespan_2.1.0-2_all.deb ... Unpacking python3-asgi-lifespan (2.1.0-2) ... Selecting previously unselected package python3-async-generator. Preparing to unpack .../59-python3-async-generator_1.10-4_all.deb ... Unpacking python3-async-generator (1.10-4) ... Selecting previously unselected package python3-async-timeout. Preparing to unpack .../60-python3-async-timeout_4.0.3-1_all.deb ... Unpacking python3-async-timeout (4.0.3-1) ... Selecting previously unselected package python3-asyncpg. Preparing to unpack .../61-python3-asyncpg_0.29.0-1_arm64.deb ... Unpacking python3-asyncpg (0.29.0-1) ... Selecting previously unselected package python3-certifi. Preparing to unpack .../62-python3-certifi_2023.11.17-1_all.deb ... Unpacking python3-certifi (2023.11.17-1) ... Selecting previously unselected package python3-cffi-backend:arm64. Preparing to unpack .../63-python3-cffi-backend_1.16.0-2+b2_arm64.deb ... Unpacking python3-cffi-backend:arm64 (1.16.0-2+b2) ... Selecting previously unselected package python3-chardet. Preparing to unpack .../64-python3-chardet_5.2.0+dfsg-1_all.deb ... Unpacking python3-chardet (5.2.0+dfsg-1) ... Selecting previously unselected package python3-charset-normalizer. Preparing to unpack .../65-python3-charset-normalizer_3.3.2-1_all.deb ... Unpacking python3-charset-normalizer (3.3.2-1) ... Selecting previously unselected package python3-colorama. Preparing to unpack .../66-python3-colorama_0.4.6-4_all.deb ... Unpacking python3-colorama (0.4.6-4) ... Selecting previously unselected package python3-click. Preparing to unpack .../67-python3-click_8.1.7-1_all.deb ... Unpacking python3-click (8.1.7-1) ... Selecting previously unselected package python3-cryptography. Preparing to unpack .../68-python3-cryptography_42.0.5-2_arm64.deb ... Unpacking python3-cryptography (42.0.5-2) ... Selecting previously unselected package python3-greenlet. Preparing to unpack .../69-python3-greenlet_3.0.1-3_arm64.deb ... Unpacking python3-greenlet (3.0.1-3) ... Selecting previously unselected package python3-sqlalchemy. Preparing to unpack .../70-python3-sqlalchemy_1.4.50+ds1-1_all.deb ... Unpacking python3-sqlalchemy (1.4.50+ds1-1) ... Selecting previously unselected package python3-databases. Preparing to unpack .../71-python3-databases_0.8.0-1_all.deb ... Unpacking python3-databases (0.8.0-1) ... Selecting previously unselected package python3-pydantic. Preparing to unpack .../72-python3-pydantic_1.10.14-1_arm64.deb ... Unpacking python3-pydantic (1.10.14-1) ... Selecting previously unselected package python3-starlette. Preparing to unpack .../73-python3-starlette_0.37.2-1_all.deb ... Unpacking python3-starlette (0.37.2-1) ... Selecting previously unselected package python3-h11. Preparing to unpack .../74-python3-h11_0.14.0-1_all.deb ... Unpacking python3-h11 (0.14.0-1) ... Selecting previously unselected package python3-wsproto. Preparing to unpack .../75-python3-wsproto_1.2.0-1_all.deb ... Unpacking python3-wsproto (1.2.0-1) ... Selecting previously unselected package python3-uvloop. Preparing to unpack .../76-python3-uvloop_0.19.0+ds1-2.1_arm64.deb ... Unpacking python3-uvloop (0.19.0+ds1-2.1) ... Selecting previously unselected package python3-uvicorn. Preparing to unpack .../77-python3-uvicorn_0.29.0-1_all.deb ... Unpacking python3-uvicorn (0.29.0-1) ... Selecting previously unselected package python3-fastapi. Preparing to unpack .../78-python3-fastapi_0.110.0-1_all.deb ... Unpacking python3-fastapi (0.110.0-1) ... Selecting previously unselected package python3-httpcore. Preparing to unpack .../79-python3-httpcore_1.0.4-1_all.deb ... Unpacking python3-httpcore (1.0.4-1) ... Selecting previously unselected package python3-pygments. Preparing to unpack .../80-python3-pygments_2.17.2+dfsg-1_all.deb ... Unpacking python3-pygments (2.17.2+dfsg-1) ... Selecting previously unselected package python3-mdurl. Preparing to unpack .../81-python3-mdurl_0.1.2-1_all.deb ... Unpacking python3-mdurl (0.1.2-1) ... Selecting previously unselected package python3-markdown-it. Preparing to unpack .../82-python3-markdown-it_3.0.0-2_all.deb ... Unpacking python3-markdown-it (3.0.0-2) ... Selecting previously unselected package python3-rich. Preparing to unpack .../83-python3-rich_13.7.1-1_all.deb ... Unpacking python3-rich (13.7.1-1) ... Selecting previously unselected package python3-httpx. Preparing to unpack .../84-python3-httpx_0.27.0-1_all.deb ... Unpacking python3-httpx (0.27.0-1) ... Selecting previously unselected package python3-iniconfig. Preparing to unpack .../85-python3-iniconfig_1.1.1-2_all.deb ... Unpacking python3-iniconfig (1.1.1-2) ... Selecting previously unselected package python3-pluggy. Preparing to unpack .../86-python3-pluggy_1.5.0-1_all.deb ... Unpacking python3-pluggy (1.5.0-1) ... Selecting previously unselected package python3-poetry-core. Preparing to unpack .../87-python3-poetry-core_1.9.0-1_all.deb ... Unpacking python3-poetry-core (1.9.0-1) ... Selecting previously unselected package python3-pytest. Preparing to unpack .../88-python3-pytest_8.1.2-1_all.deb ... Unpacking python3-pytest (8.1.2-1) ... Selecting previously unselected package python3-pytest-asyncio. Preparing to unpack .../89-python3-pytest-asyncio_0.20.3-1.2_all.deb ... Unpacking python3-pytest-asyncio (0.20.3-1.2) ... Selecting previously unselected package python3-tornado. Preparing to unpack .../90-python3-tornado_6.4.0-1_arm64.deb ... Unpacking python3-tornado (6.4.0-1) ... Selecting previously unselected package python3-pytest-tornasync. Preparing to unpack .../91-python3-pytest-tornasync_0.6.0.post2-2_all.deb ... Unpacking python3-pytest-tornasync (0.6.0.post2-2) ... Selecting previously unselected package python3-six. Preparing to unpack .../92-python3-six_1.16.0-6_all.deb ... Unpacking python3-six (1.16.0-6) ... Selecting previously unselected package python3-urllib3. Preparing to unpack .../93-python3-urllib3_1.26.18-2_all.deb ... Unpacking python3-urllib3 (1.26.18-2) ... Selecting previously unselected package python3-requests. Preparing to unpack .../94-python3-requests_2.31.0+dfsg-1_all.deb ... Unpacking python3-requests (2.31.0+dfsg-1) ... Setting up media-types (10.1.0) ... Setting up libpipeline1:arm64 (1.5.7-2) ... Setting up libicu72:arm64 (72.1-4+b1) ... Setting up bsdextrautils (2.40-8) ... Setting up libmagic-mgc (1:5.45-3) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.15.3) ... Setting up libuv1t64:arm64 (1.48.0-1.1) ... Setting up libmagic1t64:arm64 (1:5.45-3) ... Setting up libpython3.12-minimal:arm64 (3.12.3-1) ... Setting up gettext-base (0.21-14+b1) ... Setting up m4 (1.4.19-4) ... Setting up file (1:5.45-3) ... Setting up libelf1t64:arm64 (0.191-1+b1) ... Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' Local time is now: Tue May 7 13:22:47 UTC 2024. Universal Time is now: Tue May 7 13:22:47 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... Setting up autopoint (0.21-14) ... Setting up autoconf (2.71-3) ... Setting up dwz (0.15-1+b1) ... Setting up sensible-utils (0.0.22) ... Setting up libuchardet0:arm64 (0.0.8-1+b1) ... Setting up libsub-override-perl (0.10-1) ... Setting up netbase (6.4) ... Setting up openssl (3.2.1-3) ... Setting up readline-common (8.2-4) ... Setting up libxml2:arm64 (2.9.14+dfsg-1.3+b3) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.13.1-1) ... Setting up python3.12-minimal (3.12.3-1) ... Setting up gettext (0.21-14+b1) ... Setting up libtool (2.4.7-7) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up ca-certificates (20240203) ... Updating certificates in /etc/ssl/certs... 146 added, 0 removed; done. Setting up libreadline8t64:arm64 (8.2-4) ... Setting up dh-strip-nondeterminism (1.13.1-1) ... Setting up groff-base (1.23.0-4) ... Setting up libpython3.12-stdlib:arm64 (3.12.3-1) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up libpython3.11-stdlib:arm64 (3.11.9-1) ... Setting up python3.12 (3.12.3-1) ... Setting up man-db (2.12.1-1) ... Not building database; man-db/auto-update is not 'true'. Setting up libpython3-stdlib:arm64 (3.11.8-1) ... Setting up python3.11 (3.11.9-1) ... Setting up debhelper (13.15.3) ... Setting up python3 (3.11.8-1) ... Setting up python3-wheel (0.43.0-1) ... Setting up python3-async-timeout (4.0.3-1) ... Setting up python3-six (1.16.0-6) ... Setting up python3-packaging (24.0-1) ... Setting up python3-pyproject-hooks (1.0.0-2) ... Setting up python3-certifi (2023.11.17-1) ... Setting up python3-poetry-core (1.9.0-1) ... Setting up python3-mdurl (0.1.2-1) ... Setting up python3-greenlet (3.0.1-3) ... Setting up python3-idna (3.6-2) ... Setting up python3-h11 (0.14.0-1) ... Setting up python3-typing-extensions (4.10.0-1) ... Setting up python3-pymysql (1.1.0-1) ... Setting up python3-toml (0.10.2-1) ... Setting up python3-uvloop (0.19.0+ds1-2.1) ... Setting up python3-installer (0.7.0+dfsg1-3) ... Setting up python3-urllib3 (1.26.18-2) ... Setting up python3-pluggy (1.5.0-1) ... Setting up python3-markdown-it (3.0.0-2) ... Setting up python3-asyncpg (0.29.0-1) ... Setting up python3-build (1.2.1-1) ... Setting up python3-lib2to3 (3.12.3-1) ... Setting up python3-cffi-backend:arm64 (1.16.0-2+b2) ... Setting up python3-pkg-resources (68.1.2-2) ... Setting up python3-distutils (3.12.3-1) ... python3.12: can't get files for byte-compilation Setting up python3-httpcore (1.0.4-1) ... Setting up python3-iniconfig (1.1.1-2) ... Setting up python3-sniffio (1.3.0-2) ... Setting up python3-tornado (6.4.0-1) ... Setting up python3-asgi-lifespan (2.1.0-2) ... Setting up python3-wsproto (1.2.0-1) ... Setting up python3-setuptools (68.1.2-2) ... Setting up python3-async-generator (1.10-4) ... Setting up python3-anyio (4.3.0-1) ... Setting up python3-colorama (0.4.6-4) ... Setting up python3-charset-normalizer (3.3.2-1) ... Setting up python3-pytest (8.1.2-1) ... Setting up python3-all (3.11.8-1) ... Setting up python3-aiomysql (0.1.1-2) ... Setting up python3-starlette (0.37.2-1) ... Setting up python3-click (8.1.7-1) ... Setting up python3-sqlalchemy (1.4.50+ds1-1) ... Setting up python3-pygments (2.17.2+dfsg-1) ... Setting up python3-databases (0.8.0-1) ... Setting up python3-chardet (5.2.0+dfsg-1) ... Setting up python3-cryptography (42.0.5-2) ... Setting up python3-pydantic (1.10.14-1) ... Setting up python3-aiosqlite (0.17.0-2) ... Setting up python3-requests (2.31.0+dfsg-1) ... Setting up python3-pytest-asyncio (0.20.3-1.2) ... Setting up dh-python (6.20240422) ... Setting up python3-pytest-tornasync (0.6.0.post2-2) ... Setting up python3-uvicorn (0.29.0-1) ... Setting up python3-rich (13.7.1-1) ... Setting up pybuild-plugin-pyproject (6.20240422) ... Setting up python3-httpx (0.27.0-1) ... Setting up python3-fastapi (0.110.0-1) ... Processing triggers for libc-bin (2.38-8) ... Processing triggers for ca-certificates (20240203) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: Running cd /build/reproducible-path/ormar-0.12.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ormar_0.12.2-1_source.changes dpkg-buildpackage: info: source package ormar dpkg-buildpackage: info: source version 0.12.2-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Edward Betts dpkg-source --before-build . dpkg-buildpackage: info: host architecture arm64 debian/rules clean dh clean --buildsystem=pybuild debian/rules override_dh_auto_clean make[1]: Entering directory '/build/reproducible-path/ormar-0.12.2' dh_auto_clean pybuild --clean -i python{version} -p "3.12 3.11" rm -rf .pybuild/ find . -name \*.pyc -exec rm {} \; rm -rf ormar.egg-info/ make[1]: Leaving directory '/build/reproducible-path/ormar-0.12.2' dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild rm -f debian/debhelper-build-stamp rm -rf debian/.debhelper/ rm -f -- debian/python3-ormar.substvars debian/files rm -fr -- debian/python3-ormar/ debian/tmp/ find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \) debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild pybuild --configure -i python{version} -p "3.12 3.11" dh_auto_build -O--buildsystem=pybuild pybuild --build -i python{version} -p "3.12 3.11" I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar * Building wheel... Successfully built ormar-0.12.2-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module I: pybuild plugin_pyproject:129: Building wheel for python3.11 with "build" module I: pybuild base:311: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar * Building wheel... Successfully built ormar-0.12.2-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.11 with "installer" module dh_auto_test -O--buildsystem=pybuild pybuild --test -i python{version} -p "3.12 3.11" I: pybuild base:311: cd /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build; python3.12 -m pytest --asyncio-mode=auto -k "not test_weakref_init" ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.1.2, pluggy-1.5.0 rootdir: /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build configfile: pyproject.toml plugins: tornasync-0.6.0.post2, asyncio-0.20.3, anyio-4.3.0 asyncio: mode=Mode.AUTO collected 447 items / 1 deselected / 446 selected tests/test_deferred/test_forward_cross_refs.py .. [ 0%] tests/test_deferred/test_forward_refs.py ....... [ 2%] tests/test_deferred/test_more_same_table_joins.py ... [ 2%] tests/test_deferred/test_same_table_joins.py ... [ 3%] tests/test_encryption/test_encrypted_columns.py ......... [ 5%] tests/test_exclude_include_dict/test_complex_relation_tree_performance.py . [ 5%] [ 5%] tests/test_exclude_include_dict/test_dumping_model_to_dict.py ...... [ 6%] tests/test_exclude_include_dict/test_excludable_items.py ........ [ 8%] tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py FFFF [ 9%] [ 9%] tests/test_exclude_include_dict/test_excluding_fields_with_default.py . [ 9%] tests/test_exclude_include_dict/test_excluding_subset_of_columns.py . [ 10%] tests/test_exclude_include_dict/test_pydantic_dict_params.py ... [ 10%] tests/test_fastapi/test_binary_fields.py F. [ 11%] tests/test_fastapi/test_choices_schema.py F.. [ 11%] tests/test_fastapi/test_docs_with_multiple_relations_to_one.py F [ 12%] tests/test_fastapi/test_enum_schema.py . [ 12%] tests/test_fastapi/test_excludes_with_get_pydantic.py F [ 12%] tests/test_fastapi/test_excluding_fields.py F [ 12%] tests/test_fastapi/test_extra_ignore_parameter.py F [ 13%] tests/test_fastapi/test_fastapi_docs.py F.. [ 13%] tests/test_fastapi/test_fastapi_usage.py F [ 13%] tests/test_fastapi/test_inheritance_concrete_fastapi.py FFF [ 14%] tests/test_fastapi/test_inheritance_mixins_fastapi.py F [ 14%] tests/test_fastapi/test_json_field_fastapi.py ...F [ 15%] tests/test_fastapi/test_m2m_forwardref.py F [ 15%] tests/test_fastapi/test_more_reallife_fastapi.py F [ 16%] tests/test_fastapi/test_nested_saving.py F [ 16%] tests/test_fastapi/test_recursion_error.py F [ 16%] tests/test_fastapi/test_relations_with_nested_defaults.py F [ 16%] tests/test_fastapi/test_schema_not_allowed_params.py . [ 17%] tests/test_fastapi/test_skip_reverse_models.py F [ 17%] tests/test_fastapi/test_wekref_exclusion.py F [ 17%] tests/test_inheritance_and_pydantic_generation/test_excluding_parent_fields_inheritance.py . [ 17%] ... [ 18%] tests/test_inheritance_and_pydantic_generation/test_geting_pydantic_models.py . [ 18%] ............ [ 21%] tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py . [ 21%] ........... [ 23%] tests/test_inheritance_and_pydantic_generation/test_inheritance_mixins.py . [ 24%] .. [ 24%] tests/test_inheritance_and_pydantic_generation/test_inheritance_of_property_fields.py . [ 24%] [ 24%] tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py . [ 25%] . [ 25%] tests/test_inheritance_and_pydantic_generation/test_inherited_class_is_not_abstract_by_default.py . [ 25%] [ 25%] tests/test_inheritance_and_pydantic_generation/test_nested_models_pydantic.py . [ 25%] . [ 26%] tests/test_inheritance_and_pydantic_generation/test_pydantic_fields_order.py . [ 26%] [ 26%] tests/test_inheritance_and_pydantic_generation/test_validators_are_inherited.py . [ 26%] . [ 26%] tests/test_inheritance_and_pydantic_generation/test_validators_in_generated_pydantic.py . [ 26%] . [ 27%] tests/test_meta_constraints/test_check_constraints.py . [ 27%] tests/test_meta_constraints/test_index_constraints.py .. [ 27%] tests/test_meta_constraints/test_unique_constraints.py . [ 28%] tests/test_model_definition/pks_and_fks/test_non_integer_pkey.py .. [ 28%] tests/test_model_definition/pks_and_fks/test_saving_string_pks.py . [ 28%] tests/test_model_definition/pks_and_fks/test_uuid_fks.py . [ 28%] tests/test_model_definition/test_aliases.py .... [ 29%] tests/test_model_definition/test_columns.py ...... [ 31%] tests/test_model_definition/test_create_uses_init_for_consistency.py . [ 31%] tests/test_model_definition/test_dates_with_timezone.py ..... [ 32%] tests/test_model_definition/test_equality_and_hash.py ... [ 33%] tests/test_model_definition/test_extra_ignore_parameter.py . [ 33%] tests/test_model_definition/test_fields_access.py ...................... [ 38%] [ 38%] tests/test_model_definition/test_foreign_key_value_used_for_related_model.py . [ 38%] . [ 38%] tests/test_model_definition/test_iterate.py ............ [ 41%] tests/test_model_definition/test_model_construct.py ... [ 42%] tests/test_model_definition/test_model_definition.py ................ [ 45%] tests/test_model_definition/test_models.py ....................... [ 50%] tests/test_model_definition/test_models_are_pickable.py . [ 51%] tests/test_model_definition/test_overwriting_pydantic_field_type.py .. [ 51%] tests/test_model_definition/test_overwriting_sql_nullable.py . [ 51%] tests/test_model_definition/test_pk_field_is_always_not_null.py . [ 52%] tests/test_model_definition/test_properties.py .. [ 52%] tests/test_model_definition/test_pydantic_fields.py ... [ 53%] tests/test_model_definition/test_pydantic_only_fields.py . [ 53%] tests/test_model_definition/test_pydantic_private_attributes.py . [ 53%] tests/test_model_definition/test_save_status.py ........ [ 55%] tests/test_model_definition/test_saving_nullable_fields.py . [ 55%] tests/test_model_definition/test_server_default.py .. [ 56%] tests/test_model_definition/test_setting_comments_in_db.py . [ 56%] tests/test_model_methods/test_excludes_in_load_all.py .. [ 56%] tests/test_model_methods/test_load_all.py ..... [ 57%] tests/test_model_methods/test_populate_default_values.py . [ 58%] tests/test_model_methods/test_save_related.py .... [ 58%] tests/test_model_methods/test_save_related_from_dict.py ....... [ 60%] tests/test_model_methods/test_save_related_uuid.py . [ 60%] tests/test_model_methods/test_update.py .. [ 61%] tests/test_model_methods/test_upsert.py . [ 61%] tests/test_ordering/test_default_model_order.py ... [ 62%] tests/test_ordering/test_default_relation_order.py .... [ 63%] tests/test_ordering/test_default_through_relation_order.py .. [ 63%] tests/test_ordering/test_proper_order_of_sorting_apply.py . [ 63%] tests/test_queries/test_adding_related.py . [ 63%] tests/test_queries/test_aggr_functions.py ...... [ 65%] tests/test_queries/test_deep_relations_select_all.py . [ 65%] tests/test_queries/test_filter_groups.py ........ [ 67%] tests/test_queries/test_indirect_relations_to_self.py . [ 67%] tests/test_queries/test_isnull_filter.py .. [ 67%] tests/test_queries/test_nested_reverse_relations.py . [ 68%] tests/test_queries/test_non_relation_fields_not_merged.py . [ 68%] tests/test_queries/test_or_filters.py . [ 68%] tests/test_queries/test_order_by.py .... [ 69%] tests/test_queries/test_pagination.py .... [ 70%] tests/test_queries/test_queryproxy_on_m2m_models.py .. [ 70%] tests/test_queries/test_queryset_level_methods.py .............. [ 73%] tests/test_queries/test_quoting_table_names_in_on_join_clause.py . [ 74%] tests/test_queries/test_reserved_sql_keywords_escaped.py .. [ 74%] tests/test_queries/test_reverse_fk_queryset.py ..... [ 75%] tests/test_queries/test_selecting_subset_of_columns.py .. [ 76%] tests/test_queries/test_values_and_values_list.py ................ [ 79%] tests/test_relations/test_cascades.py .... [ 80%] tests/test_relations/test_customizing_through_model_relation_names.py .. [ 81%] [ 81%] tests/test_relations/test_database_fk_creation.py ... [ 81%] tests/test_relations/test_foreign_keys.py ............... [ 85%] tests/test_relations/test_m2m_through_fields.py ............. [ 88%] tests/test_relations/test_many_to_many.py ......... [ 90%] tests/test_relations/test_postgress_select_related_with_limit.py . [ 90%] tests/test_relations/test_prefetch_related.py ..... [ 91%] tests/test_relations/test_prefetch_related_multiple_models_relation.py . [ 91%] [ 91%] tests/test_relations/test_python_style_relations.py . [ 91%] tests/test_relations/test_relations_default_exception.py .. [ 92%] tests/test_relations/test_saving_related.py .. [ 92%] tests/test_relations/test_select_related_with_limit.py . [ 93%] tests/test_relations/test_select_related_with_m2m_and_pk_name_set.py .. [ 93%] tests/test_relations/test_selecting_proper_table_prefix.py . [ 93%] tests/test_relations/test_skipping_reverse.py ..... [ 94%] tests/test_relations/test_through_relations_fail.py . [ 95%] tests/test_signals/test_signals.py .......... [ 97%] tests/test_signals/test_signals_for_relations.py . [ 97%] tests/test_types.py . [ 97%] tests/test_utils/test_models_helpers.py . [ 97%] tests/test_utils/test_queryset_utils.py ......... [100%] =================================== FAILURES =================================== ______________________ test_excluding_fields_in_endpoints ______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_excluding_fields_in_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user = { "email": "test@domain.com", "password": "^*^%A*DA*IAAA", "first_name": "John", "last_name": "Doe", } > response = await client.post("/users/", json=user) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _______________________ test_adding_fields_in_endpoints ________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_adding_fields_in_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user3 = {"last_name": "Test", "full_name": "deleted"} > response = await client.post("/random/", json=user3) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _______________________ test_adding_fields_in_endpoints2 _______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_adding_fields_in_endpoints2(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user3 = {"last_name": "Test"} > response = await client.post("/random2/", json=user3) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _________________ test_excluding_property_field_in_endpoints2 __________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_excluding_property_field_in_endpoints2(): dummy_registry = {} @post_save(RandomModel) async def after_save(sender, instance, **kwargs): dummy_registry[instance.pk] = instance.dict() client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user3 = {"last_name": "Test"} > response = await client.post("/random3/", json=user3) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:289: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post( "/things", json={"bt": base64.b64encode(blob3).decode()}, headers=headers, ) tests/test_fastapi/test_binary_fields.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post( "/items/", json={"id": 1, "ident": "", "priority": 4, "expire_date": "2022-05-01"}, ) tests/test_fastapi/test_choices_schema.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.get("/openapi.json") tests/test_fastapi/test_docs_with_multiple_relations_to_one.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1801: in get return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): test_category = dict(name="Foo", id=12) > response = await client.post("/categories/", json=test_category) tests/test_fastapi/test_excludes_with_get_pydantic.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): item = { "name": "test", "categories": [{"name": "test cat"}, {"name": "test cat2"}], } > response = await client.post("/items/", json=item) tests/test_fastapi/test_excluding_fields.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _______________________ test_extra_parameters_in_request _______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_extra_parameters_in_request(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): data = {"name": "Name", "extraname": "to ignore"} > resp = await client.post("item/", json=data) tests/test_fastapi/test_extra_ignore_parameter.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post("/categories/", json={"name": "test cat"}) tests/test_fastapi/test_fastapi_docs.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post( "/items/", json={"name": "test", "id": 1, "category": {"name": "test cat"}} ) tests/test_fastapi/test_fastapi_usage.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): test_category = dict(name="Foo", code=123, created_by="Sam", updated_by="Max") test_subject = dict(name="Bar") > response = await client.post("/categories/", json=test_category) tests/test_fastapi/test_inheritance_concrete_fastapi.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________ test_inheritance_with_relation ________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_inheritance_with_relation(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > sam = Person(**(await client.post("/persons/", json={"name": "Sam"})).json()) tests/test_fastapi/test_inheritance_concrete_fastapi.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________ test_inheritance_with_m2m_relation ______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_inheritance_with_m2m_relation(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > sam = Person(**(await client.post("/persons/", json={"name": "Sam"})).json()) tests/test_fastapi/test_inheritance_concrete_fastapi.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): test_category = dict(name="Foo", code=123, created_by="Sam", updated_by="Max") test_subject = dict(name="Bar") > response = await client.post("/categories/", json=test_category) tests/test_fastapi/test_inheritance_mixins_fastapi.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.get("/things_with_sample") tests/test_fastapi/test_json_field_fastapi.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1801: in get return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _________________________________ test_payload _________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_payload(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): payload = { "name": "Thailand", "iso2": "TH", "iso3": "THA", "population": 23123123, "demonym": "Thai", "native_name": "Thailand", } > resp = await client.post( "/", json=payload, headers={"application-type": "json"} ) tests/test_fastapi/test_m2m_forwardref.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post("/categories", json={"name": "test cat"}) tests/test_fastapi/test_more_reallife_fastapi.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________ test_saving_related_in_fastapi ________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_saving_related_in_fastapi(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): payload = { "department_name": "Ormar", "courses": [ { "course_name": "basic1", "completed": True, "students": [{"name": "Jack"}, {"name": "Abi"}], }, { "course_name": "basic2", "completed": True, "students": [{"name": "Kate"}, {"name": "Miranda"}], }, ], } > response = await client.post("/departments/", json=payload, headers=headers) tests/test_fastapi/test_nested_saving.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_quiz_creation ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_quiz_creation(): client = AsyncClient(app=router, base_url="http://testserver") async with client as client, LifespanManager(router): payload = { "title": "Some test question", "description": "A description", "questions": [ { "question": "Is ClassQuiz cool?", "answers": [ {"right": True, "answer": "Yes"}, {"right": False, "answer": "No"}, ], }, { "question": "Do you like open source?", "answers": [ {"right": True, "answer": "Yes"}, {"right": False, "answer": "No"}, {"right": False, "answer": "Maybe"}, ], }, ], } > response = await client.post("/create", json=payload) tests/test_fastapi/test_recursion_error.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError __________________________ test_related_with_defaults __________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: sample_data = None @pytest.mark.asyncio async def test_related_with_defaults(sample_data): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.get("/books/1") tests/test_fastapi/test_relations_with_nested_defaults.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1801: in get return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _________________________________ test_queries _________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_queries(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): right_category = {"name": "Test category"} wrong_category = {"name": "Test category2", "posts": [{"title": "Test Post"}]} # cannot add posts if skipped, will be ignored (with extra=ignore by default) > response = await client.post( "/categories/", json=wrong_category, headers=headers ) tests/test_fastapi/test_skip_reverse_models.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_endpoints ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client, LifespanManager(app): > resp = await client.post("/test/1") tests/test_fastapi/test_wekref_exclusion.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError =============================== warnings summary =============================== tests/test_exclude_include_dict/test_complex_relation_tree_performance.py:193 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_exclude_include_dict/test_complex_relation_tree_performance.py:193: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). created_date: datetime = orm.DateTime(default=datetime.utcnow()) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") ../../../../../../usr/lib/python3/dist-packages/fastapi/applications.py:4495: 34 warnings /usr/lib/python3/dist-packages/fastapi/applications.py:4495: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). return self.router.on_event(event_type) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") ormar/fields/base.py:51 ormar/fields/base.py:51 tests/test_model_definition/test_model_definition.py::test_setting_pk_column_as_pydantic_only_in_model_definition /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/ormar/fields/base.py:51: DeprecationWarning: Parameter `pydantic_only` is deprecated and will be removed in one of the next releases. You can declare pydantic fields in a normal way. Check documentation: https://collerek.github.io/ormar/fields/pydantic-fields warnings.warn( tests/test_fastapi/test_binary_fields.py:25 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_binary_fields.py:25: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_binary_fields.py:32 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_binary_fields.py:32: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_choices_schema.py:69 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_choices_schema.py:69: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_choices_schema.py:76 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_choices_schema.py:76: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_excludes_with_get_pydantic.py:19 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_excludes_with_get_pydantic.py:19: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_excludes_with_get_pydantic.py:26 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_excludes_with_get_pydantic.py:26: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_excluding_fields.py:19 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_excluding_fields.py:19: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_excluding_fields.py:26 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_excluding_fields.py:26: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_extra_ignore_parameter.py:20 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_extra_ignore_parameter.py:20: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_extra_ignore_parameter.py:27 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_extra_ignore_parameter.py:27: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_fastapi_docs.py:21 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_fastapi_docs.py:21: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_fastapi_docs.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_fastapi_docs.py:28: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_inheritance_concrete_fastapi.py:27 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_inheritance_concrete_fastapi.py:27: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_inheritance_concrete_fastapi.py:34 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_inheritance_concrete_fastapi.py:34: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_inheritance_mixins_fastapi.py:16 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_inheritance_mixins_fastapi.py:16: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_inheritance_mixins_fastapi.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_inheritance_mixins_fastapi.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_json_field_fastapi.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_json_field_fastapi.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_json_field_fastapi.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_json_field_fastapi.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_m2m_forwardref.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_m2m_forwardref.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_m2m_forwardref.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_m2m_forwardref.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_more_reallife_fastapi.py:19 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_more_reallife_fastapi.py:19: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_more_reallife_fastapi.py:26 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_more_reallife_fastapi.py:26: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_nested_saving.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_nested_saving.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_nested_saving.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_nested_saving.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_recursion_error.py:25 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_recursion_error.py:25: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @router.on_event("startup") tests/test_fastapi/test_recursion_error.py:32 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_recursion_error.py:32: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @router.on_event("shutdown") tests/test_fastapi/test_relations_with_nested_defaults.py:21 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_relations_with_nested_defaults.py:21: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_relations_with_nested_defaults.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_relations_with_nested_defaults.py:28: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_skip_reverse_models.py:21 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_skip_reverse_models.py:21: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_skip_reverse_models.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_skip_reverse_models.py:28: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_wekref_exclusion.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_wekref_exclusion.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_wekref_exclusion.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_wekref_exclusion.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:27 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:27: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). created_at: datetime.datetime = ormar.DateTime(default=datetime.datetime.utcnow()) tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:28: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). updated_at: datetime.datetime = ormar.DateTime(default=datetime.datetime.utcnow()) tests/test_queries/test_quoting_table_names_in_on_join_clause.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_queries/test_quoting_table_names_in_on_join_clause.py:28: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). created_on = ormar.DateTime(timezone=True, default=datetime.datetime.utcnow()) tests/test_deferred/test_forward_cross_refs.py::test_double_relations /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/ormar/queryset/queries/query.py:154: RemovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) expr = sqlalchemy.sql.select(self.columns) tests/test_deferred/test_forward_cross_refs.py::test_auto_through_model /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_deferred/test_forward_cross_refs.py:90: SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: cities, countries; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored. metadata.drop_all(engine) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py: 4 warnings tests/test_fastapi/test_binary_fields.py: 1 warning tests/test_fastapi/test_choices_schema.py: 1 warning tests/test_fastapi/test_docs_with_multiple_relations_to_one.py: 1 warning tests/test_fastapi/test_excludes_with_get_pydantic.py: 1 warning tests/test_fastapi/test_excluding_fields.py: 1 warning tests/test_fastapi/test_extra_ignore_parameter.py: 1 warning tests/test_fastapi/test_fastapi_docs.py: 1 warning tests/test_fastapi/test_fastapi_usage.py: 1 warning tests/test_fastapi/test_inheritance_concrete_fastapi.py: 3 warnings tests/test_fastapi/test_inheritance_mixins_fastapi.py: 1 warning tests/test_fastapi/test_json_field_fastapi.py: 1 warning tests/test_fastapi/test_m2m_forwardref.py: 1 warning tests/test_fastapi/test_more_reallife_fastapi.py: 1 warning tests/test_fastapi/test_nested_saving.py: 1 warning tests/test_fastapi/test_recursion_error.py: 1 warning tests/test_fastapi/test_relations_with_nested_defaults.py: 1 warning tests/test_fastapi/test_skip_reverse_models.py: 1 warning tests/test_fastapi/test_wekref_exclusion.py: 1 warning /usr/lib/python3/dist-packages/httpx/_client.py:1426: DeprecationWarning: The 'app' shortcut is now deprecated. Use the explicit style 'transport=ASGITransport(app=...)' instead. warnings.warn(message, DeprecationWarning) tests/test_fastapi/test_excludes_with_get_pydantic.py::test_read_main /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_excludes_with_get_pydantic.py:38: SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: mutual_a, mutual_b; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored. metadata.drop_all(engine) tests/test_fastapi/test_m2m_forwardref.py::test_payload /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build/tests/test_fastapi/test_m2m_forwardref.py:85: SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: cities, countries; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored. metadata.drop_all(engine) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_excluding_fields_in_endpoints FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_adding_fields_in_endpoints FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_adding_fields_in_endpoints2 FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_excluding_property_field_in_endpoints2 FAILED tests/test_fastapi/test_binary_fields.py::test_read_main - httpx.Conne... FAILED tests/test_fastapi/test_choices_schema.py::test_all_endpoints - httpx.... FAILED tests/test_fastapi/test_docs_with_multiple_relations_to_one.py::test_all_endpoints FAILED tests/test_fastapi/test_excludes_with_get_pydantic.py::test_read_main FAILED tests/test_fastapi/test_excluding_fields.py::test_all_endpoints - http... FAILED tests/test_fastapi/test_extra_ignore_parameter.py::test_extra_parameters_in_request FAILED tests/test_fastapi/test_fastapi_docs.py::test_all_endpoints - httpx.Co... FAILED tests/test_fastapi/test_fastapi_usage.py::test_read_main - httpx.Conne... FAILED tests/test_fastapi/test_inheritance_concrete_fastapi.py::test_read_main FAILED tests/test_fastapi/test_inheritance_concrete_fastapi.py::test_inheritance_with_relation FAILED tests/test_fastapi/test_inheritance_concrete_fastapi.py::test_inheritance_with_m2m_relation FAILED tests/test_fastapi/test_inheritance_mixins_fastapi.py::test_read_main FAILED tests/test_fastapi/test_json_field_fastapi.py::test_read_main - httpx.... FAILED tests/test_fastapi/test_m2m_forwardref.py::test_payload - httpx.Connec... FAILED tests/test_fastapi/test_more_reallife_fastapi.py::test_all_endpoints FAILED tests/test_fastapi/test_nested_saving.py::test_saving_related_in_fastapi FAILED tests/test_fastapi/test_recursion_error.py::test_quiz_creation - httpx... FAILED tests/test_fastapi/test_relations_with_nested_defaults.py::test_related_with_defaults FAILED tests/test_fastapi/test_skip_reverse_models.py::test_queries - httpx.C... FAILED tests/test_fastapi/test_wekref_exclusion.py::test_endpoints - httpx.Co... ==== 24 failed, 422 passed, 1 deselected, 103 warnings in 82.52s (0:01:22) ===== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.12_ormar/build; python3.12 -m pytest --asyncio-mode=auto -k "not test_weakref_init" I: pybuild base:311: cd /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build; python3.11 -m pytest --asyncio-mode=auto -k "not test_weakref_init" ============================= test session starts ============================== platform linux -- Python 3.11.9, pytest-8.1.2, pluggy-1.5.0 rootdir: /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build configfile: pyproject.toml plugins: tornasync-0.6.0.post2, asyncio-0.20.3, anyio-4.3.0 asyncio: mode=Mode.AUTO collected 447 items / 1 deselected / 446 selected tests/test_deferred/test_forward_cross_refs.py .. [ 0%] tests/test_deferred/test_forward_refs.py ....... [ 2%] tests/test_deferred/test_more_same_table_joins.py ... [ 2%] tests/test_deferred/test_same_table_joins.py ... [ 3%] tests/test_encryption/test_encrypted_columns.py ......... [ 5%] tests/test_exclude_include_dict/test_complex_relation_tree_performance.py . [ 5%] [ 5%] tests/test_exclude_include_dict/test_dumping_model_to_dict.py ...... [ 6%] tests/test_exclude_include_dict/test_excludable_items.py ........ [ 8%] tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py FFFF [ 9%] [ 9%] tests/test_exclude_include_dict/test_excluding_fields_with_default.py . [ 9%] tests/test_exclude_include_dict/test_excluding_subset_of_columns.py . [ 10%] tests/test_exclude_include_dict/test_pydantic_dict_params.py ... [ 10%] tests/test_fastapi/test_binary_fields.py F. [ 11%] tests/test_fastapi/test_choices_schema.py F.. [ 11%] tests/test_fastapi/test_docs_with_multiple_relations_to_one.py F [ 12%] tests/test_fastapi/test_enum_schema.py . [ 12%] tests/test_fastapi/test_excludes_with_get_pydantic.py F [ 12%] tests/test_fastapi/test_excluding_fields.py F [ 12%] tests/test_fastapi/test_extra_ignore_parameter.py F [ 13%] tests/test_fastapi/test_fastapi_docs.py F.. [ 13%] tests/test_fastapi/test_fastapi_usage.py F [ 13%] tests/test_fastapi/test_inheritance_concrete_fastapi.py FFF [ 14%] tests/test_fastapi/test_inheritance_mixins_fastapi.py F [ 14%] tests/test_fastapi/test_json_field_fastapi.py ...F [ 15%] tests/test_fastapi/test_m2m_forwardref.py F [ 15%] tests/test_fastapi/test_more_reallife_fastapi.py F [ 16%] tests/test_fastapi/test_nested_saving.py F [ 16%] tests/test_fastapi/test_recursion_error.py F [ 16%] tests/test_fastapi/test_relations_with_nested_defaults.py F [ 16%] tests/test_fastapi/test_schema_not_allowed_params.py . [ 17%] tests/test_fastapi/test_skip_reverse_models.py F [ 17%] tests/test_fastapi/test_wekref_exclusion.py F [ 17%] tests/test_inheritance_and_pydantic_generation/test_excluding_parent_fields_inheritance.py . [ 17%] ... [ 18%] tests/test_inheritance_and_pydantic_generation/test_geting_pydantic_models.py . [ 18%] ............ [ 21%] tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py . [ 21%] ........... [ 23%] tests/test_inheritance_and_pydantic_generation/test_inheritance_mixins.py . [ 24%] .. [ 24%] tests/test_inheritance_and_pydantic_generation/test_inheritance_of_property_fields.py . [ 24%] [ 24%] tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py . [ 25%] . [ 25%] tests/test_inheritance_and_pydantic_generation/test_inherited_class_is_not_abstract_by_default.py . [ 25%] [ 25%] tests/test_inheritance_and_pydantic_generation/test_nested_models_pydantic.py . [ 25%] . [ 26%] tests/test_inheritance_and_pydantic_generation/test_pydantic_fields_order.py . [ 26%] [ 26%] tests/test_inheritance_and_pydantic_generation/test_validators_are_inherited.py . [ 26%] . [ 26%] tests/test_inheritance_and_pydantic_generation/test_validators_in_generated_pydantic.py . [ 26%] . [ 27%] tests/test_meta_constraints/test_check_constraints.py . [ 27%] tests/test_meta_constraints/test_index_constraints.py .. [ 27%] tests/test_meta_constraints/test_unique_constraints.py . [ 28%] tests/test_model_definition/pks_and_fks/test_non_integer_pkey.py .. [ 28%] tests/test_model_definition/pks_and_fks/test_saving_string_pks.py . [ 28%] tests/test_model_definition/pks_and_fks/test_uuid_fks.py . [ 28%] tests/test_model_definition/test_aliases.py .... [ 29%] tests/test_model_definition/test_columns.py ...... [ 31%] tests/test_model_definition/test_create_uses_init_for_consistency.py . [ 31%] tests/test_model_definition/test_dates_with_timezone.py ..... [ 32%] tests/test_model_definition/test_equality_and_hash.py ... [ 33%] tests/test_model_definition/test_extra_ignore_parameter.py . [ 33%] tests/test_model_definition/test_fields_access.py ...................... [ 38%] [ 38%] tests/test_model_definition/test_foreign_key_value_used_for_related_model.py . [ 38%] . [ 38%] tests/test_model_definition/test_iterate.py ............ [ 41%] tests/test_model_definition/test_model_construct.py ... [ 42%] tests/test_model_definition/test_model_definition.py ................ [ 45%] tests/test_model_definition/test_models.py ....................... [ 50%] tests/test_model_definition/test_models_are_pickable.py . [ 51%] tests/test_model_definition/test_overwriting_pydantic_field_type.py .. [ 51%] tests/test_model_definition/test_overwriting_sql_nullable.py . [ 51%] tests/test_model_definition/test_pk_field_is_always_not_null.py . [ 52%] tests/test_model_definition/test_properties.py .. [ 52%] tests/test_model_definition/test_pydantic_fields.py ... [ 53%] tests/test_model_definition/test_pydantic_only_fields.py . [ 53%] tests/test_model_definition/test_pydantic_private_attributes.py . [ 53%] tests/test_model_definition/test_save_status.py ........ [ 55%] tests/test_model_definition/test_saving_nullable_fields.py . [ 55%] tests/test_model_definition/test_server_default.py .. [ 56%] tests/test_model_definition/test_setting_comments_in_db.py . [ 56%] tests/test_model_methods/test_excludes_in_load_all.py .. [ 56%] tests/test_model_methods/test_load_all.py ..... [ 57%] tests/test_model_methods/test_populate_default_values.py . [ 58%] tests/test_model_methods/test_save_related.py .... [ 58%] tests/test_model_methods/test_save_related_from_dict.py ....... [ 60%] tests/test_model_methods/test_save_related_uuid.py . [ 60%] tests/test_model_methods/test_update.py .. [ 61%] tests/test_model_methods/test_upsert.py . [ 61%] tests/test_ordering/test_default_model_order.py ... [ 62%] tests/test_ordering/test_default_relation_order.py .... [ 63%] tests/test_ordering/test_default_through_relation_order.py .. [ 63%] tests/test_ordering/test_proper_order_of_sorting_apply.py . [ 63%] tests/test_queries/test_adding_related.py . [ 63%] tests/test_queries/test_aggr_functions.py ...... [ 65%] tests/test_queries/test_deep_relations_select_all.py . [ 65%] tests/test_queries/test_filter_groups.py ........ [ 67%] tests/test_queries/test_indirect_relations_to_self.py . [ 67%] tests/test_queries/test_isnull_filter.py .. [ 67%] tests/test_queries/test_nested_reverse_relations.py . [ 68%] tests/test_queries/test_non_relation_fields_not_merged.py . [ 68%] tests/test_queries/test_or_filters.py . [ 68%] tests/test_queries/test_order_by.py .... [ 69%] tests/test_queries/test_pagination.py .... [ 70%] tests/test_queries/test_queryproxy_on_m2m_models.py .. [ 70%] tests/test_queries/test_queryset_level_methods.py .............. [ 73%] tests/test_queries/test_quoting_table_names_in_on_join_clause.py . [ 74%] tests/test_queries/test_reserved_sql_keywords_escaped.py .. [ 74%] tests/test_queries/test_reverse_fk_queryset.py ..... [ 75%] tests/test_queries/test_selecting_subset_of_columns.py .. [ 76%] tests/test_queries/test_values_and_values_list.py ................ [ 79%] tests/test_relations/test_cascades.py .... [ 80%] tests/test_relations/test_customizing_through_model_relation_names.py .. [ 81%] [ 81%] tests/test_relations/test_database_fk_creation.py ... [ 81%] tests/test_relations/test_foreign_keys.py ............... [ 85%] tests/test_relations/test_m2m_through_fields.py ............. [ 88%] tests/test_relations/test_many_to_many.py ......... [ 90%] tests/test_relations/test_postgress_select_related_with_limit.py . [ 90%] tests/test_relations/test_prefetch_related.py ..... [ 91%] tests/test_relations/test_prefetch_related_multiple_models_relation.py . [ 91%] [ 91%] tests/test_relations/test_python_style_relations.py . [ 91%] tests/test_relations/test_relations_default_exception.py .. [ 92%] tests/test_relations/test_saving_related.py .. [ 92%] tests/test_relations/test_select_related_with_limit.py . [ 93%] tests/test_relations/test_select_related_with_m2m_and_pk_name_set.py .. [ 93%] tests/test_relations/test_selecting_proper_table_prefix.py . [ 93%] tests/test_relations/test_skipping_reverse.py ..... [ 94%] tests/test_relations/test_through_relations_fail.py . [ 95%] tests/test_signals/test_signals.py .......... [ 97%] tests/test_signals/test_signals_for_relations.py . [ 97%] tests/test_types.py . [ 97%] tests/test_utils/test_models_helpers.py . [ 97%] tests/test_utils/test_queryset_utils.py ......... [100%] =================================== FAILURES =================================== ______________________ test_excluding_fields_in_endpoints ______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_excluding_fields_in_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user = { "email": "test@domain.com", "password": "^*^%A*DA*IAAA", "first_name": "John", "last_name": "Doe", } > response = await client.post("/users/", json=user) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _______________________ test_adding_fields_in_endpoints ________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_adding_fields_in_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user3 = {"last_name": "Test", "full_name": "deleted"} > response = await client.post("/random/", json=user3) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _______________________ test_adding_fields_in_endpoints2 _______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_adding_fields_in_endpoints2(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user3 = {"last_name": "Test"} > response = await client.post("/random2/", json=user3) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _________________ test_excluding_property_field_in_endpoints2 __________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_excluding_property_field_in_endpoints2(): dummy_registry = {} @post_save(RandomModel) async def after_save(sender, instance, **kwargs): dummy_registry[instance.pk] = instance.dict() client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): user3 = {"last_name": "Test"} > response = await client.post("/random3/", json=user3) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:289: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post( "/things", json={"bt": base64.b64encode(blob3).decode()}, headers=headers, ) tests/test_fastapi/test_binary_fields.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post( "/items/", json={"id": 1, "ident": "", "priority": 4, "expire_date": "2022-05-01"}, ) tests/test_fastapi/test_choices_schema.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.get("/openapi.json") tests/test_fastapi/test_docs_with_multiple_relations_to_one.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1801: in get return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): test_category = dict(name="Foo", id=12) > response = await client.post("/categories/", json=test_category) tests/test_fastapi/test_excludes_with_get_pydantic.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): item = { "name": "test", "categories": [{"name": "test cat"}, {"name": "test cat2"}], } > response = await client.post("/items/", json=item) tests/test_fastapi/test_excluding_fields.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _______________________ test_extra_parameters_in_request _______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_extra_parameters_in_request(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): data = {"name": "Name", "extraname": "to ignore"} > resp = await client.post("item/", json=data) tests/test_fastapi/test_extra_ignore_parameter.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post("/categories/", json={"name": "test cat"}) tests/test_fastapi/test_fastapi_docs.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post( "/items/", json={"name": "test", "id": 1, "category": {"name": "test cat"}} ) tests/test_fastapi/test_fastapi_usage.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): test_category = dict(name="Foo", code=123, created_by="Sam", updated_by="Max") test_subject = dict(name="Bar") > response = await client.post("/categories/", json=test_category) tests/test_fastapi/test_inheritance_concrete_fastapi.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________ test_inheritance_with_relation ________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_inheritance_with_relation(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > sam = Person(**(await client.post("/persons/", json={"name": "Sam"})).json()) tests/test_fastapi/test_inheritance_concrete_fastapi.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________ test_inheritance_with_m2m_relation ______________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_inheritance_with_m2m_relation(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > sam = Person(**(await client.post("/persons/", json={"name": "Sam"})).json()) tests/test_fastapi/test_inheritance_concrete_fastapi.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): test_category = dict(name="Foo", code=123, created_by="Sam", updated_by="Max") test_subject = dict(name="Bar") > response = await client.post("/categories/", json=test_category) tests/test_fastapi/test_inheritance_mixins_fastapi.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_read_main ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_read_main(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.get("/things_with_sample") tests/test_fastapi/test_json_field_fastapi.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1801: in get return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _________________________________ test_payload _________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_payload(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): payload = { "name": "Thailand", "iso2": "TH", "iso3": "THA", "population": 23123123, "demonym": "Thai", "native_name": "Thailand", } > resp = await client.post( "/", json=payload, headers={"application-type": "json"} ) tests/test_fastapi/test_m2m_forwardref.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_all_endpoints ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_all_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.post("/categories", json={"name": "test cat"}) tests/test_fastapi/test_more_reallife_fastapi.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________ test_saving_related_in_fastapi ________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_saving_related_in_fastapi(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): payload = { "department_name": "Ormar", "courses": [ { "course_name": "basic1", "completed": True, "students": [{"name": "Jack"}, {"name": "Abi"}], }, { "course_name": "basic2", "completed": True, "students": [{"name": "Kate"}, {"name": "Miranda"}], }, ], } > response = await client.post("/departments/", json=payload, headers=headers) tests/test_fastapi/test_nested_saving.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ______________________________ test_quiz_creation ______________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_quiz_creation(): client = AsyncClient(app=router, base_url="http://testserver") async with client as client, LifespanManager(router): payload = { "title": "Some test question", "description": "A description", "questions": [ { "question": "Is ClassQuiz cool?", "answers": [ {"right": True, "answer": "Yes"}, {"right": False, "answer": "No"}, ], }, { "question": "Do you like open source?", "answers": [ {"right": True, "answer": "Yes"}, {"right": False, "answer": "No"}, {"right": False, "answer": "Maybe"}, ], }, ], } > response = await client.post("/create", json=payload) tests/test_fastapi/test_recursion_error.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError __________________________ test_related_with_defaults __________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: sample_data = None @pytest.mark.asyncio async def test_related_with_defaults(sample_data): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): > response = await client.get("/books/1") tests/test_fastapi/test_relations_with_nested_defaults.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1801: in get return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError _________________________________ test_queries _________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_queries(): client = AsyncClient(app=app, base_url="http://testserver") async with client as client, LifespanManager(app): right_category = {"name": "Test category"} wrong_category = {"name": "Test category2", "posts": [{"title": "Test Post"}]} # cannot add posts if skipped, will be ignored (with extra=ignore by default) > response = await client.post( "/categories/", json=wrong_category, headers=headers ) tests/test_fastapi/test_skip_reverse_models.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError ________________________________ test_endpoints ________________________________ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/dist-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/dist-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/dist-packages/httpcore/_async/http_proxy.py:207: in handle_async_request return await self._connection.handle_async_request(proxy_request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/dist-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/dist-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/dist-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/dist-packages/httpcore/_backends/anyio.py:112: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_endpoints(): client = AsyncClient(app=app, base_url="http://testserver") async with client, LifespanManager(app): > resp = await client.post("/test/1") tests/test_fastapi/test_wekref_exclusion.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/httpx/_client.py:1892: in post return await self.request( /usr/lib/python3/dist-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/dist-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/dist-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/dist-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/dist-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/dist-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:158: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed /usr/lib/python3/dist-packages/httpx/_transports/default.py:86: ConnectError =============================== warnings summary =============================== tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") ../../../../../../usr/lib/python3/dist-packages/fastapi/applications.py:4495: 34 warnings /usr/lib/python3/dist-packages/fastapi/applications.py:4495: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). return self.router.on_event(event_type) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") ormar/fields/base.py:51 ormar/fields/base.py:51 tests/test_model_definition/test_model_definition.py::test_setting_pk_column_as_pydantic_only_in_model_definition /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/ormar/fields/base.py:51: DeprecationWarning: Parameter `pydantic_only` is deprecated and will be removed in one of the next releases. You can declare pydantic fields in a normal way. Check documentation: https://collerek.github.io/ormar/fields/pydantic-fields warnings.warn( tests/test_fastapi/test_binary_fields.py:25 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_binary_fields.py:25: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_binary_fields.py:32 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_binary_fields.py:32: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_choices_schema.py:69 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_choices_schema.py:69: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_choices_schema.py:76 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_choices_schema.py:76: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_excludes_with_get_pydantic.py:19 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_excludes_with_get_pydantic.py:19: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_excludes_with_get_pydantic.py:26 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_excludes_with_get_pydantic.py:26: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_excluding_fields.py:19 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_excluding_fields.py:19: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_excluding_fields.py:26 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_excluding_fields.py:26: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_extra_ignore_parameter.py:20 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_extra_ignore_parameter.py:20: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_extra_ignore_parameter.py:27 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_extra_ignore_parameter.py:27: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_fastapi_docs.py:21 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_fastapi_docs.py:21: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_fastapi_docs.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_fastapi_docs.py:28: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_inheritance_concrete_fastapi.py:27 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_inheritance_concrete_fastapi.py:27: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_inheritance_concrete_fastapi.py:34 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_inheritance_concrete_fastapi.py:34: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_inheritance_mixins_fastapi.py:16 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_inheritance_mixins_fastapi.py:16: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_inheritance_mixins_fastapi.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_inheritance_mixins_fastapi.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_json_field_fastapi.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_json_field_fastapi.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_json_field_fastapi.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_json_field_fastapi.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_m2m_forwardref.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_m2m_forwardref.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_m2m_forwardref.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_m2m_forwardref.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_more_reallife_fastapi.py:19 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_more_reallife_fastapi.py:19: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_more_reallife_fastapi.py:26 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_more_reallife_fastapi.py:26: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_nested_saving.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_nested_saving.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_nested_saving.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_nested_saving.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_recursion_error.py:25 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_recursion_error.py:25: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @router.on_event("startup") tests/test_fastapi/test_recursion_error.py:32 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_recursion_error.py:32: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @router.on_event("shutdown") tests/test_fastapi/test_relations_with_nested_defaults.py:21 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_relations_with_nested_defaults.py:21: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_relations_with_nested_defaults.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_relations_with_nested_defaults.py:28: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_skip_reverse_models.py:21 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_skip_reverse_models.py:21: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_skip_reverse_models.py:28 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_skip_reverse_models.py:28: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_fastapi/test_wekref_exclusion.py:23 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_wekref_exclusion.py:23: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") tests/test_fastapi/test_wekref_exclusion.py:30 /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_wekref_exclusion.py:30: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("shutdown") tests/test_deferred/test_forward_cross_refs.py::test_double_relations /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/ormar/queryset/queries/query.py:154: RemovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) expr = sqlalchemy.sql.select(self.columns) tests/test_deferred/test_forward_cross_refs.py::test_auto_through_model /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_deferred/test_forward_cross_refs.py:90: SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: cities, countries; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored. metadata.drop_all(engine) tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py: 4 warnings tests/test_fastapi/test_binary_fields.py: 1 warning tests/test_fastapi/test_choices_schema.py: 1 warning tests/test_fastapi/test_docs_with_multiple_relations_to_one.py: 1 warning tests/test_fastapi/test_excludes_with_get_pydantic.py: 1 warning tests/test_fastapi/test_excluding_fields.py: 1 warning tests/test_fastapi/test_extra_ignore_parameter.py: 1 warning tests/test_fastapi/test_fastapi_docs.py: 1 warning tests/test_fastapi/test_fastapi_usage.py: 1 warning tests/test_fastapi/test_inheritance_concrete_fastapi.py: 3 warnings tests/test_fastapi/test_inheritance_mixins_fastapi.py: 1 warning tests/test_fastapi/test_json_field_fastapi.py: 1 warning tests/test_fastapi/test_m2m_forwardref.py: 1 warning tests/test_fastapi/test_more_reallife_fastapi.py: 1 warning tests/test_fastapi/test_nested_saving.py: 1 warning tests/test_fastapi/test_recursion_error.py: 1 warning tests/test_fastapi/test_relations_with_nested_defaults.py: 1 warning tests/test_fastapi/test_skip_reverse_models.py: 1 warning tests/test_fastapi/test_wekref_exclusion.py: 1 warning /usr/lib/python3/dist-packages/httpx/_client.py:1426: DeprecationWarning: The 'app' shortcut is now deprecated. Use the explicit style 'transport=ASGITransport(app=...)' instead. warnings.warn(message, DeprecationWarning) tests/test_fastapi/test_excludes_with_get_pydantic.py::test_read_main /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_excludes_with_get_pydantic.py:38: SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: mutual_a, mutual_b; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored. metadata.drop_all(engine) tests/test_fastapi/test_m2m_forwardref.py::test_payload /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build/tests/test_fastapi/test_m2m_forwardref.py:85: SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: cities, countries; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored. metadata.drop_all(engine) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_excluding_fields_in_endpoints FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_adding_fields_in_endpoints FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_adding_fields_in_endpoints2 FAILED tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py::test_excluding_property_field_in_endpoints2 FAILED tests/test_fastapi/test_binary_fields.py::test_read_main - httpx.Conne... FAILED tests/test_fastapi/test_choices_schema.py::test_all_endpoints - httpx.... FAILED tests/test_fastapi/test_docs_with_multiple_relations_to_one.py::test_all_endpoints FAILED tests/test_fastapi/test_excludes_with_get_pydantic.py::test_read_main FAILED tests/test_fastapi/test_excluding_fields.py::test_all_endpoints - http... FAILED tests/test_fastapi/test_extra_ignore_parameter.py::test_extra_parameters_in_request FAILED tests/test_fastapi/test_fastapi_docs.py::test_all_endpoints - httpx.Co... FAILED tests/test_fastapi/test_fastapi_usage.py::test_read_main - httpx.Conne... FAILED tests/test_fastapi/test_inheritance_concrete_fastapi.py::test_read_main FAILED tests/test_fastapi/test_inheritance_concrete_fastapi.py::test_inheritance_with_relation FAILED tests/test_fastapi/test_inheritance_concrete_fastapi.py::test_inheritance_with_m2m_relation FAILED tests/test_fastapi/test_inheritance_mixins_fastapi.py::test_read_main FAILED tests/test_fastapi/test_json_field_fastapi.py::test_read_main - httpx.... FAILED tests/test_fastapi/test_m2m_forwardref.py::test_payload - httpx.Connec... FAILED tests/test_fastapi/test_more_reallife_fastapi.py::test_all_endpoints FAILED tests/test_fastapi/test_nested_saving.py::test_saving_related_in_fastapi FAILED tests/test_fastapi/test_recursion_error.py::test_quiz_creation - httpx... FAILED tests/test_fastapi/test_relations_with_nested_defaults.py::test_related_with_defaults FAILED tests/test_fastapi/test_skip_reverse_models.py::test_queries - httpx.C... FAILED tests/test_fastapi/test_wekref_exclusion.py::test_endpoints - httpx.Co... ===== 24 failed, 422 passed, 1 deselected, 99 warnings in 73.96s (0:01:13) ===== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/ormar-0.12.2/.pybuild/cpython3_3.11_ormar/build; python3.11 -m pytest --asyncio-mode=auto -k "not test_weakref_init" rm -fr -- /tmp/dh-xdg-rundir-i_TziiIO dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" returned exit code 13 make: *** [debian/rules:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/3188793 and its subdirectories Tue May 7 13:27:18 UTC 2024 W: No second build log, what happened?