<86>Jan 20 02:51:57 userdel[4108139]: delete user 'rooter' <86>Jan 20 02:51:57 userdel[4108139]: removed group 'rooter' owned by 'rooter' <86>Jan 20 02:51:57 userdel[4108139]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 20 02:51:57 groupadd[4108197]: group added to /etc/group: name=rooter, GID=1799 <86>Jan 20 02:51:57 groupadd[4108197]: group added to /etc/gshadow: name=rooter <86>Jan 20 02:51:57 groupadd[4108197]: new group: name=rooter, GID=1799 <86>Jan 20 02:51:57 useradd[4108239]: new user: name=rooter, UID=1799, GID=1799, home=/root, shell=/bin/bash, from=none <86>Jan 20 02:51:57 userdel[4108301]: delete user 'builder' <86>Jan 20 02:51:57 userdel[4108301]: removed group 'builder' owned by 'builder' <86>Jan 20 02:51:57 userdel[4108301]: removed shadow group 'builder' owned by 'builder' <86>Jan 20 02:51:57 groupadd[4108351]: group added to /etc/group: name=builder, GID=1800 <86>Jan 20 02:51:57 groupadd[4108351]: group added to /etc/gshadow: name=builder <86>Jan 20 02:51:57 groupadd[4108351]: new group: name=builder, GID=1800 <86>Jan 20 02:51:57 useradd[4108398]: new user: name=builder, UID=1800, GID=1800, home=/usr/src, shell=/bin/bash, from=none <13>Jan 20 02:52:01 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Jan 20 02:52:01 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed <13>Jan 20 02:52:01 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Jan 20 02:52:01 rpmi: openssl-config-3.2.0-alt1 sisyphus+366659.140.4.1 1736956949 installed <13>Jan 20 02:52:01 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Jan 20 02:52:01 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Jan 20 02:52:01 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Jan 20 02:52:01 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 20 02:52:01 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 20 02:52:01 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Jan 20 02:52:01 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Jan 20 02:52:01 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Jan 20 02:52:01 rpmi: libcrypto3-3.3.2-alt1 sisyphus+366659.40.4.1 1736956900 installed <13>Jan 20 02:52:01 rpmi: libssl3-3.3.2-alt1 sisyphus+366659.40.4.1 1736956900 installed <13>Jan 20 02:52:01 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 02:52:01 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 02:52:01 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Jan 20 02:52:02 rpmi: python3-module-pyproject-installer-0.5.5-alt2 sisyphus+366395.100.1.1 1735032014 installed <13>Jan 20 02:52:02 rpmi: rpm-macros-pyproject-0.0.9-alt1 sisyphus+362541.300.2.1 1731671840 installed <13>Jan 20 02:52:02 rpmi: tests-for-installed-python3-pkgs-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Jan 20 02:52:02 rpmi: rpm-build-python3-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Jan 20 02:52:02 rpmi: rpm-build-pyproject-0.0.9-alt1 sisyphus+362541.300.2.1 1731671840 installed <13>Jan 20 02:52:04 rpmi: python3-module-packaging-24.2-alt1 sisyphus+362183.100.1.1 1731315992 installed <13>Jan 20 02:52:04 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Jan 20 02:52:04 rpmi: python3-module-certifi-2024.12.14-alt1 sisyphus+369729.200.2.2 1737050219 installed <13>Jan 20 02:52:04 rpmi: python3-module-attrs-24.2.0-alt2 sisyphus+355603.200.1.1 1724160494 installed <13>Jan 20 02:52:04 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Jan 20 02:52:04 rpmi: python3-module-sniffio-1.3.1-alt1 sisyphus+341424.100.1.1 1708941879 installed <13>Jan 20 02:52:04 rpmi: python3-module-Pygments-2.19.1-alt1 sisyphus+368586.100.2.1 1737039695 installed <13>Jan 20 02:52:04 rpmi: python3-module-outcome-1.3.0-alt1 sisyphus+332382.100.1.1 1697882349 installed <13>Jan 20 02:52:04 rpmi: python3-module-termcolor-2.5.0-alt1 sisyphus+359167.100.1.1 1728304216 installed <13>Jan 20 02:52:04 rpmi: python3-module-tomli-2.2.1-alt1 sisyphus+363592.100.1.1 1732803942 installed <13>Jan 20 02:52:04 rpmi: python3-module-poetry-alt-namespace-0.0.1-alt1 sisyphus+306728.100.1.1 1663083686 installed <13>Jan 20 02:52:04 rpmi: python3-module-lark-1.2.2-alt1 sisyphus+358322.100.1.1 1727258177 installed <13>Jan 20 02:52:04 rpmi: python3-module-itsdangerous-2.2.0-alt1 sisyphus+345793.200.2.1 1714032239 installed <13>Jan 20 02:52:04 rpmi: python3-module-uc-micro-py-1.0.3-alt1 sisyphus+341790.100.1.1 1709309103 installed <13>Jan 20 02:52:04 rpmi: python3-module-linkify-it-py-2.0.3-alt1 sisyphus+343902.100.1.1 1711708185 installed <13>Jan 20 02:52:04 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Jan 20 02:52:04 rpmi: python3-module-markdown-it-3.0.0-alt2 sisyphus+365460.100.1.1 1734639341 installed <13>Jan 20 02:52:04 rpmi: python3-module-rich-13.9.4-alt1 sisyphus+361780.100.1.1 1730842428 installed <13>Jan 20 02:52:04 rpmi: python3-module-socksio-1.0.0-alt1 sisyphus+295017.1500.2.1 1644498004 installed <13>Jan 20 02:52:04 rpmi: python3-module-h11-0.14.0-alt1 sisyphus+312690.100.1.1 1672395335 installed <13>Jan 20 02:52:04 rpmi: python3-module-httpcore-1.0.5-alt1 sisyphus+347570.100.1.1 1715005713 installed <13>Jan 20 02:52:04 rpmi: python3-module-fastjsonschema-2.21.1-alt1 sisyphus+363956.100.1.1 1733217943 installed <13>Jan 20 02:52:04 rpmi: python3-module-pyasn1-0.6.0-alt1 sisyphus+343691.100.1.1 1711530038 installed <13>Jan 20 02:52:04 rpmi: python3-module-urllib3-2:2.3.0-alt1 sisyphus+366320.100.2.1 1735116352 installed <13>Jan 20 02:52:04 rpmi: python3-module-wcwidth-0.2.13-alt1 sisyphus+341792.100.2.1 1709543329 installed <13>Jan 20 02:52:04 rpmi: python3-module-prettytable-2.1.0-alt1 sisyphus+269172.200.1.1 1617824839 installed <13>Jan 20 02:52:04 rpmi: python3-module-click-8.1.8-alt1 sisyphus+366297.100.1.1 1734946237 installed <13>Jan 20 02:52:04 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733155 installed <13>Jan 20 02:52:04 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Jan 20 02:52:04 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jan 20 02:52:04 rpmi: python3-module-cffi-1.17.1-alt1 sisyphus+357396.100.1.1 1726156476 installed <13>Jan 20 02:52:05 rpmi: python3-module-cryptography-44.0.0-alt1 sisyphus+368451.100.1.1 1736436050 installed <13>Jan 20 02:52:05 rpmi: python3-module-openssl-24.3.0-alt1 sisyphus+368451.200.1.1 1736436083 installed <13>Jan 20 02:52:05 rpmi: python3-module-service_identity-24.2.0-alt1 sisyphus+362235.100.1.1 1731336596 installed <13>Jan 20 02:52:05 rpmi: python3-module-bson-4.10.1-alt1 sisyphus+358819.100.1.1 1727869387 installed <13>Jan 20 02:52:05 rpmi: python3-module-pymongo-4.10.1-alt1 sisyphus+358819.100.1.1 1727869387 installed <13>Jan 20 02:52:05 rpmi: python3-module-bottle-1:0.12.25-alt1 sisyphus+316623.100.1.1 1678651894 installed <13>Jan 20 02:52:05 rpmi: python3-module-argcomplete-3.5.3-alt1 sisyphus+367511.100.1.1 1735893315 installed <13>Jan 20 02:52:05 rpmi: python3-module-servicemanager-2.0.7-alt1 sisyphus+275998.100.1.1 1624811123 installed <13>Jan 20 02:52:05 rpmi: python3-module-execnet-2.1.1-alt1 sisyphus+344737.100.1.1 1712657795 installed <13>Jan 20 02:52:05 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jan 20 02:52:05 rpmi: python3-module-pytest-8.3.4-alt1 sisyphus+363889.100.1.1 1733152874 installed <13>Jan 20 02:52:05 rpmi: python3-module-typing_extensions-4.12.2-alt1 sisyphus+351501.100.1.2 1719296652 installed <13>Jan 20 02:52:05 rpmi: python3-module-anyio-4.8.0-alt1 sisyphus+369638.100.3.3 1737040213 installed <13>Jan 20 02:52:05 rpmi: python3-module-httpx-0.27.0-alt2 sisyphus+350273.700.4.1 1735399284 installed <13>Jan 20 02:52:05 rpmi: python3-module-starlette-0.45.2-alt1 sisyphus+369638.400.3.3 1737040315 installed <13>Jan 20 02:52:05 rpmi: python3-module-pytest-asyncio-0.25.2-alt1 sisyphus+369683.100.2.2 1737042170 installed <13>Jan 20 02:52:05 rpmi: python3-module-pytest-sugar-1.0.0-alt1 sisyphus+339657.100.2.1 1707131143 installed <13>Jan 20 02:52:05 rpmi: python3-module-pytest-xdist-3.6.1-alt1 sisyphus+347405.100.1.1 1714737453 installed <13>Jan 20 02:52:05 rpmi: python3-module-poetry-core-2.0.1-alt1 sisyphus+369488.100.1.1 1736855836 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-starlette-context-0.3.6-alt1.25.gf46610a.nosrc.rpm (w1.gzdio) Installing python3-module-starlette-context-0.3.6-alt1.25.gf46610a.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.49856 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-starlette-context-0.3.6 + echo 'Source #0 (python3-module-starlette-context-0.3.6.tar):' Source #0 (python3-module-starlette-context-0.3.6.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-starlette-context-0.3.6.tar + cd python3-module-starlette-context-0.3.6 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (python3-module-starlette-context-0.3.6-alt.patch):' Patch #0 (python3-module-starlette-context-0.3.6-alt.patch): + /usr/bin/patch -p1 patching file .github/FUNDING.yml patching file .github/workflows/publish_pypi.yml patching file .github/workflows/publish_test_pypi.yml patching file .github/workflows/test-suite.yml patching file README.rst patching file docs/source/changelog.rst patching file poetry.lock patching file pyproject.toml patching file starlette_context/plugins/__init__.py + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show pep518 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync pep518 --verify --verify-exclude 'wheel$' + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show pep517 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync pep517 --verify --verify-exclude 'wheel$' + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show metadata + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync metadata --verify INFO : Building metadata INFO : Building metadata with prepare_metadata_for_build_wheel INFO : Source tree: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6 INFO : Output dir: /usr/src/tmp/tmp962gldzh + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show check + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync check --verify + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.3415 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-starlette-context-0.3.6 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: poetry.core.masonry.api INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : poetry.core.masonry.builders.wheel : Building wheel DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/ctx.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/errors.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/header_keys.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/middleware/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/middleware/context_middleware.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/middleware/raw_middleware.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/api_key.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/base.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/correlation_id.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/date_header.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/forwarded_for.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/request_id.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/plugins/user_agent.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/starlette_context/py.typed INFO : poetry.core.masonry.builders.wheel : Built starlette_context-0.3.6-py3-none-any.whl INFO : pyproject_installer.build_cmd._build : Built wheel: starlette_context-0.3.6-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.24423 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-starlette-context-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-starlette-context-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-starlette-context-0.3.6 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-starlette-context-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: starlette_context-0.3.6-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-starlette-context-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: starlette_context-0.3.6.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: starlette_context-0.3.6.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: starlette_context-0.3.6.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-starlette-context-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-starlette-context-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-starlette-context-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-starlette-context-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-starlette-context-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-starlette-context-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-starlette-context-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-starlette-context-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/context_middleware.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/raw_middleware.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/api_key.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/base.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/correlation_id.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/date_header.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/forwarded_for.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/request_id.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/user_agent.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/ctx.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/errors.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/header_keys.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-starlette-context-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/context_middleware.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/raw_middleware.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/api_key.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/base.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/correlation_id.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/date_header.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/forwarded_for.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/request_id.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/user_agent.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/ctx.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/errors.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/header_keys.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-starlette-context-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/context_middleware.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/middleware/raw_middleware.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/api_key.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/base.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/correlation_id.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/date_header.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/forwarded_for.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/request_id.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/plugins/user_agent.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/__init__.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/ctx.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/errors.py compile /usr/src/tmp/python3-module-starlette-context-buildroot/usr/lib/python3/site-packages/starlette_context/header_keys.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/starlette_context/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/__pycache__/ctx.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/__pycache__/ctx.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/__pycache__/errors.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/__pycache__/errors.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/__pycache__/errors.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/__pycache__/errors.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/__pycache__/header_keys.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/__pycache__/header_keys.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/__pycache__/header_keys.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/__pycache__/header_keys.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/context_middleware.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/context_middleware.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/raw_middleware.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/middleware/__pycache__/raw_middleware.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/api_key.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/api_key.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/api_key.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/api_key.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/correlation_id.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/correlation_id.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/correlation_id.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/correlation_id.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/date_header.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/date_header.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/forwarded_for.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/forwarded_for.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/forwarded_for.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/forwarded_for.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/request_id.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/request_id.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/request_id.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/request_id.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/user_agent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/user_agent.cpython-312.pyc' './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/user_agent.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/starlette_context/plugins/__pycache__/user_agent.cpython-312.opt-1.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.24423 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-starlette-context-0.3.6 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -vra INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/dist/starlette_context-0.3.6-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/dist/starlette_context-0.3.6-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-vra'] /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/.run_venv/bin/python3 cachedir: .pytest_cache rootdir: /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6 configfile: pyproject.toml plugins: anyio-4.8.0, asyncio-0.25.2, sugar-1.0.0, xdist-3.6.1 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None collecting ... collected 57 items tests/test_context/test_context_existence.py::test_context_existence_in_request_response_cycle FAILED [ 1%] tests/test_context/test_context_existence.py::test_context_outside_of_request_response_cycle FAILED [ 3%] tests/test_context/test_context_no_middleware.py::test_no_middleware PASSED [ 5%] tests/test_context/test_context_object.py::test_context_update FAILED [ 7%] tests/test_context/test_context_on_unhandled_exception.py::test_context_persistence PASSED [ 8%] tests/test_context/test_context_persistance.py::test_context_persistence FAILED [ 10%] tests/test_context/test_context_with_middleware.py::test_set_context_in_middlewares FAILED [ 12%] tests/test_context/test_context_with_middleware.py::test_set_context_in_view FAILED [ 14%] tests/test_context/test_manager.py::test_context_created_within_manager PASSED [ 15%] tests/test_context/test_manager.py::test_can_add_within PASSED [ 17%] tests/test_context/test_manager.py::test_no_initial_data PASSED [ 19%] tests/test_context/test_mocked_context_object.py::test_ctx_init PASSED [ 21%] tests/test_context/test_mocked_context_object.py::test_ctx_eq PASSED [ 22%] tests/test_context/test_mocked_context_object.py::test_ctx_repr_within_cycle PASSED [ 24%] tests/test_context/test_mocked_context_object.py::test_ctx_repr_out_of_cycle PASSED [ 26%] tests/test_context/test_mocked_context_object.py::test_ctx_data_str_within_cycle PASSED [ 28%] tests/test_context/test_mocked_context_object.py::test_ctx_data_str_out_of_cycle PASSED [ 29%] tests/test_context/test_mocked_context_object.py::test_ctx_len PASSED [ 31%] tests/test_context/test_mocked_context_object.py::test_ctx_dict PASSED [ 33%] tests/test_context/test_mocked_context_object.py::test_ctx_update PASSED [ 35%] tests/test_context/test_mocked_context_object.py::test_ctx_del PASSED [ 36%] tests/test_context/test_mocked_context_object.py::test_ctx_iter PASSED [ 38%] tests/test_context/test_mocked_context_object.py::test_copy PASSED [ 40%] tests/test_context/test_mocked_context_object.py::test_dict_unpacking PASSED [ 42%] tests/test_middleware/test_context_middleware.py::test_set_context_method PASSED [ 43%] tests/test_middleware/test_pure_asgi_middleware.py::test_valid_request PASSED [ 45%] tests/test_plugins/test_api_key.py::test_valid_request_returns_proper_response FAILED [ 47%] tests/test_plugins/test_api_key.py::test_missing_forwarded_for_header FAILED [ 49%] tests/test_plugins/test_correlation_id.py::test_valid_request_returns_proper_response FAILED [ 50%] tests/test_plugins/test_correlation_id.py::test_invalid_correlation_id_returns_a_bad_request FAILED [ 52%] tests/test_plugins/test_correlation_id.py::test_missing_header_will_assign_one FAILED [ 54%] tests/test_plugins/test_correlation_id.py::test_force_new_uuid FAILED [ 56%] tests/test_plugins/test_correlation_id.py::test_unsupported_uuid PASSED [ 57%] tests/test_plugins/test_date.py::test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12 GMT] FAILED [ 59%] tests/test_plugins/test_date.py::test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12 ] FAILED [ 61%] tests/test_plugins/test_date.py::test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12] FAILED [ 63%] tests/test_plugins/test_date.py::test_rfc1123_parsing_method PASSED [ 64%] tests/test_plugins/test_date.py::test_invalid_date_header_raises_exception FAILED [ 66%] tests/test_plugins/test_date.py::test_missing_header_date FAILED [ 68%] tests/test_plugins/test_error_responses.py::test_invalid_request_id_returns_specified_response_raw_middleware PASSED [ 70%] tests/test_plugins/test_error_responses.py::test_invalid_request_id_returns_specified_response_context_middleware FAILED [ 71%] tests/test_plugins/test_error_responses.py::test_invalid_request_id_unspecified_response_raw_middleware PASSED [ 73%] tests/test_plugins/test_exceptions.py::test_context_exception_is_catchable PASSED [ 75%] tests/test_plugins/test_forwarded_for.py::test_valid_request_returns_proper_response FAILED [ 77%] tests/test_plugins/test_forwarded_for.py::test_missing_forwarded_for_header FAILED [ 78%] tests/test_plugins/test_plugin.py::test_getter_for_headers PASSED [ 80%] tests/test_plugins/test_plugin.py::test_plugin_exceptions_handled_generically PASSED [ 82%] tests/test_plugins/test_request_id.py::test_valid_request_returns_proper_response FAILED [ 84%] tests/test_plugins/test_request_id.py::test_invalid_request_id_returns_a_bad_request FAILED [ 85%] tests/test_plugins/test_request_id.py::test_missing_header_will_assign_one FAILED [ 87%] tests/test_plugins/test_request_id.py::test_force_new_uuid FAILED [ 89%] tests/test_plugins/test_user_agent.py::test_valid_request_returns_proper_response FAILED [ 91%] tests/test_plugins/test_user_agent.py::test_missing_forwarded_for_header FAILED [ 92%] tests/test_plugins/test_wrong_plugin.py::test_context_middleware_wropluginsng_plugin FAILED [ 94%] tests/test_plugins/test_wrong_plugin.py::test_raw_middleware_wrong_plugin PASSED [ 96%] tests/test_warnings.py::test_context_middleware_raises_warning PASSED [ 98%] tests/test_warnings.py::test_raw_context_middleware_does_not_raise_warning PASSED [100%] =================================== FAILURES =================================== _______________ test_context_existence_in_request_response_cycle _______________ def test_context_existence_in_request_response_cycle(): > resp = client.get("/") tests/test_context/test_context_existence.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() /usr/lib/python3/site-packages/starlette/applications.py:98: in build_middleware_stack app = cls(app, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = plugins = default_error_response = args = (), kwargs = {} warnings = def __init__( self, plugins: Optional[Sequence[Plugin]] = None, default_error_response: Response = Response(status_code=400), *args, **kwargs, ) -> None: import warnings warnings.warn( CONTEXT_MIDDLEWARE_WARNING_MSG, DeprecationWarning, stacklevel=2 ) > super().__init__(*args, **kwargs) E TypeError: BaseHTTPMiddleware.__init__() missing 1 required positional argument: 'app' starlette_context/middleware/context_middleware.py:46: TypeError ________________ test_context_outside_of_request_response_cycle ________________ def test_context_outside_of_request_response_cycle(): assert context.exists() is False > _ = client.get("/") tests/test_context/test_context_existence.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() /usr/lib/python3/site-packages/starlette/applications.py:98: in build_middleware_stack app = cls(app, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = plugins = default_error_response = args = (), kwargs = {} warnings = def __init__( self, plugins: Optional[Sequence[Plugin]] = None, default_error_response: Response = Response(status_code=400), *args, **kwargs, ) -> None: import warnings warnings.warn( CONTEXT_MIDDLEWARE_WARNING_MSG, DeprecationWarning, stacklevel=2 ) > super().__init__(*args, **kwargs) E TypeError: BaseHTTPMiddleware.__init__() missing 1 required positional argument: 'app' starlette_context/middleware/context_middleware.py:46: TypeError _____________________________ test_context_update ______________________________ def test_context_update(): > resp = client.get("/") tests/test_context/test_context_object.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() /usr/lib/python3/site-packages/starlette/applications.py:98: in build_middleware_stack app = cls(app, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = plugins = default_error_response = args = (), kwargs = {} warnings = def __init__( self, plugins: Optional[Sequence[Plugin]] = None, default_error_response: Response = Response(status_code=400), *args, **kwargs, ) -> None: import warnings warnings.warn( CONTEXT_MIDDLEWARE_WARNING_MSG, DeprecationWarning, stacklevel=2 ) > super().__init__(*args, **kwargs) E TypeError: BaseHTTPMiddleware.__init__() missing 1 required positional argument: 'app' starlette_context/middleware/context_middleware.py:46: TypeError ___________________________ test_context_persistence ___________________________ def test_context_persistence(): > first_resp = client.get("/") tests/test_context/test_context_persistance.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() /usr/lib/python3/site-packages/starlette/applications.py:98: in build_middleware_stack app = cls(app, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = plugins = default_error_response = args = (), kwargs = {} warnings = def __init__( self, plugins: Optional[Sequence[Plugin]] = None, default_error_response: Response = Response(status_code=400), *args, **kwargs, ) -> None: import warnings warnings.warn( CONTEXT_MIDDLEWARE_WARNING_MSG, DeprecationWarning, stacklevel=2 ) > super().__init__(*args, **kwargs) E TypeError: BaseHTTPMiddleware.__init__() missing 1 required positional argument: 'app' starlette_context/middleware/context_middleware.py:46: TypeError _______________________ test_set_context_in_middlewares ________________________ def test_set_context_in_middlewares(): > response = client.get("/context_only_from_middleware") tests/test_context/test_context_with_middleware.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() /usr/lib/python3/site-packages/starlette/applications.py:98: in build_middleware_stack app = cls(app, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = plugins = default_error_response = args = (), kwargs = {} warnings = def __init__( self, plugins: Optional[Sequence[Plugin]] = None, default_error_response: Response = Response(status_code=400), *args, **kwargs, ) -> None: import warnings warnings.warn( CONTEXT_MIDDLEWARE_WARNING_MSG, DeprecationWarning, stacklevel=2 ) > super().__init__(*args, **kwargs) E TypeError: BaseHTTPMiddleware.__init__() missing 1 required positional argument: 'app' starlette_context/middleware/context_middleware.py:46: TypeError ___________________________ test_set_context_in_view ___________________________ def test_set_context_in_view(): > response = client.get("/add_context_in_view") tests/test_context/test_context_with_middleware.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() /usr/lib/python3/site-packages/starlette/applications.py:98: in build_middleware_stack app = cls(app, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = plugins = default_error_response = args = (), kwargs = {} warnings = def __init__( self, plugins: Optional[Sequence[Plugin]] = None, default_error_response: Response = Response(status_code=400), *args, **kwargs, ) -> None: import warnings warnings.warn( CONTEXT_MIDDLEWARE_WARNING_MSG, DeprecationWarning, stacklevel=2 ) > super().__init__(*args, **kwargs) E TypeError: BaseHTTPMiddleware.__init__() missing 1 required positional argument: 'app' starlette_context/middleware/context_middleware.py:46: TypeError __________________ test_valid_request_returns_proper_response __________________ def test_valid_request_returns_proper_response(): > response = client.get("/", headers=headers) tests/test_plugins/test_api_key.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ______________________ test_missing_forwarded_for_header _______________________ def test_missing_forwarded_for_header(): > response = client.get("/", headers={}) tests/test_plugins/test_api_key.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError __________________ test_valid_request_returns_proper_response __________________ def test_valid_request_returns_proper_response(): > response = client.get("/", headers=headers) tests/test_plugins/test_correlation_id.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ______________ test_invalid_correlation_id_returns_a_bad_request _______________ def test_invalid_correlation_id_returns_a_bad_request(): > response = client.get( "/", headers={HeaderKeys.correlation_id: "invalid_uuid"} ) tests/test_plugins/test_correlation_id.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError _____________________ test_missing_header_will_assign_one ______________________ def test_missing_header_will_assign_one(): > response = client.get("/", headers={}) tests/test_plugins/test_correlation_id.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError _____________________________ test_force_new_uuid ______________________________ def test_force_new_uuid(): app_force_uuid = Starlette( middleware=[ Middleware( ContextMiddleware, plugins=(plugins.CorrelationIdPlugin(force_new_uuid=True),), ) ] ) force_uuid_client = TestClient(app_force_uuid) @app_force_uuid.route("/") async def index(request: Request) -> Response: return Response(status_code=status.HTTP_204_NO_CONTENT) > response = force_uuid_client.get("/", headers=headers) tests/test_plugins/test_correlation_id.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError __ test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12 GMT] ___ date_header = 'Wed, 01 Jan 2020 04:27:12 GMT' @pytest.mark.parametrize( "date_header", [ "Wed, 01 Jan 2020 04:27:12 GMT", "Wed, 01 Jan 2020 04:27:12 ", "Wed, 01 Jan 2020 04:27:12", ], ) def test_valid_request_returns_proper_response(date_header): > response = client.get("/", headers={HeaderKeys.date: date_header}) tests/test_plugins/test_date.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ____ test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12 ] ____ date_header = 'Wed, 01 Jan 2020 04:27:12 ' @pytest.mark.parametrize( "date_header", [ "Wed, 01 Jan 2020 04:27:12 GMT", "Wed, 01 Jan 2020 04:27:12 ", "Wed, 01 Jan 2020 04:27:12", ], ) def test_valid_request_returns_proper_response(date_header): > response = client.get("/", headers={HeaderKeys.date: date_header}) tests/test_plugins/test_date.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ____ test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12] _____ date_header = 'Wed, 01 Jan 2020 04:27:12' @pytest.mark.parametrize( "date_header", [ "Wed, 01 Jan 2020 04:27:12 GMT", "Wed, 01 Jan 2020 04:27:12 ", "Wed, 01 Jan 2020 04:27:12", ], ) def test_valid_request_returns_proper_response(date_header): > response = client.get("/", headers={HeaderKeys.date: date_header}) tests/test_plugins/test_date.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError __________________ test_invalid_date_header_raises_exception ___________________ def test_invalid_date_header_raises_exception(): > response1 = client.get("/", headers={HeaderKeys.date: "invalid_date"}) tests/test_plugins/test_date.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ___________________________ test_missing_header_date ___________________________ def test_missing_header_date(): > response = client.get("/", headers={}) tests/test_plugins/test_date.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ____ test_invalid_request_id_returns_specified_response_context_middleware _____ def test_invalid_request_id_returns_specified_response_context_middleware(): content = {"Error": "Invalid X-Request-ID"} response = JSONResponse( content=content, status_code=status.HTTP_422_UNPROCESSABLE_ENTITY ) client = gen_middleware_config(ContextMiddleware, response) > response = client.get("/", headers={HeaderKeys.request_id: "invalid_uuid"}) tests/test_plugins/test_error_responses.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError __________________ test_valid_request_returns_proper_response __________________ def test_valid_request_returns_proper_response(): > response = client.get("/", headers=headers) tests/test_plugins/test_forwarded_for.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ______________________ test_missing_forwarded_for_header _______________________ def test_missing_forwarded_for_header(): > response = client.get("/", headers={}) tests/test_plugins/test_forwarded_for.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError __________________ test_valid_request_returns_proper_response __________________ def test_valid_request_returns_proper_response(): > response = client.get("/", headers=headers) tests/test_plugins/test_request_id.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ________________ test_invalid_request_id_returns_a_bad_request _________________ def test_invalid_request_id_returns_a_bad_request(): > response = client.get("/", headers={HeaderKeys.request_id: "invalid_uuid"}) tests/test_plugins/test_request_id.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError _____________________ test_missing_header_will_assign_one ______________________ def test_missing_header_will_assign_one(): > response = client.get("/", headers={}) tests/test_plugins/test_request_id.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError _____________________________ test_force_new_uuid ______________________________ def test_force_new_uuid(): app_force_uuid = Starlette( middleware=[ Middleware( ContextMiddleware, plugins=(plugins.RequestIdPlugin(force_new_uuid=True),), ) ] ) force_uuid_client = TestClient(app_force_uuid) @app_force_uuid.route("/") async def index(request: Request) -> Response: return Response(status_code=status.HTTP_204_NO_CONTENT) > response = force_uuid_client.get("/", headers=headers) tests/test_plugins/test_request_id.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError __________________ test_valid_request_returns_proper_response __________________ def test_valid_request_returns_proper_response(): > response = client.get("/", headers=headers) tests/test_plugins/test_user_agent.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError ______________________ test_missing_forwarded_for_header _______________________ def test_missing_forwarded_for_header(): > response = client.get("/", headers={}) tests/test_plugins/test_user_agent.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:458: in get return super().get( /usr/lib/python3/site-packages/httpx/_client.py:1054: in get return self.request( /usr/lib/python3/site-packages/starlette/testclient.py:430: in request return super().request( /usr/lib/python3/site-packages/httpx/_client.py:827: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1015: in _send_single_request response = transport.handle_request(request) /usr/lib/python3/site-packages/starlette/testclient.py:339: in handle_request raise exc /usr/lib/python3/site-packages/starlette/testclient.py:336: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError _________________ test_context_middleware_wropluginsng_plugin __________________ test_client_factory = functools.partial(, backend='asyncio') def test_context_middleware_wropluginsng_plugin(test_client_factory): with pytest.raises(ConfigurationError): app = Starlette() app.add_middleware(ContextMiddleware, plugins=[NotAPlugin()]) > with test_client_factory(app): tests/test_plugins/test_wrong_plugin.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/starlette/testclient.py:673: in __enter__ portal.call(self.wait_startup) /usr/lib/python3/site-packages/anyio/from_thread.py:290: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/testclient.py:702: in wait_startup message = await receive() /usr/lib/python3/site-packages/starlette/testclient.py:699: in receive self.task.result() /usr/lib64/python3.12/concurrent/futures/_base.py:449: in result return self.__get_result() /usr/lib64/python3.12/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/site-packages/anyio/from_thread.py:221: in _call_func retval = await retval_or_awaitable /usr/lib/python3/site-packages/starlette/testclient.py:689: in lifespan await self.app(scope, self.stream_receive.receive, self.stream_send.send) /usr/lib/python3/site-packages/starlette/applications.py:111: in __call__ self.middleware_stack = self.build_middleware_stack() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_middleware_stack(self) -> ASGIApp: debug = self.debug error_handler = None exception_handlers: dict[typing.Any, typing.Callable[[Request, Exception], Response]] = {} for key, value in self.exception_handlers.items(): if key in (500, Exception): error_handler = value else: exception_handlers[key] = value middleware = ( [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)] + self.user_middleware + [Middleware(ExceptionMiddleware, handlers=exception_handlers, debug=debug)] ) app = self.router for cls, args, kwargs in reversed(middleware): > app = cls(app, *args, **kwargs) E TypeError: ContextMiddleware.__init__() got multiple values for argument 'plugins' /usr/lib/python3/site-packages/starlette/applications.py:98: TypeError =============================== warnings summary =============================== ../../../../lib/python3/site-packages/starlette/applications.py:192: 16 warnings tests/test_plugins/test_correlation_id.py: 1 warning tests/test_plugins/test_request_id.py: 1 warning /usr/lib/python3/site-packages/starlette/applications.py:192: DeprecationWarning: The `route` decorator is deprecated, and will be removed in version 1.0.0. Refer to https://www.starlette.io/routing/ for the recommended approach. warnings.warn( tests/test_context/test_context_existence.py: 2 warnings tests/test_context/test_context_no_middleware.py: 1 warning tests/test_context/test_context_object.py: 1 warning tests/test_context/test_context_on_unhandled_exception.py: 1 warning tests/test_context/test_context_persistance.py: 1 warning tests/test_context/test_context_with_middleware.py: 2 warnings tests/test_context/test_manager.py: 3 warnings tests/test_context/test_mocked_context_object.py: 13 warnings tests/test_middleware/test_context_middleware.py: 1 warning tests/test_middleware/test_pure_asgi_middleware.py: 1 warning tests/test_plugins/test_api_key.py: 2 warnings tests/test_plugins/test_correlation_id.py: 5 warnings tests/test_plugins/test_date.py: 6 warnings tests/test_plugins/test_error_responses.py: 3 warnings tests/test_plugins/test_exceptions.py: 1 warning tests/test_plugins/test_forwarded_for.py: 2 warnings tests/test_plugins/test_plugin.py: 2 warnings tests/test_plugins/test_request_id.py: 4 warnings tests/test_plugins/test_user_agent.py: 2 warnings tests/test_plugins/test_wrong_plugin.py: 2 warnings tests/test_warnings.py: 2 warnings /usr/src/RPM/BUILD/python3-module-starlette-context-0.3.6/tests/conftest.py:40: DeprecationWarning: ContextMiddleware middleware is deprecated and will be removed in version 0.4.0. Use RawContextMiddleware instead. For more information, see https://github.com/tomwojcik/starlette-context/issues/47 return ContextMiddleware(app=MagicMock()) tests/test_context/test_context_existence.py::test_context_existence_in_request_response_cycle tests/test_context/test_context_existence.py::test_context_outside_of_request_response_cycle tests/test_context/test_context_object.py::test_context_update tests/test_context/test_context_persistance.py::test_context_persistence tests/test_context/test_context_with_middleware.py::test_set_context_in_middlewares tests/test_context/test_context_with_middleware.py::test_set_context_in_view /usr/lib/python3/site-packages/starlette/applications.py:98: DeprecationWarning: ContextMiddleware middleware is deprecated and will be removed in version 0.4.0. Use RawContextMiddleware instead. For more information, see https://github.com/tomwojcik/starlette-context/issues/47 app = cls(app, *args, **kwargs) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_context/test_context_existence.py::test_context_existence_in_request_response_cycle FAILED tests/test_context/test_context_existence.py::test_context_outside_of_request_response_cycle FAILED tests/test_context/test_context_object.py::test_context_update - TypeE... FAILED tests/test_context/test_context_persistance.py::test_context_persistence FAILED tests/test_context/test_context_with_middleware.py::test_set_context_in_middlewares FAILED tests/test_context/test_context_with_middleware.py::test_set_context_in_view FAILED tests/test_plugins/test_api_key.py::test_valid_request_returns_proper_response FAILED tests/test_plugins/test_api_key.py::test_missing_forwarded_for_header FAILED tests/test_plugins/test_correlation_id.py::test_valid_request_returns_proper_response FAILED tests/test_plugins/test_correlation_id.py::test_invalid_correlation_id_returns_a_bad_request FAILED tests/test_plugins/test_correlation_id.py::test_missing_header_will_assign_one FAILED tests/test_plugins/test_correlation_id.py::test_force_new_uuid - TypeE... FAILED tests/test_plugins/test_date.py::test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12 GMT] FAILED tests/test_plugins/test_date.py::test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12 ] FAILED tests/test_plugins/test_date.py::test_valid_request_returns_proper_response[Wed, 01 Jan 2020 04:27:12] FAILED tests/test_plugins/test_date.py::test_invalid_date_header_raises_exception FAILED tests/test_plugins/test_date.py::test_missing_header_date - TypeError:... FAILED tests/test_plugins/test_error_responses.py::test_invalid_request_id_returns_specified_response_context_middleware FAILED tests/test_plugins/test_forwarded_for.py::test_valid_request_returns_proper_response FAILED tests/test_plugins/test_forwarded_for.py::test_missing_forwarded_for_header FAILED tests/test_plugins/test_request_id.py::test_valid_request_returns_proper_response FAILED tests/test_plugins/test_request_id.py::test_invalid_request_id_returns_a_bad_request FAILED tests/test_plugins/test_request_id.py::test_missing_header_will_assign_one FAILED tests/test_plugins/test_request_id.py::test_force_new_uuid - TypeError... FAILED tests/test_plugins/test_user_agent.py::test_valid_request_returns_proper_response FAILED tests/test_plugins/test_user_agent.py::test_missing_forwarded_for_header FAILED tests/test_plugins/test_wrong_plugin.py::test_context_middleware_wropluginsng_plugin ================== 27 failed, 30 passed, 81 warnings in 2.19s ================== INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-vra']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.24423 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.24423 (%check) Command exited with non-zero status 1 4.21user 0.93system 0:05.09elapsed 101%CPU (0avgtext+0avgdata 55696maxresident)k 0inputs+0outputs (0major+188141minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-starlette-context-0.3.6-alt1.25.gf46610a.src.rpm' failed. Command exited with non-zero status 1 4.24user 3.26system 0:18.14elapsed 41%CPU (0avgtext+0avgdata 140128maxresident)k 968inputs+0outputs (0major+286276minor)pagefaults 0swaps