0s autopkgtest [21:13:11]: starting date and time: 2026-01-22 21:13:11+0000 0s autopkgtest [21:13:11]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [21:13:11]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.njf9dm__/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python3-defaults --apt-upgrade python-djantic --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- lxd -r lxd-armhf-10.145.243.232 lxd-armhf-10.145.243.232:autopkgtest/ubuntu/resolute/armhf 23s autopkgtest [21:13:34]: testbed dpkg architecture: armhf 25s autopkgtest [21:13:36]: testbed apt version: 3.1.12 29s autopkgtest [21:13:40]: @@@@@@@@@@@@@@@@@@@@ test bed setup 31s autopkgtest [21:13:42]: testbed release detected to be: None 38s autopkgtest [21:13:49]: updating testbed package index (apt update) 40s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 41s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 41s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 41s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 41s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.6 kB] 41s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1011 kB] 42s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.2 kB] 42s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 42s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [95.3 kB] 42s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [658 kB] 43s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [4896 B] 43s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [310 kB] 43s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 60s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1398 kB] 61s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1371 kB] 62s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.2 MB] 71s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [175 kB] 73s Fetched 42.2 MB in 33s (1288 kB/s) 74s Reading package lists... 80s autopkgtest [21:14:31]: upgrading testbed (apt dist-upgrade and autopurge) 82s Reading package lists... 82s Building dependency tree... 82s Reading state information... 83s Calculating upgrade... 84s The following packages were automatically installed and are no longer required: 84s libpython3.13-minimal libpython3.13-stdlib python3.13 python3.13-minimal 84s Use 'apt autoremove' to remove them. 84s The following NEW packages will be installed: 84s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 84s The following packages will be upgraded: 84s libplymouth5 libpython3-stdlib plymouth plymouth-theme-ubuntu-text python3 84s python3-gdbm python3-minimal 85s 7 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 85s Need to get 6525 kB of archives. 85s After this operation, 22.5 MB of additional disk space will be used. 85s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-minimal armhf 3.14.2-1 [905 kB] 85s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14-minimal armhf 3.14.2-1 [2155 kB] 87s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-gdbm armhf 3.14.2-1 [11.1 kB] 87s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-minimal armhf 3.14.2-1 [28.2 kB] 87s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3 armhf 3.14.2-1 [22.9 kB] 87s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-stdlib armhf 3.14.2-1 [2270 kB] 88s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14 armhf 3.14.2-1 [816 kB] 89s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpython3-stdlib armhf 3.14.2-1 [10.9 kB] 89s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf libplymouth5 armhf 24.004.60+git20250831.4a3c171d-0ubuntu4 [147 kB] 89s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf plymouth-theme-ubuntu-text armhf 24.004.60+git20250831.4a3c171d-0ubuntu4 [10.0 kB] 89s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf plymouth armhf 24.004.60+git20250831.4a3c171d-0ubuntu4 [150 kB] 90s Fetched 6525 kB in 5s (1281 kB/s) 90s Selecting previously unselected package libpython3.14-minimal:armhf. 90s (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 ... 66485 files and directories currently installed.) 90s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_armhf.deb ... 90s Unpacking libpython3.14-minimal:armhf (3.14.2-1) ... 90s Selecting previously unselected package python3.14-minimal. 90s Preparing to unpack .../python3.14-minimal_3.14.2-1_armhf.deb ... 90s Unpacking python3.14-minimal (3.14.2-1) ... 91s Preparing to unpack .../python3-gdbm_3.14.2-1_armhf.deb ... 91s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-1) ... 91s Setting up libpython3.14-minimal:armhf (3.14.2-1) ... 91s Setting up python3.14-minimal (3.14.2-1) ... 93s (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 ... 66827 files and directories currently installed.) 93s Preparing to unpack .../python3-minimal_3.14.2-1_armhf.deb ... 93s Unpacking python3-minimal (3.14.2-1) over (3.13.7-1) ... 93s Setting up python3-minimal (3.14.2-1) ... 93s (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 ... 66827 files and directories currently installed.) 93s Preparing to unpack .../0-python3_3.14.2-1_armhf.deb ... 93s Unpacking python3 (3.14.2-1) over (3.13.7-1) ... 93s Selecting previously unselected package libpython3.14-stdlib:armhf. 93s Preparing to unpack .../1-libpython3.14-stdlib_3.14.2-1_armhf.deb ... 93s Unpacking libpython3.14-stdlib:armhf (3.14.2-1) ... 93s Selecting previously unselected package python3.14. 93s Preparing to unpack .../2-python3.14_3.14.2-1_armhf.deb ... 93s Unpacking python3.14 (3.14.2-1) ... 93s Preparing to unpack .../3-libpython3-stdlib_3.14.2-1_armhf.deb ... 93s Unpacking libpython3-stdlib:armhf (3.14.2-1) over (3.13.7-1) ... 94s Preparing to unpack .../4-libplymouth5_24.004.60+git20250831.4a3c171d-0ubuntu4_armhf.deb ... 94s Unpacking libplymouth5:armhf (24.004.60+git20250831.4a3c171d-0ubuntu4) over (24.004.60+git20250831.4a3c171d-0ubuntu3) ... 94s Preparing to unpack .../5-plymouth-theme-ubuntu-text_24.004.60+git20250831.4a3c171d-0ubuntu4_armhf.deb ... 94s Unpacking plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu4) over (24.004.60+git20250831.4a3c171d-0ubuntu3) ... 94s Preparing to unpack .../6-plymouth_24.004.60+git20250831.4a3c171d-0ubuntu4_armhf.deb ... 94s Unpacking plymouth (24.004.60+git20250831.4a3c171d-0ubuntu4) over (24.004.60+git20250831.4a3c171d-0ubuntu3) ... 94s Setting up libpython3.14-stdlib:armhf (3.14.2-1) ... 94s Setting up libplymouth5:armhf (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 94s Setting up python3.14 (3.14.2-1) ... 96s Setting up libpython3-stdlib:armhf (3.14.2-1) ... 96s Setting up python3-gdbm (3.14.2-1) ... 96s Setting up plymouth (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 96s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 96s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 96s Setting up python3 (3.14.2-1) ... 97s Processing triggers for libc-bin (2.42-2ubuntu4) ... 97s Processing triggers for systemd (259-1ubuntu2) ... 97s Processing triggers for man-db (2.13.1-1) ... 98s Processing triggers for initramfs-tools (0.150ubuntu7) ... 98s Setting up plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 98s Processing triggers for initramfs-tools (0.150ubuntu7) ... 100s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s Solving dependencies... 102s The following packages will be REMOVED: 102s libpython3.13-minimal* libpython3.13-stdlib* python3.13* python3.13-minimal* 103s 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. 103s After this operation, 21.3 MB disk space will be freed. 103s (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 ... 67257 files and directories currently installed.) 103s Removing python3.13 (3.13.11-1) ... 103s Removing libpython3.13-stdlib:armhf (3.13.11-1) ... 103s Removing python3.13-minimal (3.13.11-1) ... 105s Removing libpython3.13-minimal:armhf (3.13.11-1) ... 105s Processing triggers for man-db (2.13.1-1) ... 105s Processing triggers for systemd (259-1ubuntu2) ... 106s (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 ... 66518 files and directories currently installed.) 106s Purging configuration files for libpython3.13-minimal:armhf (3.13.11-1) ... 106s Purging configuration files for python3.13-minimal (3.13.11-1) ... 108s autopkgtest [21:14:59]: rebooting testbed after setup commands that affected boot 151s autopkgtest [21:15:42]: testbed running kernel: Linux 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:00:09 UTC 2 179s autopkgtest [21:16:10]: @@@@@@@@@@@@@@@@@@@@ apt-source python-djantic 194s Get:1 http://ftpmaster.internal/ubuntu resolute/universe python-djantic 0.7.0-6 (dsc) [2588 B] 194s Get:2 http://ftpmaster.internal/ubuntu resolute/universe python-djantic 0.7.0-6 (tar) [54.6 kB] 194s Get:3 http://ftpmaster.internal/ubuntu resolute/universe python-djantic 0.7.0-6 (diff) [4336 B] 194s gpgv: Signature made Thu Feb 20 07:32:29 2025 UTC 194s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 194s gpgv: issuer "tchet@debian.org" 194s gpgv: Can't check signature: No public key 194s dpkg-source: warning: cannot verify inline signature for ./python-djantic_0.7.0-6.dsc: no acceptable signature found 194s autopkgtest [21:16:25]: testing package python-djantic version 0.7.0-6 198s autopkgtest [21:16:29]: build not needed 200s autopkgtest [21:16:31]: test upstream: preparing testbed 202s Reading package lists... 203s Building dependency tree... 203s Reading state information... 203s Solving dependencies... 204s The following NEW packages will be installed: 204s libdeflate0 libfreetype6 libgomp1 libgraphite2-3 libharfbuzz0b 204s libimagequant0 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 liblerc4 204s libopenjp2-7 libpq5 libpython3.13-minimal libpython3.13-stdlib libraqm0 204s libsharpyuv0 libtiff6 libwebp7 libwebpdemux2 libwebpmux3 python-djantic-doc 204s python3-all python3-annotated-types python3-asgiref python3-django 204s python3-djantic python3-dnspython python3-email-validator 204s python3-factory-boy python3-fake-factory python3-iniconfig python3-pil 204s python3-pluggy python3-psycopg2 python3-pydantic python3-pydantic-core 204s python3-pytest python3-pytest-django python3-sqlparse 204s python3-typing-inspection python3.13 python3.13-minimal 204s 0 upgraded, 43 newly installed, 0 to remove and 0 not upgraded. 204s Need to get 16.8 MB of archives. 204s After this operation, 84.8 MB of additional disk space will be used. 204s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.13-minimal armhf 3.13.11-1 [875 kB] 205s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf python3.13-minimal armhf 3.13.11-1 [2055 kB] 206s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.13-stdlib armhf 3.13.11-1 [1960 kB] 207s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf python3.13 armhf 3.13.11-1 [758 kB] 208s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf libdeflate0 armhf 1.23-2 [38.7 kB] 208s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libfreetype6 armhf 2.14.1+dfsg-2 [345 kB] 208s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libgomp1 armhf 15.2.0-11ubuntu1 [129 kB] 208s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf libgraphite2-3 armhf 1.3.14-11ubuntu1 [65.2 kB] 208s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf libharfbuzz0b armhf 12.3.0-4 [507 kB] 208s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf libimagequant0 armhf 2.18.0-1build1 [31.1 kB] 208s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf libjpeg-turbo8 armhf 2.1.5-4ubuntu2 [127 kB] 208s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libjpeg8 armhf 8c-2ubuntu11 [2148 B] 208s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf liblcms2-2 armhf 2.17-1 [139 kB] 208s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf liblerc4 armhf 4.0.0+ds-5ubuntu2 [162 kB] 208s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libpq5 armhf 18.1-2 [137 kB] 208s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libraqm0 armhf 0.10.3-1 [12.7 kB] 208s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf libsharpyuv0 armhf 1.5.0-0.1build1 [16.3 kB] 208s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf libjbig0 armhf 2.1-6.1ubuntu3 [25.3 kB] 208s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf libwebp7 armhf 1.5.0-0.1build1 [189 kB] 208s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf libtiff6 armhf 4.7.0-3ubuntu3 [188 kB] 208s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libwebpdemux2 armhf 1.5.0-0.1build1 [11.7 kB] 208s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf libwebpmux3 armhf 1.5.0-0.1build1 [22.4 kB] 208s Get:23 http://ftpmaster.internal/ubuntu resolute/universe armhf python-djantic-doc all 0.7.0-6 [492 kB] 208s Get:24 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-all armhf 3.14.2-1 [888 B] 208s Get:25 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-annotated-types all 0.7.0-1 [19.4 kB] 208s Get:26 http://ftpmaster.internal/ubuntu resolute/main armhf python3-asgiref all 3.11.0-1 [25.2 kB] 208s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf python3-sqlparse all 0.5.4-1 [34.3 kB] 208s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf python3-django all 3:5.2.9-0ubuntu2 [3038 kB] 209s Get:29 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pydantic-core armhf 2.41.5-2 [2274 kB] 209s Get:30 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-typing-inspection all 0.4.2-1 [13.1 kB] 209s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf python3-dnspython all 2.7.0-1ubuntu2 [167 kB] 209s Get:32 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-email-validator all 2.2.0-1 [28.5 kB] 209s Get:33 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pydantic armhf 2.12.5-2 [312 kB] 209s Get:34 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-djantic all 0.7.0-6 [9454 B] 209s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libopenjp2-7 armhf 2.5.4-1 [175 kB] 209s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf python3-pil armhf 12.0.0-1ubuntu1 [462 kB] 209s Get:37 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-fake-factory all 39.0.0-1 [1455 kB] 209s Get:38 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-factory-boy all 3.3.3-1build1 [35.9 kB] 209s Get:39 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-iniconfig all 2.1.0-2 [6962 B] 209s Get:40 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pluggy all 1.6.0-2 [21.1 kB] 209s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf python3-psycopg2 armhf 2.9.11-1 [162 kB] 209s Get:42 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pytest all 9.0.2-2 [277 kB] 209s Get:43 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pytest-django all 4.11.1-2 [21.8 kB] 210s Fetched 16.8 MB in 5s (3292 kB/s) 210s Selecting previously unselected package libpython3.13-minimal:armhf. 210s (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 ... 66518 files and directories currently installed.) 210s Preparing to unpack .../00-libpython3.13-minimal_3.13.11-1_armhf.deb ... 210s Unpacking libpython3.13-minimal:armhf (3.13.11-1) ... 210s Selecting previously unselected package python3.13-minimal. 210s Preparing to unpack .../01-python3.13-minimal_3.13.11-1_armhf.deb ... 210s Unpacking python3.13-minimal (3.13.11-1) ... 210s Selecting previously unselected package libpython3.13-stdlib:armhf. 210s Preparing to unpack .../02-libpython3.13-stdlib_3.13.11-1_armhf.deb ... 210s Unpacking libpython3.13-stdlib:armhf (3.13.11-1) ... 211s Selecting previously unselected package python3.13. 211s Preparing to unpack .../03-python3.13_3.13.11-1_armhf.deb ... 211s Unpacking python3.13 (3.13.11-1) ... 211s Selecting previously unselected package libdeflate0:armhf. 211s Preparing to unpack .../04-libdeflate0_1.23-2_armhf.deb ... 211s Unpacking libdeflate0:armhf (1.23-2) ... 211s Selecting previously unselected package libfreetype6:armhf. 211s Preparing to unpack .../05-libfreetype6_2.14.1+dfsg-2_armhf.deb ... 211s Unpacking libfreetype6:armhf (2.14.1+dfsg-2) ... 211s Selecting previously unselected package libgomp1:armhf. 211s Preparing to unpack .../06-libgomp1_15.2.0-11ubuntu1_armhf.deb ... 211s Unpacking libgomp1:armhf (15.2.0-11ubuntu1) ... 211s Selecting previously unselected package libgraphite2-3:armhf. 211s Preparing to unpack .../07-libgraphite2-3_1.3.14-11ubuntu1_armhf.deb ... 211s Unpacking libgraphite2-3:armhf (1.3.14-11ubuntu1) ... 211s Selecting previously unselected package libharfbuzz0b:armhf. 211s Preparing to unpack .../08-libharfbuzz0b_12.3.0-4_armhf.deb ... 211s Unpacking libharfbuzz0b:armhf (12.3.0-4) ... 211s Selecting previously unselected package libimagequant0:armhf. 211s Preparing to unpack .../09-libimagequant0_2.18.0-1build1_armhf.deb ... 211s Unpacking libimagequant0:armhf (2.18.0-1build1) ... 211s Selecting previously unselected package libjpeg-turbo8:armhf. 211s Preparing to unpack .../10-libjpeg-turbo8_2.1.5-4ubuntu2_armhf.deb ... 211s Unpacking libjpeg-turbo8:armhf (2.1.5-4ubuntu2) ... 211s Selecting previously unselected package libjpeg8:armhf. 211s Preparing to unpack .../11-libjpeg8_8c-2ubuntu11_armhf.deb ... 211s Unpacking libjpeg8:armhf (8c-2ubuntu11) ... 211s Selecting previously unselected package liblcms2-2:armhf. 211s Preparing to unpack .../12-liblcms2-2_2.17-1_armhf.deb ... 211s Unpacking liblcms2-2:armhf (2.17-1) ... 211s Selecting previously unselected package liblerc4:armhf. 211s Preparing to unpack .../13-liblerc4_4.0.0+ds-5ubuntu2_armhf.deb ... 211s Unpacking liblerc4:armhf (4.0.0+ds-5ubuntu2) ... 211s Selecting previously unselected package libpq5:armhf. 211s Preparing to unpack .../14-libpq5_18.1-2_armhf.deb ... 211s Unpacking libpq5:armhf (18.1-2) ... 211s Selecting previously unselected package libraqm0:armhf. 211s Preparing to unpack .../15-libraqm0_0.10.3-1_armhf.deb ... 211s Unpacking libraqm0:armhf (0.10.3-1) ... 211s Selecting previously unselected package libsharpyuv0:armhf. 211s Preparing to unpack .../16-libsharpyuv0_1.5.0-0.1build1_armhf.deb ... 211s Unpacking libsharpyuv0:armhf (1.5.0-0.1build1) ... 211s Selecting previously unselected package libjbig0:armhf. 211s Preparing to unpack .../17-libjbig0_2.1-6.1ubuntu3_armhf.deb ... 211s Unpacking libjbig0:armhf (2.1-6.1ubuntu3) ... 211s Selecting previously unselected package libwebp7:armhf. 211s Preparing to unpack .../18-libwebp7_1.5.0-0.1build1_armhf.deb ... 211s Unpacking libwebp7:armhf (1.5.0-0.1build1) ... 211s Selecting previously unselected package libtiff6:armhf. 211s Preparing to unpack .../19-libtiff6_4.7.0-3ubuntu3_armhf.deb ... 211s Unpacking libtiff6:armhf (4.7.0-3ubuntu3) ... 212s Selecting previously unselected package libwebpdemux2:armhf. 212s Preparing to unpack .../20-libwebpdemux2_1.5.0-0.1build1_armhf.deb ... 212s Unpacking libwebpdemux2:armhf (1.5.0-0.1build1) ... 212s Selecting previously unselected package libwebpmux3:armhf. 212s Preparing to unpack .../21-libwebpmux3_1.5.0-0.1build1_armhf.deb ... 212s Unpacking libwebpmux3:armhf (1.5.0-0.1build1) ... 212s Selecting previously unselected package python-djantic-doc. 212s Preparing to unpack .../22-python-djantic-doc_0.7.0-6_all.deb ... 212s Unpacking python-djantic-doc (0.7.0-6) ... 212s Selecting previously unselected package python3-all. 212s Preparing to unpack .../23-python3-all_3.14.2-1_armhf.deb ... 212s Unpacking python3-all (3.14.2-1) ... 212s Selecting previously unselected package python3-annotated-types. 212s Preparing to unpack .../24-python3-annotated-types_0.7.0-1_all.deb ... 212s Unpacking python3-annotated-types (0.7.0-1) ... 212s Selecting previously unselected package python3-asgiref. 212s Preparing to unpack .../25-python3-asgiref_3.11.0-1_all.deb ... 212s Unpacking python3-asgiref (3.11.0-1) ... 212s Selecting previously unselected package python3-sqlparse. 212s Preparing to unpack .../26-python3-sqlparse_0.5.4-1_all.deb ... 212s Unpacking python3-sqlparse (0.5.4-1) ... 212s Selecting previously unselected package python3-django. 212s Preparing to unpack .../27-python3-django_3%3a5.2.9-0ubuntu2_all.deb ... 212s Unpacking python3-django (3:5.2.9-0ubuntu2) ... 213s Selecting previously unselected package python3-pydantic-core. 213s Preparing to unpack .../28-python3-pydantic-core_2.41.5-2_armhf.deb ... 213s Unpacking python3-pydantic-core (2.41.5-2) ... 213s Selecting previously unselected package python3-typing-inspection. 213s Preparing to unpack .../29-python3-typing-inspection_0.4.2-1_all.deb ... 213s Unpacking python3-typing-inspection (0.4.2-1) ... 213s Selecting previously unselected package python3-dnspython. 213s Preparing to unpack .../30-python3-dnspython_2.7.0-1ubuntu2_all.deb ... 213s Unpacking python3-dnspython (2.7.0-1ubuntu2) ... 213s Selecting previously unselected package python3-email-validator. 213s Preparing to unpack .../31-python3-email-validator_2.2.0-1_all.deb ... 213s Unpacking python3-email-validator (2.2.0-1) ... 213s Selecting previously unselected package python3-pydantic. 213s Preparing to unpack .../32-python3-pydantic_2.12.5-2_armhf.deb ... 213s Unpacking python3-pydantic (2.12.5-2) ... 213s Selecting previously unselected package python3-djantic. 213s Preparing to unpack .../33-python3-djantic_0.7.0-6_all.deb ... 213s Unpacking python3-djantic (0.7.0-6) ... 213s Selecting previously unselected package libopenjp2-7:armhf. 213s Preparing to unpack .../34-libopenjp2-7_2.5.4-1_armhf.deb ... 213s Unpacking libopenjp2-7:armhf (2.5.4-1) ... 213s Selecting previously unselected package python3-pil:armhf. 213s Preparing to unpack .../35-python3-pil_12.0.0-1ubuntu1_armhf.deb ... 213s Unpacking python3-pil:armhf (12.0.0-1ubuntu1) ... 213s Selecting previously unselected package python3-fake-factory. 213s Preparing to unpack .../36-python3-fake-factory_39.0.0-1_all.deb ... 213s Unpacking python3-fake-factory (39.0.0-1) ... 214s Selecting previously unselected package python3-factory-boy. 214s Preparing to unpack .../37-python3-factory-boy_3.3.3-1build1_all.deb ... 214s Unpacking python3-factory-boy (3.3.3-1build1) ... 214s Selecting previously unselected package python3-iniconfig. 214s Preparing to unpack .../38-python3-iniconfig_2.1.0-2_all.deb ... 214s Unpacking python3-iniconfig (2.1.0-2) ... 214s Selecting previously unselected package python3-pluggy. 214s Preparing to unpack .../39-python3-pluggy_1.6.0-2_all.deb ... 214s Unpacking python3-pluggy (1.6.0-2) ... 214s Selecting previously unselected package python3-psycopg2. 214s Preparing to unpack .../40-python3-psycopg2_2.9.11-1_armhf.deb ... 214s Unpacking python3-psycopg2 (2.9.11-1) ... 214s Selecting previously unselected package python3-pytest. 214s Preparing to unpack .../41-python3-pytest_9.0.2-2_all.deb ... 214s Unpacking python3-pytest (9.0.2-2) ... 214s Selecting previously unselected package python3-pytest-django. 214s Preparing to unpack .../42-python3-pytest-django_4.11.1-2_all.deb ... 214s Unpacking python3-pytest-django (4.11.1-2) ... 214s Setting up libgraphite2-3:armhf (1.3.14-11ubuntu1) ... 214s Setting up liblcms2-2:armhf (2.17-1) ... 214s Setting up python3-iniconfig (2.1.0-2) ... 215s Setting up libsharpyuv0:armhf (1.5.0-0.1build1) ... 215s Setting up python3-pydantic-core (2.41.5-2) ... 215s Setting up liblerc4:armhf (4.0.0+ds-5ubuntu2) ... 215s Setting up python3-typing-inspection (0.4.2-1) ... 215s Setting up python-djantic-doc (0.7.0-6) ... 215s Setting up libpq5:armhf (18.1-2) ... 215s Setting up libdeflate0:armhf (1.23-2) ... 215s Setting up libgomp1:armhf (15.2.0-11ubuntu1) ... 215s Setting up libjbig0:armhf (2.1-6.1ubuntu3) ... 215s Setting up python3-annotated-types (0.7.0-1) ... 216s Setting up libpython3.13-minimal:armhf (3.13.11-1) ... 216s Setting up python3-sqlparse (0.5.4-1) ... 216s Setting up libfreetype6:armhf (2.14.1+dfsg-2) ... 216s Setting up libimagequant0:armhf (2.18.0-1build1) ... 216s Setting up python3-psycopg2 (2.9.11-1) ... 216s Setting up libjpeg-turbo8:armhf (2.1.5-4ubuntu2) ... 216s Setting up python3-pluggy (1.6.0-2) ... 217s Setting up libwebp7:armhf (1.5.0-0.1build1) ... 217s Setting up python3-dnspython (2.7.0-1ubuntu2) ... 218s Setting up libopenjp2-7:armhf (2.5.4-1) ... 218s Setting up python3.13-minimal (3.13.11-1) ... 219s Setting up libharfbuzz0b:armhf (12.3.0-4) ... 219s Setting up python3-email-validator (2.2.0-1) ... 220s Setting up libwebpmux3:armhf (1.5.0-0.1build1) ... 220s Setting up libpython3.13-stdlib:armhf (3.13.11-1) ... 220s Setting up python3-asgiref (3.11.0-1) ... 220s Setting up libjpeg8:armhf (8c-2ubuntu11) ... 220s Setting up python3-django (3:5.2.9-0ubuntu2) ... 225s Setting up python3.13 (3.13.11-1) ... 226s Setting up python3-pytest (9.0.2-2) ... 227s Setting up libwebpdemux2:armhf (1.5.0-0.1build1) ... 227s Setting up python3-all (3.14.2-1) ... 227s Setting up python3-pytest-django (4.11.1-2) ... 228s Setting up python3-pydantic (2.12.5-2) ... 229s Setting up libraqm0:armhf (0.10.3-1) ... 229s Setting up libtiff6:armhf (4.7.0-3ubuntu3) ... 229s Setting up python3-djantic (0.7.0-6) ... 229s Setting up python3-pil:armhf (12.0.0-1ubuntu1) ... 231s Setting up python3-fake-factory (39.0.0-1) ... 235s Setting up python3-factory-boy (3.3.3-1build1) ... 236s Processing triggers for systemd (259-1ubuntu2) ... 236s Processing triggers for man-db (2.13.1-1) ... 236s Processing triggers for libc-bin (2.42-2ubuntu4) ... 246s autopkgtest [21:17:17]: test upstream: [----------------------- 250s ============================= test session starts ============================== 250s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 -- /usr/bin/python3.13 250s cachedir: .pytest_cache 250s django: version: 5.2.9, settings: tests.testapp.settings (from ini) 250s rootdir: /tmp/autopkgtest.Ci2FN4/autopkgtest_tmp 250s configfile: setup.cfg 250s plugins: typeguard-4.4.4, Faker-39.0.0, django-4.11.1 250s collecting ... collected 32 items / 4 deselected / 28 selected 250s 250s tests/test_fields.py::test_unhandled_field_type Creating test database for alias 'default'... 251s is currently unhandled, defaulting to str. 251s PASSED 251s tests/test_fields.py::test_custom_field PASSED 251s tests/test_fields.py::test_postgres_json_field PASSED 251s tests/test_fields.py::test_lazy_choice_field PASSED 251s tests/test_fields.py::test_enum_choices PASSED 251s tests/test_fields.py::test_enum_choices_generates_unique_enums PASSED 251s tests/test_fields.py::test_listing PASSED 251s tests/test_files.py::test_image_field_schema PASSED 251s tests/test_main.py::test_config_errors PASSED 251s tests/test_main.py::test_get_field_names PASSED 251s tests/test_queries.py::test_get_instance PASSED 251s tests/test_queries.py::test_get_instance_with_generic_foreign_key PASSED 251s tests/test_queries.py::test_get_queryset_with_reverse_one_to_one PASSED 251s tests/test_queries.py::test_get_queryset_with_foreign_key PASSED 251s tests/test_queries.py::test_get_queryset_with_reverse_foreign_key PASSED 251s tests/test_queries.py::test_get_queryset_with_generic_foreign_key PASSED 251s tests/test_relations.py::test_m2m PASSED 251s tests/test_relations.py::test_foreign_key PASSED 251s tests/test_relations.py::test_one_to_one PASSED 251s tests/test_relations.py::test_one_to_one_reverse PASSED 251s tests/test_relations.py::test_generic_relation PASSED 251s tests/test_relations.py::test_m2m_reverse PASSED 251s tests/test_schemas.py::test_description PASSED 251s tests/test_schemas.py::test_cache PASSED 251s tests/test_schemas.py::test_include_exclude PASSED 251s tests/test_schemas.py::test_json PASSED 251s tests/test_schemas.py::test_include_from_annotations PASSED 251s tests/test_schemas.py::test_by_alias_generator PASSEDDestroying test database for alias 'default'... 251s 251s 251s ============================= slowest 10 durations ============================= 251s 0.44s setup tests/test_fields.py::test_unhandled_field_type 251s 0.02s setup tests/test_schemas.py::test_cache 251s 0.02s call tests/test_relations.py::test_m2m_reverse 251s 0.01s call tests/test_queries.py::test_get_queryset_with_reverse_foreign_key 251s 0.01s call tests/test_relations.py::test_m2m 251s 0.01s call tests/test_queries.py::test_get_queryset_with_reverse_one_to_one 251s 0.01s call tests/test_queries.py::test_get_instance_with_generic_foreign_key 251s 0.01s call tests/test_relations.py::test_generic_relation 251s 0.01s call tests/test_schemas.py::test_include_exclude 251s 0.01s call tests/test_queries.py::test_get_queryset_with_generic_foreign_key 251s ======================= 28 passed, 4 deselected in 1.24s ======================= 253s ============================= test session starts ============================== 253s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 -- /usr/bin/python3.14 253s cachedir: .pytest_cache 253s django: version: 5.2.9, settings: tests.testapp.settings (from ini) 253s rootdir: /tmp/autopkgtest.Ci2FN4/autopkgtest_tmp 253s configfile: setup.cfg 253s plugins: typeguard-4.4.4, Faker-39.0.0, django-4.11.1 253s collecting ... collected 32 items / 4 deselected / 28 selected 253s 253s tests/test_fields.py::test_unhandled_field_type Creating test database for alias 'default'... 254s is currently unhandled, defaulting to str. 254s PASSED 254s tests/test_fields.py::test_custom_field PASSED 254s tests/test_fields.py::test_postgres_json_field PASSED 254s tests/test_fields.py::test_lazy_choice_field PASSED 254s tests/test_fields.py::test_enum_choices PASSED 254s tests/test_fields.py::test_enum_choices_generates_unique_enums PASSED 254s tests/test_fields.py::test_listing PASSED 254s tests/test_files.py::test_image_field_schema PASSED 254s tests/test_main.py::test_config_errors PASSED 254s tests/test_main.py::test_get_field_names PASSED 254s tests/test_queries.py::test_get_instance PASSED 254s tests/test_queries.py::test_get_instance_with_generic_foreign_key FAILED 254s tests/test_queries.py::test_get_queryset_with_reverse_one_to_one FAILED 254s tests/test_queries.py::test_get_queryset_with_foreign_key FAILED 254s tests/test_queries.py::test_get_queryset_with_reverse_foreign_key FAILED 254s tests/test_queries.py::test_get_queryset_with_generic_foreign_key PASSED 254s tests/test_relations.py::test_m2m FAILED 254s tests/test_relations.py::test_foreign_key FAILED 254s tests/test_relations.py::test_one_to_one FAILED 254s tests/test_relations.py::test_one_to_one_reverse FAILED 254s tests/test_relations.py::test_generic_relation FAILED 254s tests/test_relations.py::test_m2m_reverse FAILED 254s tests/test_schemas.py::test_description PASSED 254s tests/test_schemas.py::test_cache PASSED 254s tests/test_schemas.py::test_include_exclude PASSED 254s tests/test_schemas.py::test_json PASSED 254s tests/test_schemas.py::test_include_from_annotations FAILED 254s tests/test_schemas.py::test_by_alias_generator Destroying test database for alias 'default'... 255s PASSED 255s 255s =================================== FAILURES =================================== 255s __________________ test_get_instance_with_generic_foreign_key __________________ 255s 255s @pytest.mark.django_db 255s def test_get_instance_with_generic_foreign_key(): 255s 255s bookmark = Bookmark.objects.create(url="https://www.djangoproject.com/") 255s Tagged.objects.create(content_object=bookmark, slug="django") 255s 255s class TaggedSchema(ModelSchema): 255s class Config: 255s model = Tagged 255s 255s class BookmarkWithTaggedSchema(ModelSchema): 255s 255s tags: List[TaggedSchema] 255s 255s class Config: 255s model = Bookmark 255s 255s bookmark_with_tagged_schema = BookmarkWithTaggedSchema.from_django(bookmark) 255s 255s > assert bookmark_with_tagged_schema.dict() == { 255s "id": 1, 255s "tags": [ 255s { 255s 'content_object': 1, 255s "content_type": 20, 255s "id": 1, 255s "object_id": 1, 255s "slug": "django", 255s } 255s ], 255s "url": "https://www.djangoproject.com/", 255s } 255s E AssertionError: assert {'id': 1, 'ta...project.com/'} == {'id': 1, 'ta...project.com/'} 255s E 255s E Omitting 2 identical items, use -vv to show 255s E Differing items: 255s E {'tags': [{'id': 1}]} != {'tags': [{'content_object': 1, 'content_type': 20, 'id': 1, 'object_id': 1, ...}]} 255s E 255s E Full diff: 255s E {... 255s E 255s E ...Full output truncated (12 lines hidden), use '-vv' to show 255s 255s tests/test_queries.py:46: AssertionError 255s __________________ test_get_queryset_with_reverse_one_to_one ___________________ 255s 255s @pytest.mark.django_db 255s def test_get_queryset_with_reverse_one_to_one(): 255s """ 255s Test retrieving a Django queryset with reverse one-to-one relationships. 255s """ 255s user_data = [ 255s {"first_name": "Jordan", "email": "jordan@eremieff.com"}, 255s {"first_name": "Sara", "email": "sara@example.com"}, 255s ] 255s for kwargs in user_data: 255s user = User.objects.create(**kwargs) 255s Profile.objects.create(user=user, location="Australia") 255s 255s class UserSchema(ModelSchema): 255s class Config: 255s model = User 255s include = ["id", "email", "first_name", "profile"] 255s 255s users = User.objects.all() 255s user_schema_qs = UserSchema.from_django(users, many=True) 255s assert user_schema_qs == [ 255s { 255s "email": "jordan@eremieff.com", 255s "first_name": "Jordan", 255s "id": 1, 255s "profile": 1, 255s }, 255s {"email": "sara@example.com", "first_name": "Sara", "id": 2, "profile": 2}, 255s ] 255s 255s # Test when using a declared sub-model 255s class ProfileSchema(ModelSchema): 255s class Config: 255s model = Profile 255s include = ["id", "location"] 255s 255s class UserWithProfileSchema(ModelSchema): 255s 255s profile: ProfileSchema 255s 255s class Config: 255s model = User 255s exclude = ["created_at", "updated_at", "last_name"] 255s 255s users = User.objects.all() 255s 255s user_with_profile_schema_qs = UserWithProfileSchema.from_django(users, many=True) 255s > assert user_with_profile_schema_qs == [ 255s { 255s "email": "jordan@eremieff.com", 255s "first_name": "Jordan", 255s "id": 1, 255s "profile": {"id": 1, "location": "Australia"}, 255s }, 255s { 255s "email": "sara@example.com", 255s "first_name": "Sara", 255s "id": 2, 255s "profile": {"id": 2, "location": "Australia"}, 255s }, 255s ] 255s E AssertionError: assert [UserWithProf...example.com')] == [{'email': 'j...'Australia'}}] 255s E 255s E At index 0 diff: UserWithProfileSchema(profile=1, id=1, first_name='Jordan', email='jordan@eremieff.com') != {'email': 'jordan@eremieff.com', 'first_name': 'Jordan', 'id': 1, 'profile': {'id': 1, 'location': 'Australia'}} 255s E 255s E Full diff: 255s E [ 255s E + UserWithProfileSchema(profile=1, id=1, first_name='Jordan', email='jordan@eremieff.com'), 255s E + UserWithProfileSchema(profile=2, id=2, first_name='Sara', email='sara@example.com'),... 255s E 255s E ...Full output truncated (19 lines hidden), use '-vv' to show 255s 255s tests/test_queries.py:108: AssertionError 255s ______________________ test_get_queryset_with_foreign_key ______________________ 255s 255s @pytest.mark.django_db 255s def test_get_queryset_with_foreign_key(): 255s """ 255s Test retrieving a Django queryset with foreign-key relationships. 255s """ 255s 255s thread = Thread.objects.create(title="My thread topic") 255s thread2 = Thread.objects.create(title="Another topic") 255s for content in ("I agree.", "I disagree!", "lol"): 255s message_one = Message.objects.create(content=content, thread=thread) 255s Message.objects.create(content=content, thread=thread2) 255s 255s class MessageSchema(ModelSchema): 255s class Config: 255s model = Message 255s exclude = ["created_at"] 255s 255s schema = MessageSchema.from_django(message_one) 255s assert schema.dict() == {"id": 5, "content": "lol", "thread": 1} 255s 255s class ThreadSchema(ModelSchema): 255s class Config: 255s model = Thread 255s exclude = ["created_at"] 255s 255s class MessageWithThreadSchema(ModelSchema): 255s thread: ThreadSchema 255s 255s class Config: 255s model = Message 255s exclude = ["created_at"] 255s 255s schema = MessageWithThreadSchema.from_django(message_one) 255s > assert schema.dict() == { 255s "id": 5, 255s "content": "lol", 255s "thread": { 255s "messages": [{"id": 1}, {"id": 3}, {"id": 5}], 255s "id": 1, 255s "title": "My thread topic", 255s }, 255s } 255s E AssertionError: assert {'content': '..., 'thread': 1} == {'content': '...hread topic'}} 255s E 255s E Omitting 2 identical items, use -vv to show 255s E Differing items: 255s E {'thread': 1} != {'thread': {'id': 1, 'messages': [{'id': 1}, {'id': 3}, {'id': 5}], 'title': 'My thread topic'}} 255s E 255s E Full diff: 255s E {... 255s E 255s E ...Full output truncated (21 lines hidden), use '-vv' to show 255s 255s tests/test_queries.py:157: AssertionError 255s __________________ test_get_queryset_with_reverse_foreign_key __________________ 255s 255s @pytest.mark.django_db 255s def test_get_queryset_with_reverse_foreign_key(): 255s """ 255s Test retrieving a Django queryset with reverse foreign-key relationships. 255s """ 255s 255s thread = Thread.objects.create(title="My thread topic") 255s thread2 = Thread.objects.create(title="Another topic") 255s for content in ("I agree.", "I disagree!", "lol"): 255s Message.objects.create(content=content, thread=thread) 255s Message.objects.create(content=content, thread=thread2) 255s 255s threads = Thread.objects.all() 255s 255s class MessageSchema(ModelSchema): 255s class Config: 255s model = Message 255s include = ["id", "content"] 255s 255s class ThreadSchema(ModelSchema): 255s class Config: 255s model = Thread 255s 255s thread_schema_qs = ThreadSchema.from_django(threads, many=True) 255s thread_schemas = [t.dict() for t in thread_schema_qs] 255s assert thread_schemas == [ 255s { 255s "messages": [{"id": 2}, {"id": 4}, {"id": 6}], 255s "id": 2, 255s "title": "Another topic", 255s }, 255s { 255s "messages": [{"id": 1}, {"id": 3}, {"id": 5}], 255s "id": 1, 255s "title": "My thread topic", 255s }, 255s ] 255s 255s # Test when using a declared sub-model 255s class ThreadWithMessageListSchema(ModelSchema): 255s messages: List[MessageSchema] 255s 255s class Config: 255s model = Thread 255s exclude = ["created_at", "updated_at"] 255s 255s thread_with_message_list_schema_qs = ThreadWithMessageListSchema.from_django( 255s threads, many=True 255s ) 255s 255s > assert thread_with_message_list_schema_qs == [ 255s { 255s "messages": [ 255s {"id": 2, "content": "I agree."}, 255s {"id": 4, "content": "I disagree!"}, 255s {"id": 6, "content": "lol"}, 255s ], 255s "id": 2, 255s "title": "Another topic", 255s }, 255s { 255s "messages": [ 255s {"id": 1, "content": "I agree."}, 255s {"id": 3, "content": "I disagree!"}, 255s {"id": 5, "content": "lol"}, 255s ], 255s "id": 1, 255s "title": "My thread topic", 255s }, 255s ] 255s E AssertionError: assert [ThreadWithMe...hread topic')] == [{'id': 2, 'm...hread topic'}] 255s E 255s E At index 0 diff: ThreadWithMessageListSchema(messages=[{'id': 2}, {'id': 4}, {'id': 6}], id=2, title='Another topic') != {'messages': [{'id': 2, 'content': 'I agree.'}, {'id': 4, 'content': 'I disagree!'}, {'id': 6, 'content': 'lol'}], 'id': 2, 'title': 'Another topic'} 255s E 255s E Full diff: 255s E [ 255s E + ThreadWithMessageListSchema(messages=[{'id': 2}, {'id': 4}, {'id': 6}], id=2, title='Another topic'), 255s E + ThreadWithMessageListSchema(messages=[{'id': 1}, {'id': 3}, {'id': 5}], id=1, title='My thread topic'),... 255s E 255s E ...Full output truncated (37 lines hidden), use '-vv' to show 255s 255s tests/test_queries.py:218: AssertionError 255s ___________________________________ test_m2m ___________________________________ 255s 255s @pytest.mark.django_db 255s def test_m2m(): 255s """ 255s Test forward m2m relationships. 255s """ 255s 255s class ArticleSchema(ModelSchema): 255s class Config: 255s model = Article 255s 255s assert ArticleSchema.schema() == { 255s "title": "ArticleSchema", 255s "description": "A news article.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "headline": { 255s "title": "Headline", 255s "description": "headline", 255s "maxLength": 100, 255s "type": "string", 255s }, 255s "pub_date": { 255s "title": "Pub Date", 255s "description": "pub_date", 255s "type": "string", 255s "format": "date", 255s }, 255s "publications": { 255s "title": "Publications", 255s "description": "id", 255s "type": "array", 255s "items": { 255s "type": "object", 255s "additionalProperties": {"type": "integer"}, 255s }, 255s }, 255s }, 255s "required": ["headline", "pub_date", "publications"], 255s } 255s 255s class PublicationSchema(ModelSchema): 255s class Config: 255s model = Publication 255s 255s class ArticleWithPublicationListSchema(ModelSchema): 255s publications: List[PublicationSchema] 255s 255s class Config: 255s model = Article 255s 255s > assert ArticleWithPublicationListSchema.schema() == { 255s "title": "ArticleWithPublicationListSchema", 255s "description": "A news article.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "headline": { 255s "title": "Headline", 255s "description": "headline", 255s "maxLength": 100, 255s "type": "string", 255s }, 255s "pub_date": { 255s "title": "Pub Date", 255s "description": "pub_date", 255s "type": "string", 255s "format": "date", 255s }, 255s "publications": { 255s "title": "Publications", 255s "type": "array", 255s "items": {"$ref": "#/definitions/PublicationSchema"}, 255s }, 255s }, 255s "required": ["headline", "pub_date", "publications"], 255s "definitions": { 255s "PublicationSchema": { 255s "title": "PublicationSchema", 255s "description": "A news publication.", 255s "type": "object", 255s "properties": { 255s "article_set": { 255s "title": "Article Set", 255s "description": "id", 255s "type": "array", 255s "items": { 255s "type": "object", 255s "additionalProperties": {"type": "integer"}, 255s }, 255s }, 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "title": { 255s "title": "Title", 255s "description": "title", 255s "maxLength": 30, 255s "type": "string", 255s }, 255s }, 255s "required": ["title"], 255s } 255s }, 255s } 255s E AssertionError: assert {'description...tSchema', ...} == {'definitions...ations'], ...} 255s E 255s E Omitting 4 identical items, use -vv to show 255s E Differing items: 255s E {'properties': {'headline': {'description': 'headline', 'maxLength': 100, 'title': 'Headline', 'type': 'string'}, 'id'..., 'items': {'additionalProperties': {'type': 'integer'}, 'type': 'object'}, 'title': 'Publications', 'type': 'array'}}} != {'properties': {'headline': {'description': 'headline', 'maxLength': 100, 'title': 'Headline', 'type': 'string'}, 'id'...g'}, 'publications': {'items': {'$ref': '#/definitions/PublicationSchema'}, 'title': 'Publications', 'type': 'array'}}} 255s E Right contains 1 more item: 255s E {'defi... 255s E 255s E ...Full output truncated (94 lines hidden), use '-vv' to show 255s 255s tests/test_relations.py:74: AssertionError 255s _______________________________ test_foreign_key _______________________________ 255s 255s @pytest.mark.django_db 255s def test_foreign_key(): 255s """ 255s Test forward foreign-key relationships. 255s """ 255s 255s class ThreadSchema(ModelSchema): 255s class Config: 255s model = Thread 255s 255s class MessageSchema(ModelSchema): 255s class Config: 255s model = Message 255s 255s assert MessageSchema.schema() == { 255s "title": "MessageSchema", 255s "description": "A message posted in a thread.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "content": {"title": "Content", "description": "content", "type": "string"}, 255s "created_at": { 255s "title": "Created At", 255s "description": "created_at", 255s "type": "string", 255s "format": "date-time", 255s }, 255s "thread": {"title": "Thread", "description": "id", "type": "integer"}, 255s }, 255s "required": ["content", "created_at", "thread"], 255s } 255s 255s class MessageWithThreadSchema(ModelSchema): 255s 255s thread: ThreadSchema 255s 255s class Config: 255s model = Message 255s 255s > assert MessageWithThreadSchema.schema() == { 255s "title": "MessageWithThreadSchema", 255s "description": "A message posted in a thread.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "content": {"title": "Content", "description": "content", "type": "string"}, 255s "created_at": { 255s "title": "Created At", 255s "description": "created_at", 255s "type": "string", 255s "format": "date-time", 255s }, 255s "thread": {"$ref": "#/definitions/ThreadSchema"}, 255s }, 255s "required": ["content", "created_at", "thread"], 255s "definitions": { 255s "ThreadSchema": { 255s "title": "ThreadSchema", 255s "description": "A thread of messages.", 255s "type": "object", 255s "properties": { 255s "messages": { 255s "title": "Messages", 255s "description": "id", 255s "type": "array", 255s "items": { 255s "type": "object", 255s "additionalProperties": {"type": "integer"}, 255s }, 255s }, 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "title": { 255s "title": "Title", 255s "description": "title", 255s "maxLength": 30, 255s "type": "string", 255s }, 255s }, 255s "required": ["title"], 255s } 255s }, 255s } 255s E AssertionError: assert {'description...dSchema', ...} == {'definitions...thread'], ...} 255s E 255s E Omitting 4 identical items, use -vv to show 255s E Differing items: 255s E {'properties': {'content': {'description': 'content', 'title': 'Content', 'type': 'string'}, 'created_at': {'descripti...tion': 'id', 'title': 'Id', 'type': 'integer'}, 'thread': {'description': 'id', 'title': 'Thread', 'type': 'integer'}}} != {'properties': {'content': {'description': 'content', 'title': 'Content', 'type': 'string'}, 'created_at': {'descripti...ng'}, 'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'thread': {'$ref': '#/definitions/ThreadSchema'}}} 255s E Right contains 1 more item: 255s E {'defi... 255s E 255s E ...Full output truncated (86 lines hidden), use '-vv' to show 255s 255s tests/test_relations.py:181: AssertionError 255s _______________________________ test_one_to_one ________________________________ 255s 255s @pytest.mark.django_db 255s def test_one_to_one(): 255s """ 255s Test forward one-to-one relationships. 255s """ 255s 255s class UserSchema(ModelSchema): 255s class Config: 255s model = User 255s 255s class ProfileSchema(ModelSchema): 255s class Config: 255s model = Profile 255s 255s assert ProfileSchema.schema() == { 255s "title": "ProfileSchema", 255s "description": "A user's profile.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "user": {"title": "User", "description": "id", "type": "integer"}, 255s "website": { 255s "title": "Website", 255s "description": "website", 255s "default": "", 255s "maxLength": 200, 255s "type": "string", 255s }, 255s "location": { 255s "title": "Location", 255s "description": "location", 255s "default": "", 255s "maxLength": 100, 255s "type": "string", 255s }, 255s }, 255s "required": ["user"], 255s } 255s 255s class ProfileWithUserSchema(ModelSchema): 255s user: UserSchema 255s 255s class Config: 255s model = Profile 255s 255s > assert ProfileWithUserSchema.schema() == { 255s "title": "ProfileWithUserSchema", 255s "description": "A user's profile.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "user": {"$ref": "#/definitions/UserSchema"}, 255s "website": { 255s "title": "Website", 255s "description": "website", 255s "default": "", 255s "maxLength": 200, 255s "type": "string", 255s }, 255s "location": { 255s "title": "Location", 255s "description": "location", 255s "default": "", 255s "maxLength": 100, 255s "type": "string", 255s }, 255s }, 255s "required": ["user"], 255s "definitions": { 255s "UserSchema": { 255s "title": "UserSchema", 255s "description": "A user of the application.", 255s "type": "object", 255s "properties": { 255s "profile": { 255s "title": "Profile", 255s "description": "id", 255s "type": "integer", 255s }, 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "first_name": { 255s "title": "First Name", 255s "description": "first_name", 255s "maxLength": 50, 255s "type": "string", 255s }, 255s "last_name": { 255s "title": "Last Name", 255s "description": "last_name", 255s "maxLength": 50, 255s "type": "string", 255s }, 255s "email": { 255s "title": "Email", 255s "description": "email", 255s "maxLength": 254, 255s "type": "string", 255s }, 255s "created_at": { 255s "title": "Created At", 255s "description": "created_at", 255s "type": "string", 255s "format": "date-time", 255s }, 255s "updated_at": { 255s "title": "Updated At", 255s "description": "updated_at", 255s "type": "string", 255s "format": "date-time", 255s }, 255s }, 255s "required": ["first_name", "email", "created_at", "updated_at"], 255s } 255s }, 255s } 255s E AssertionError: assert {'description...rSchema', ...} == {'definitions...['user'], ...} 255s E 255s E Omitting 4 identical items, use -vv to show 255s E Differing items: 255s E {'properties': {'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'location': {'default': '', 'descriptio..., 'type': 'integer'}, 'website': {'default': '', 'description': 'website', 'maxLength': 200, 'title': 'Website', ...}}} != {'properties': {'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'location': {'default': '', 'descriptio...nitions/UserSchema'}, 'website': {'default': '', 'description': 'website', 'maxLength': 200, 'title': 'Website', ...}}} 255s E Right contains 1 more item: 255s E {'defi... 255s E 255s E ...Full output truncated (129 lines hidden), use '-vv' to show 255s 255s tests/test_relations.py:325: AssertionError 255s ___________________________ test_one_to_one_reverse ____________________________ 255s 255s @pytest.mark.django_db 255s def test_one_to_one_reverse(): 255s """ 255s Test reverse one-to-one relationships. 255s """ 255s 255s class ProfileSchema(ModelSchema): 255s class Config: 255s model = Profile 255s 255s class UserSchema(ModelSchema): 255s class Config: 255s model = User 255s 255s assert ProfileSchema.schema() == { 255s "title": "ProfileSchema", 255s "description": "A user's profile.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "user": {"title": "User", "description": "id", "type": "integer"}, 255s "website": { 255s "title": "Website", 255s "description": "website", 255s "default": "", 255s "maxLength": 200, 255s "type": "string", 255s }, 255s "location": { 255s "title": "Location", 255s "description": "location", 255s "default": "", 255s "maxLength": 100, 255s "type": "string", 255s }, 255s }, 255s "required": ["user"], 255s } 255s 255s class UserWithProfileSchema(ModelSchema): 255s profile: ProfileSchema 255s 255s class Config: 255s model = User 255s 255s > assert UserWithProfileSchema.schema() == { 255s "title": "UserWithProfileSchema", 255s "description": "A user of the application.", 255s "type": "object", 255s "properties": { 255s "profile": {"$ref": "#/definitions/ProfileSchema"}, 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "first_name": { 255s "title": "First Name", 255s "description": "first_name", 255s "maxLength": 50, 255s "type": "string", 255s }, 255s "last_name": { 255s "title": "Last Name", 255s "description": "last_name", 255s "maxLength": 50, 255s "type": "string", 255s }, 255s "email": { 255s "title": "Email", 255s "description": "email", 255s "maxLength": 254, 255s "type": "string", 255s }, 255s "created_at": { 255s "title": "Created At", 255s "description": "created_at", 255s "type": "string", 255s "format": "date-time", 255s }, 255s "updated_at": { 255s "title": "Updated At", 255s "description": "updated_at", 255s "type": "string", 255s "format": "date-time", 255s }, 255s }, 255s "required": ["profile", "first_name", "email", "created_at", "updated_at"], 255s "definitions": { 255s "ProfileSchema": { 255s "title": "ProfileSchema", 255s "description": "A user's profile.", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "user": {"title": "User", "description": "id", "type": "integer"}, 255s "website": { 255s "title": "Website", 255s "description": "website", 255s "default": "", 255s "maxLength": 200, 255s "type": "string", 255s }, 255s "location": { 255s "title": "Location", 255s "description": "location", 255s "default": "", 255s "maxLength": 100, 255s "type": "string", 255s }, 255s }, 255s "required": ["user"], 255s } 255s }, 255s } 255s E AssertionError: assert {'description...eSchema', ...} == {'definitions...ted_at'], ...} 255s E 255s E Omitting 3 identical items, use -vv to show 255s E Differing items: 255s E {'required': ['first_name', 'email', 'created_at', 'updated_at']} != {'required': ['profile', 'first_name', 'email', 'created_at', 'updated_at']} 255s E {'properties': {'created_at': {'description': 'created_at', 'format': 'date-time', 'title': 'Created At', 'type': 'str...th': 50, 'title': 'First Name', 'type': 'string'}, 'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, ...}} != {'properties': {'created_at': {'description': 'created_at', 'format': 'date-time', 'title': 'Created At', 'type': 'str...th': 50... 255s E 255s E ...Full output truncated (115 lines hidden), use '-vv' to show 255s 255s tests/test_relations.py:442: AssertionError 255s ____________________________ test_generic_relation _____________________________ 255s 255s @pytest.mark.django_db 255s def test_generic_relation(): 255s """ 255s Test generic foreign-key relationships. 255s """ 255s 255s class TaggedSchema(ModelSchema): 255s class Config: 255s model = Tagged 255s 255s assert TaggedSchema.schema() == { 255s "title": "TaggedSchema", 255s "description": "Tagged(id, slug, content_type, object_id)", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "slug": { 255s "title": "Slug", 255s "description": "slug", 255s "maxLength": 50, 255s "type": "string", 255s }, 255s "content_type": { 255s "title": "Content Type", 255s "description": "id", 255s "type": "integer", 255s }, 255s "object_id": { 255s "title": "Object Id", 255s "description": "object_id", 255s "type": "integer", 255s }, 255s "content_object": { 255s "title": "Content Object", 255s "description": "content_object", 255s "type": "integer", 255s }, 255s }, 255s "required": ["slug", "content_type", "object_id", "content_object"], 255s } 255s 255s > class BookmarkSchema(ModelSchema): 255s 255s tests/test_relations.py:551: 255s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 255s /usr/lib/python3/dist-packages/djantic/main.py:45: in __new__ 255s cls = super().__new__(mcs, name, bases, namespace) 255s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 255s /usr/lib/python3/dist-packages/pydantic/v1/main.py:221: in __new__ 255s inferred = ModelField.infer( 255s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:504: in infer 255s return cls( 255s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:434: in __init__ 255s self.prepare() 255s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:544: in prepare 255s self._set_default_and_type() 255s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 255s 255s self = ModelField(name='tags', type=UndefinedType, required=False, default=None) 255s 255s def _set_default_and_type(self) -> None: 255s """ 255s Set the default value, infer the type if needed and check if `None` value is valid. 255s """ 255s if self.default_factory is not None: 255s if self.type_ is Undefined: 255s raise errors_.ConfigError( 255s f'you need to set the type of field {self.name!r} when using `default_factory`' 255s ) 255s return 255s 255s default_value = self.get_default() 255s 255s if default_value is not None and self.type_ is Undefined: 255s self.type_ = default_value.__class__ 255s self.outer_type_ = self.type_ 255s self.annotation = self.type_ 255s 255s if self.type_ is Undefined: 255s > raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"') 255s E pydantic.v1.errors.ConfigError: unable to infer type for attribute "tags" 255s 255s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:576: ConfigError 255s _______________________________ test_m2m_reverse _______________________________ 255s 255s @pytest.mark.django_db 255s def test_m2m_reverse(): 255s class ExpertSchema(ModelSchema): 255s class Config: 255s model = Expert 255s 255s class CaseSchema(ModelSchema): 255s class Config: 255s model = Case 255s 255s assert ExpertSchema.schema() == { 255s "title": "ExpertSchema", 255s "description": "Expert(id, name)", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "name": { 255s "title": "Name", 255s "description": "name", 255s "maxLength": 128, 255s "type": "string", 255s }, 255s "cases": { 255s "title": "Cases", 255s "description": "id", 255s "type": "array", 255s "items": { 255s "type": "object", 255s "additionalProperties": {"type": "integer"}, 255s }, 255s }, 255s }, 255s "required": ["name", "cases"], 255s } 255s 255s assert CaseSchema.schema() == { 255s "title": "CaseSchema", 255s "description": "Case(id, name, details)", 255s "type": "object", 255s "properties": { 255s "related_experts": { 255s "title": "Related Experts", 255s "description": "id", 255s "type": "array", 255s "items": { 255s "type": "object", 255s "additionalProperties": {"type": "integer"}, 255s }, 255s }, 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "name": { 255s "title": "Name", 255s "description": "name", 255s "maxLength": 128, 255s "type": "string", 255s }, 255s "details": {"title": "Details", "description": "details", "type": "string"}, 255s }, 255s "required": ["name", "details"], 255s } 255s case = Case.objects.create(name="My Case", details="Some text data.") 255s expert = Expert.objects.create(name="My Expert") 255s case_schema = CaseSchema.from_django(case) 255s expert_schema = ExpertSchema.from_django(expert) 255s assert case_schema.dict() == { 255s "related_experts": [], 255s "id": 1, 255s "name": "My Case", 255s "details": "Some text data.", 255s } 255s assert expert_schema.dict() == {"id": 1, "name": "My Expert", "cases": []} 255s 255s expert.cases.add(case) 255s case_schema = CaseSchema.from_django(case) 255s expert_schema = ExpertSchema.from_django(expert) 255s assert case_schema.dict() == { 255s "related_experts": [{"id": 1}], 255s "id": 1, 255s "name": "My Case", 255s "details": "Some text data.", 255s } 255s assert expert_schema.dict() == {"id": 1, "name": "My Expert", "cases": [{"id": 1}]} 255s 255s class CustomExpertSchema(ModelSchema): 255s """Custom schema""" 255s 255s name: Optional[str] 255s 255s class Config: 255s model = Expert 255s 255s class CaseSchema(ModelSchema): 255s related_experts: List[CustomExpertSchema] 255s 255s class Config: 255s model = Case 255s 255s > assert CaseSchema.schema() == { 255s "title": "CaseSchema", 255s "description": "Case(id, name, details)", 255s "type": "object", 255s "properties": { 255s "related_experts": { 255s "title": "Related Experts", 255s "type": "array", 255s "items": {"$ref": "#/definitions/CustomExpertSchema"}, 255s }, 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "name": { 255s "title": "Name", 255s "description": "name", 255s "maxLength": 128, 255s "type": "string", 255s }, 255s "details": {"title": "Details", "description": "details", "type": "string"}, 255s }, 255s "required": ["related_experts", "name", "details"], 255s "definitions": { 255s "CustomExpertSchema": { 255s "title": "CustomExpertSchema", 255s "description": "Custom schema", 255s "type": "object", 255s "properties": { 255s "id": {"title": "Id", "description": "id", "type": "integer"}, 255s "name": {"title": "Name", "type": "string"}, 255s "cases": { 255s "title": "Cases", 255s "description": "id", 255s "type": "array", 255s "items": { 255s "type": "object", 255s "additionalProperties": {"type": "integer"}, 255s }, 255s }, 255s }, 255s "required": ["cases"], 255s } 255s }, 255s } 255s E AssertionError: assert {'description...eSchema', ...} == {'definitions...etails'], ...} 255s E 255s E Omitting 3 identical items, use -vv to show 255s E Differing items: 255s E {'required': ['name', 'details']} != {'required': ['related_experts', 'name', 'details']} 255s E {'properties': {'details': {'description': 'details', 'title': 'Details', 'type': 'string'}, 'id': {'description': 'id...items': {'additionalProperties': {'type': 'integer'}, 'type': 'object'}, 'title': 'Related Experts', 'type': 'array'}}} != {'properties': {'details': {'description': 'details', 'title': 'Details', 'type': 'string'}, 'id': {'description': 'id...elated_experts': {'items': {'$ref': '#/definitions/CustomExpert... 255s E 255s E ...Full output truncated (90 lines hidden), use '-vv' to show 255s 255s tests/test_relations.py:807: AssertionError 255s ________________________ test_include_from_annotations _________________________ 255s 255s @pytest.mark.django_db 255s def test_include_from_annotations(): 255s """ 255s Test include="__annotations__" config. 255s """ 255s 255s class ProfileSchema(ModelSchema): 255s website: str 255s 255s class Config: 255s model = Profile 255s include = "__annotations__" 255s 255s > assert ProfileSchema.schema() == { 255s "title": "ProfileSchema", 255s "description": "A user's profile.", 255s "type": "object", 255s "properties": { 255s "website": { 255s "title": "Website", 255s "type": "string" 255s } 255s }, 255s "required": [ 255s "website" 255s ] 255s } 255s E AssertionError: assert {'description...eSchema', ...} == {'description...eSchema', ...} 255s E 255s E Omitting 3 identical items, use -vv to show 255s E Differing items: 255s E {'required': ['user']} != {'required': ['website']} 255s E {'properties': {'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'location': {'default': '', 'descriptio..., 'type': 'integer'}, 'website': {'default': '', 'description': 'website', 'maxLength': 200, 'title': 'Website', ...}}} != {'properties': {'website': {'title': 'Website', 'type': 'string'}}} 255s E 255s E Full diff:... 255s E 255s E ...Full output truncated (35 lines hidden), use '-vv' to show 255s 255s tests/test_schemas.py:398: AssertionError 255s =============================== warnings summary =============================== 255s ../../../usr/lib/python3/dist-packages/djantic/main.py:12 255s /usr/lib/python3/dist-packages/djantic/main.py:12: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater. 255s from pydantic.v1 import BaseModel, ConfigError, create_model 255s 255s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 255s ============================= slowest 10 durations ============================= 255s 0.54s setup tests/test_fields.py::test_unhandled_field_type 255s 0.02s call tests/test_relations.py::test_m2m_reverse 255s 0.01s call tests/test_queries.py::test_get_queryset_with_reverse_one_to_one 255s 0.01s call tests/test_queries.py::test_get_queryset_with_reverse_foreign_key 255s 0.01s call tests/test_queries.py::test_get_instance_with_generic_foreign_key 255s 0.01s call tests/test_relations.py::test_one_to_one_reverse 255s 0.01s call tests/test_relations.py::test_m2m 255s 0.01s call tests/test_queries.py::test_get_queryset_with_foreign_key 255s 0.01s call tests/test_relations.py::test_one_to_one 255s 0.01s call tests/test_schemas.py::test_include_exclude 255s =========================== short test summary info ============================ 255s FAILED tests/test_queries.py::test_get_instance_with_generic_foreign_key - As... 255s FAILED tests/test_queries.py::test_get_queryset_with_reverse_one_to_one - Ass... 255s FAILED tests/test_queries.py::test_get_queryset_with_foreign_key - AssertionE... 255s FAILED tests/test_queries.py::test_get_queryset_with_reverse_foreign_key - As... 255s FAILED tests/test_relations.py::test_m2m - AssertionError: assert {'descripti... 255s FAILED tests/test_relations.py::test_foreign_key - AssertionError: assert {'d... 255s FAILED tests/test_relations.py::test_one_to_one - AssertionError: assert {'de... 255s FAILED tests/test_relations.py::test_one_to_one_reverse - AssertionError: ass... 255s FAILED tests/test_relations.py::test_generic_relation - pydantic.v1.errors.Co... 255s FAILED tests/test_relations.py::test_m2m_reverse - AssertionError: assert {'d... 255s FAILED tests/test_schemas.py::test_include_from_annotations - AssertionError:... 255s ============ 11 failed, 17 passed, 4 deselected, 1 warning in 1.50s ============ 256s autopkgtest [21:17:27]: test upstream: -----------------------] 260s autopkgtest [21:17:31]: test upstream: - - - - - - - - - - results - - - - - - - - - - 260s upstream FAIL non-zero exit status 1 264s autopkgtest [21:17:35]: @@@@@@@@@@@@@@@@@@@@ summary 264s upstream FAIL non-zero exit status 1