<86>Aug 30 09:44:03 userdel[1490168]: delete user 'rooter' <86>Aug 30 09:44:03 userdel[1490168]: removed group 'rooter' owned by 'rooter' <86>Aug 30 09:44:03 userdel[1490168]: removed shadow group 'rooter' owned by 'rooter' <86>Aug 30 09:44:03 groupadd[1490189]: group added to /etc/group: name=rooter, GID=1859 <86>Aug 30 09:44:03 groupadd[1490189]: group added to /etc/gshadow: name=rooter <86>Aug 30 09:44:03 groupadd[1490189]: new group: name=rooter, GID=1859 <86>Aug 30 09:44:03 useradd[1490210]: new user: name=rooter, UID=1859, GID=1859, home=/root, shell=/bin/bash, from=none <86>Aug 30 09:44:03 userdel[1490237]: delete user 'builder' <86>Aug 30 09:44:03 userdel[1490237]: removed group 'builder' owned by 'builder' <86>Aug 30 09:44:03 userdel[1490237]: removed shadow group 'builder' owned by 'builder' <86>Aug 30 09:44:03 groupadd[1490264]: group added to /etc/group: name=builder, GID=1860 <86>Aug 30 09:44:03 groupadd[1490264]: group added to /etc/gshadow: name=builder <86>Aug 30 09:44:03 groupadd[1490264]: new group: name=builder, GID=1860 <86>Aug 30 09:44:03 useradd[1490280]: new user: name=builder, UID=1860, GID=1860, home=/usr/src, shell=/bin/bash, from=none <13>Aug 30 09:44:06 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Aug 30 09:44:06 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468406 installed <13>Aug 30 09:44:06 rpmi: libexpat-2.7.1-alt1 sisyphus+379929.100.1.1 1743519386 installed <13>Aug 30 09:44:06 rpmi: openssl-config-3.2.0-alt1 sisyphus+366659.140.4.1 1736956949 installed <13>Aug 30 09:44:06 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Aug 30 09:44:06 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622586 installed <13>Aug 30 09:44:06 rpmi: libtasn1-4.20.0-alt2 sisyphus+375829.100.1.1 1740299335 installed <13>Aug 30 09:44:06 rpmi: rpm-macros-alternatives-0.5.3-alt1 sisyphus+371878.100.1.1 1737988822 installed <13>Aug 30 09:44:06 rpmi: alternatives-0.5.3-alt1 sisyphus+371878.100.1.1 1737988822 installed <13>Aug 30 09:44:06 rpmi: ca-certificates-2025.07.29-alt1 sisyphus+391139.200.2.1 1753801312 installed <13>Aug 30 09:44:06 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Aug 30 09:44:06 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622586 installed <13>Aug 30 09:44:07 rpmi: libcrypto3-3.3.3-alt1 sisyphus+374381.40.2.1 1739299702 installed <13>Aug 30 09:44:07 rpmi: libssl3-3.3.3-alt1 sisyphus+374381.40.2.1 1739299702 installed <13>Aug 30 09:44:07 rpmi: python3-3.12.11-alt1 sisyphus+389751.100.1.1 1752340611 installed <13>Aug 30 09:44:07 rpmi: python3-base-3.12.11-alt1 sisyphus+389751.100.1.1 1752340611 installed <13>Aug 30 09:44:07 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Aug 30 09:44:07 rpmi: python3-module-pyproject-installer-0.5.5-alt2 sisyphus+366395.100.1.1 1735032014 installed <13>Aug 30 09:44:07 rpmi: rpm-macros-pyproject-0.1.0-alt1 sisyphus+391654.140.2.1 1754483464 installed <13>Aug 30 09:44:07 rpmi: tests-for-installed-python3-pkgs-0.1.28-alt1 sisyphus+375953.100.2.1 1740855713 installed <13>Aug 30 09:44:07 rpmi: rpm-build-python3-0.1.28-alt1 sisyphus+375953.100.2.1 1740855713 installed <13>Aug 30 09:44:07 rpmi: rpm-build-pyproject-0.1.0-alt1 sisyphus+391654.140.2.1 1754483464 installed <13>Aug 30 09:44:10 rpmi: python3-module-packaging-25.0-alt1 sisyphus+382195.100.1.1 1745223121 installed <13>Aug 30 09:44:10 rpmi: python3-module-typing_extensions-4.14.1-alt1 sisyphus+389153.100.1.1 1751831689 installed <13>Aug 30 09:44:10 rpmi: python3-module-wcwidth-0.2.13-alt1 sisyphus+341792.100.2.1 1709543329 installed <13>Aug 30 09:44:10 rpmi: python3-module-pyperclip-1.9.0-alt1 sisyphus+353859.100.1.1 1722231798 installed <13>Aug 30 09:44:10 rpmi: python3-module-tomli-2.2.1-alt1 sisyphus+363592.100.1.1 1732803942 installed <13>Aug 30 09:44:10 rpmi: python3-module-poetry-alt-namespace-0.0.1-alt1 sisyphus+306728.100.1.1 1663083685 installed <13>Aug 30 09:44:10 rpmi: python3-module-pluggy-1.6.0-alt1 sisyphus+384666.100.2.1 1747813604 installed <13>Aug 30 09:44:10 rpmi: python3-module-lark-1.2.2-alt1 sisyphus+358322.100.1.1 1727258177 installed <13>Aug 30 09:44:10 rpmi: python3-module-iniconfig-2.1.0-alt1 sisyphus+378658.100.2.1 1742493599 installed <13>Aug 30 09:44:10 rpmi: python3-module-fastjsonschema-2.21.1-alt1 sisyphus+363956.100.1.1 1733217943 installed <13>Aug 30 09:44:10 rpmi: python3-module-decorator-5.2.1-alt1 sisyphus+376067.100.1.1 1740491622 installed <13>Aug 30 09:44:10 rpmi: python3-module-pycparser-2.22-alt1 sisyphus+378485.100.1.1 1742331206 installed <13>Aug 30 09:44:10 rpmi: python3-module-cffi-1.17.1-alt1 sisyphus+357396.100.1.1 1726156488 installed <13>Aug 30 09:44:10 rpmi: python3-module-cryptography-45.0.3-alt1 sisyphus+385433.100.1.1 1748335046 installed <13>Aug 30 09:44:10 rpmi: python3-module-openssl-25.1.0-alt1.1 sisyphus+385463.100.1.1 1748349146 installed <13>Aug 30 09:44:10 rpmi: python3-module-pycryptodome-3.23.0-alt1 sisyphus+384624.100.1.1 1747676980 installed <13>Aug 30 09:44:10 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684806164 installed <13>Aug 30 09:44:10 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819639 installed <13>Aug 30 09:44:10 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Aug 30 09:44:10 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729916 installed <86>Aug 30 09:44:10 groupadd[1515457]: group added to /etc/group: name=_keytab, GID=999 <86>Aug 30 09:44:10 groupadd[1515457]: group added to /etc/gshadow: name=_keytab <86>Aug 30 09:44:10 groupadd[1515457]: new group: name=_keytab, GID=999 <13>Aug 30 09:44:10 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735219 installed <13>Aug 30 09:44:10 rpmi: python3-module-gssapi-1.9.0-alt1 sisyphus+359349.100.1.1 1728472734 installed <13>Aug 30 09:44:11 rpmi: python3-module-asyncssh-2.21.0-alt1 sisyphus+383474.100.1.1 1746551078 installed <13>Aug 30 09:44:11 rpmi: python3-module-prompt_toolkit-3.0.52-alt1 sisyphus+393441.100.1.1 1756380259 installed <13>Aug 30 09:44:11 rpmi: python3-module-poetry-core-2.1.3-alt1 sisyphus+384073.100.2.1 1747393124 installed <13>Aug 30 09:44:11 rpmi: python3-module-pytest-8.3.5-alt3 sisyphus+385748.200.2.1 1748862411 installed <13>Aug 30 09:44:11 rpmi: python3-module-toml-0.10.2-alt4 sisyphus+373477.100.1.1 1738921937 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-questionary-2.1.0-alt1.nosrc.rpm (w1.gzdio) Installing python3-module-questionary-2.1.0-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.28939 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-questionary-2.1.0 + echo 'Source #0 (python3-module-questionary-2.1.0.tar):' Source #0 (python3-module-questionary-2.1.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-questionary-2.1.0.tar + cd python3-module-questionary-2.1.0 + /bin/chmod -c -Rf u+rwX,go-w . + /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-questionary-2.1.0 INFO : Output dir: /usr/src/tmp/tmppnmhwpwi + /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.11246 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-questionary-2.1.0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /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-questionary-2.1.0 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/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-questionary-2.1.0/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-questionary-2.1.0/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-questionary-2.1.0/questionary/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/constants.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/form.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompt.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/autocomplete.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/checkbox.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/common.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/confirm.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/password.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/path.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/press_any_key_to_continue.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/rawselect.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/select.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/prompts/text.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/py.typed DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/question.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/styles.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/utils.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/questionary/version.py INFO : poetry.core.masonry.builders.wheel : Built questionary-2.1.0-py3-none-any.whl INFO : pyproject_installer.build_cmd._build : Built wheel: questionary-2.1.0-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.95732 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-questionary-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-questionary-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-questionary-2.1.0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-questionary-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: questionary-2.1.0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-questionary-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-questionary-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: questionary-2.1.0.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: questionary-2.1.0.dist-info/NOTICE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: questionary-2.1.0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: questionary-2.1.0.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-questionary-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-questionary-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-questionary-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-questionary-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-questionary-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-questionary-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-questionary-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-questionary-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/__init__.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/autocomplete.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/checkbox.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/common.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/confirm.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/password.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/path.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/press_any_key_to_continue.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/rawselect.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/select.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/text.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/__init__.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/constants.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/form.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompt.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/question.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/styles.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/utils.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/version.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-questionary-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/__init__.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/autocomplete.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/checkbox.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/common.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/confirm.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/password.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/path.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/press_any_key_to_continue.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/rawselect.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/select.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/text.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/__init__.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/constants.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/form.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompt.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/question.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/styles.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/utils.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/version.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-questionary-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/__init__.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/autocomplete.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/checkbox.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/common.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/confirm.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/password.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/path.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/press_any_key_to_continue.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/rawselect.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/select.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompts/text.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/__init__.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/constants.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/form.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/prompt.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/question.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/styles.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/utils.py compile /usr/src/tmp/python3-module-questionary-buildroot/usr/lib/python3/site-packages/questionary/version.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/questionary/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/constants.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/constants.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/constants.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/constants.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/form.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/form.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/prompt.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/prompt.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/question.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/question.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/styles.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/styles.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/utils.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/utils.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/questionary/__pycache__/version.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/autocomplete.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/autocomplete.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/checkbox.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/checkbox.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/confirm.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/confirm.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/password.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/password.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/path.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/path.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/press_any_key_to_continue.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/press_any_key_to_continue.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/rawselect.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/rawselect.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/select.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/select.cpython-312.pyc' './usr/lib/python3/site-packages/questionary/prompts/__pycache__/text.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/questionary/prompts/__pycache__/text.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.95732 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-questionary-2.1.0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -v INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/dist/questionary-2.1.0-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/python3-module-questionary-2.1.0/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/python3-module-questionary-2.1.0/dist/questionary-2.1.0-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-v'] ============================= test session starts ============================== platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.6.0 -- /usr/src/RPM/BUILD/python3-module-questionary-2.1.0/.run_venv/bin/python3 cachedir: .pytest_cache rootdir: /usr/src/RPM/BUILD/python3-module-questionary-2.1.0 configfile: pyproject.toml collecting ... collected 160 items tests/prompts/test_autocomplete.py::test_autocomplete PASSED [ 0%] tests/prompts/test_autocomplete.py::test_no_choices_autocomplete PASSED [ 1%] tests/prompts/test_autocomplete.py::test_validate_autocomplete PASSED [ 1%] tests/prompts/test_autocomplete.py::test_use_tab_autocomplete PASSED [ 2%] tests/prompts/test_autocomplete.py::test_use_key_tab_autocomplete PASSED [ 3%] tests/prompts/test_autocomplete.py::test_ignore_case_autocomplete PASSED [ 3%] tests/prompts/test_autocomplete.py::test_match_middle_autocomplete PASSED [ 4%] tests/prompts/test_checkbox.py::test_submit_empty FAILED [ 5%] tests/prompts/test_checkbox.py::test_select_first_choice FAILED [ 5%] tests/prompts/test_checkbox.py::test_select_with_instruction FAILED [ 6%] tests/prompts/test_checkbox.py::test_select_first_choice_with_token_title FAILED [ 6%] tests/prompts/test_checkbox.py::test_select_disabled_choices_if_they_are_default FAILED [ 7%] tests/prompts/test_checkbox.py::test_select_and_deselct FAILED [ 8%] tests/prompts/test_checkbox.py::test_select_first_and_third_choice FAILED [ 8%] tests/prompts/test_checkbox.py::test_select_first_and_third_choice_using_emacs_keys FAILED [ 9%] tests/prompts/test_checkbox.py::test_cycle_to_first_choice FAILED [ 10%] tests/prompts/test_checkbox.py::test_cycle_backwards FAILED [ 10%] tests/prompts/test_checkbox.py::test_cycle_backwards_using_emacs_keys FAILED [ 11%] tests/prompts/test_checkbox.py::test_separator_down FAILED [ 11%] tests/prompts/test_checkbox.py::test_separator_up FAILED [ 12%] tests/prompts/test_checkbox.py::test_select_all FAILED [ 13%] tests/prompts/test_checkbox.py::test_select_all_deselect FAILED [ 13%] tests/prompts/test_checkbox.py::test_select_invert FAILED [ 14%] tests/prompts/test_checkbox.py::test_list_random_input FAILED [ 15%] tests/prompts/test_checkbox.py::test_list_ctr_c FAILED [ 15%] tests/prompts/test_checkbox.py::test_checkbox_initial_choice FAILED [ 16%] tests/prompts/test_checkbox.py::test_select_initial_choice_string FAILED [ 16%] tests/prompts/test_checkbox.py::test_select_initial_choice_duplicate FAILED [ 17%] tests/prompts/test_checkbox.py::test_checkbox_initial_choice_not_selectable PASSED [ 18%] tests/prompts/test_checkbox.py::test_checkbox_initial_choice_non_existant PASSED [ 18%] tests/prompts/test_checkbox.py::test_validate_default_message FAILED [ 19%] tests/prompts/test_checkbox.py::test_validate_with_message FAILED [ 20%] tests/prompts/test_checkbox.py::test_validate_not_callable PASSED [ 20%] tests/prompts/test_checkbox.py::test_proper_type_returned FAILED [ 21%] tests/prompts/test_checkbox.py::test_fail_on_no_method_to_move_selection PASSED [ 21%] tests/prompts/test_checkbox.py::test_select_filter_first_choice FAILED [ 22%] tests/prompts/test_checkbox.py::test_select_filter_multiple_after_search FAILED [ 23%] tests/prompts/test_common.py::test_to_many_choices_for_shortcut_assignment PASSED [ 23%] tests/prompts/test_common.py::test_validator_bool_function PASSED [ 24%] tests/prompts/test_common.py::test_validator_bool_function_fails PASSED [ 25%] tests/prompts/test_common.py::test_validator_instance PASSED [ 25%] tests/prompts/test_common.py::test_validator_instance_fails PASSED [ 26%] tests/prompts/test_common.py::test_blank_line_fix FAILED [ 26%] tests/prompts/test_common.py::test_prompt_highlight_coexist PASSED [ 27%] tests/prompts/test_common.py::test_prompt_show_answer_with_shortcuts PASSED [ 28%] tests/prompts/test_common.py::test_print PASSED [ 28%] tests/prompts/test_common.py::test_print_with_style FAILED [ 29%] tests/prompts/test_common.py::test_prompt_show_description PASSED [ 30%] tests/prompts/test_confirm.py::test_confirm_enter_default_yes PASSED [ 30%] tests/prompts/test_confirm.py::test_confirm_enter_default_no PASSED [ 31%] tests/prompts/test_confirm.py::test_confirm_yes PASSED [ 31%] tests/prompts/test_confirm.py::test_confirm_no PASSED [ 32%] tests/prompts/test_confirm.py::test_confirm_big_yes PASSED [ 33%] tests/prompts/test_confirm.py::test_confirm_big_no PASSED [ 33%] tests/prompts/test_confirm.py::test_confirm_random_input PASSED [ 34%] tests/prompts/test_confirm.py::test_confirm_ctr_c PASSED [ 35%] tests/prompts/test_confirm.py::test_confirm_not_autoenter_yes PASSED [ 35%] tests/prompts/test_confirm.py::test_confirm_not_autoenter_no PASSED [ 36%] tests/prompts/test_confirm.py::test_confirm_not_autoenter_backspace PASSED [ 36%] tests/prompts/test_confirm.py::test_confirm_instruction PASSED [ 37%] tests/prompts/test_password.py::test_password_entry PASSED [ 38%] tests/prompts/test_path.py::test_path PASSED [ 38%] tests/prompts/test_path.py::test_complete_path PASSED [ 39%] tests/prompts/test_path.py::test_complete_requires_explicit_enter PASSED [ 40%] tests/prompts/test_path.py::test_complete_path_directories_only PASSED [ 40%] tests/prompts/test_path.py::test_get_paths PASSED [ 41%] tests/prompts/test_path.py::test_get_paths_validation PASSED [ 41%] tests/prompts/test_path.py::test_complete_custom_completer PASSED [ 42%] tests/prompts/test_press_any_key_to_continue.py::test_press_any_key_to_continue_default_message PASSED [ 43%] tests/prompts/test_rawselect.py::test_legacy_name FAILED [ 43%] tests/prompts/test_rawselect.py::test_select_first_choice FAILED [ 44%] tests/prompts/test_rawselect.py::test_select_second_choice FAILED [ 45%] tests/prompts/test_rawselect.py::test_select_third_choice FAILED [ 45%] tests/prompts/test_rawselect.py::test_separator_shortcuts FAILED [ 46%] tests/prompts/test_rawselect.py::test_duplicated_shortcuts PASSED [ 46%] tests/prompts/test_rawselect.py::test_invalid_shortcuts PASSED [ 47%] tests/prompts/test_rawselect.py::test_to_many_choices PASSED [ 48%] tests/prompts/test_rawselect.py::test_select_random_input FAILED [ 48%] tests/prompts/test_rawselect.py::test_select_ctr_c FAILED [ 49%] tests/prompts/test_select.py::test_legacy_name FAILED [ 50%] tests/prompts/test_select.py::test_select_first_choice FAILED [ 50%] tests/prompts/test_select.py::test_select_first_choice_with_token_title FAILED [ 51%] tests/prompts/test_select.py::test_select_second_choice FAILED [ 51%] tests/prompts/test_select.py::test_select_third_choice FAILED [ 52%] tests/prompts/test_select.py::test_select_third_choice_using_shortcuts_and_arrows FAILED [ 53%] tests/prompts/test_select.py::test_select_second_choice_using_j_k FAILED [ 53%] tests/prompts/test_select.py::test_select_second_choice_using_emacs_keys FAILED [ 54%] tests/prompts/test_select.py::test_select_with_instruction FAILED [ 55%] tests/prompts/test_select.py::test_cycle_to_first_choice FAILED [ 55%] tests/prompts/test_select.py::test_cycle_backwards FAILED [ 56%] tests/prompts/test_select.py::test_cycle_backwards_using_k FAILED [ 56%] tests/prompts/test_select.py::test_separator_down FAILED [ 57%] tests/prompts/test_select.py::test_separator_up FAILED [ 58%] tests/prompts/test_select.py::test_select_random_input FAILED [ 58%] tests/prompts/test_select.py::test_select_ctr_c FAILED [ 59%] tests/prompts/test_select.py::test_select_empty_choices PASSED [ 60%] tests/prompts/test_select.py::test_disallow_shortcut_key FAILED [ 60%] tests/prompts/test_select.py::test_allow_shortcut_key_with_True FAILED [ 61%] tests/prompts/test_select.py::test_auto_shortcut_key_stable_in_loop FAILED [ 61%] tests/prompts/test_select.py::test_select_initial_choice_with_value FAILED [ 62%] tests/prompts/test_select.py::test_select_initial_choice FAILED [ 63%] tests/prompts/test_select.py::test_select_initial_choice_string FAILED [ 63%] tests/prompts/test_select.py::test_select_initial_choice_duplicate FAILED [ 64%] tests/prompts/test_select.py::test_select_initial_choice_not_selectable PASSED [ 65%] tests/prompts/test_select.py::test_select_initial_choice_non_existant PASSED [ 65%] tests/prompts/test_select.py::test_no_invalid_parameters_are_forwarded FAILED [ 66%] tests/prompts/test_select.py::test_select_arrow_keys FAILED [ 66%] tests/prompts/test_select.py::test_fail_for_unreachable_choice FAILED [ 67%] tests/prompts/test_select.py::test_fail_on_no_method_to_move_selection PASSED [ 68%] tests/prompts/test_select.py::test_jk_and_shortcut_conflict_fails PASSED [ 68%] tests/prompts/test_select.py::test_jk_and_shortcut_conflict_avoided_by_disabling_ij_keys FAILED [ 69%] tests/prompts/test_select.py::test_select_shortcuts FAILED [ 70%] tests/prompts/test_select.py::test_select_no_arrow_keys FAILED [ 70%] tests/prompts/test_select.py::test_select_no_shortcuts FAILED [ 71%] tests/prompts/test_select.py::test_select_default_has_arrow_keys FAILED [ 71%] tests/prompts/test_select.py::test_select_filter_with_jk_movement_exception PASSED [ 72%] tests/prompts/test_select.py::test_filter_prefix_one_letter FAILED [ 73%] tests/prompts/test_select.py::test_filter_prefix_multiple_letters FAILED [ 73%] tests/prompts/test_select.py::test_select_filter_handle_backspace FAILED [ 74%] tests/prompts/test_select.py::test_select_goes_back_to_top_after_filtering FAILED [ 75%] tests/prompts/test_text.py::test_legacy_name PASSED [ 75%] tests/prompts/test_text.py::test_text PASSED [ 76%] tests/prompts/test_text.py::test_text_validate PASSED [ 76%] tests/prompts/test_text.py::test_text_validate_with_class PASSED [ 77%] tests/test_examples.py::test_confirm_example PASSED [ 78%] tests/test_examples.py::test_text_example PASSED [ 78%] tests/test_examples.py::test_select_example FAILED [ 79%] tests/test_examples.py::test_rawselect_example FAILED [ 80%] tests/test_examples.py::test_checkbox_example FAILED [ 80%] tests/test_examples.py::test_password_example PASSED [ 81%] tests/test_examples.py::test_autocomplete_example PASSED [ 81%] tests/test_examples.py::test_advanced_workflow_example FAILED [ 82%] tests/test_form.py::test_form_creation FAILED [ 83%] tests/test_form.py::test_form_skips_questions FAILED [ 83%] tests/test_form.py::test_form_skips_questions_unsafe_ask FAILED [ 84%] tests/test_form.py::test_ask_should_catch_keyboard_exception FAILED [ 85%] tests/test_prompt.py::test_missing_message PASSED [ 85%] tests/test_prompt.py::test_missing_type PASSED [ 86%] tests/test_prompt.py::test_missing_name PASSED [ 86%] tests/test_prompt.py::test_invalid_question_type PASSED [ 87%] tests/test_prompt.py::test_missing_print_message PASSED [ 88%] tests/test_prompt.py::test_print_no_name PASSED [ 88%] tests/test_prompt.py::test_print_with_name PASSED [ 89%] tests/test_question.py::test_ask_should_catch_keyboard_exception PASSED [ 90%] tests/test_question.py::test_skipping_of_questions PASSED [ 90%] tests/test_question.py::test_skipping_of_questions_unsafe PASSED [ 91%] tests/test_question.py::test_skipping_of_skipping_of_questions PASSED [ 91%] tests/test_question.py::test_skipping_of_skipping_of_questions_unsafe PASSED [ 92%] tests/test_question.py::test_async_ask_question PASSED [ 93%] tests/test_question.py::test_multiline_text PASSED [ 93%] tests/test_utils.py::test_default_values_of PASSED [ 94%] tests/test_utils.py::test_default_values_of_no_args PASSED [ 95%] tests/test_utils.py::test_arguments_of PASSED [ 95%] tests/test_utils.py::test_arguments_of_no_args PASSED [ 96%] tests/test_utils.py::test_filter_kwargs PASSED [ 96%] tests/test_utils.py::test_filter_kwargs_empty PASSED [ 97%] tests/test_utils.py::test_required_arguments_of PASSED [ 98%] tests/test_utils.py::test_required_arguments_of_no_args PASSED [ 98%] tests/test_utils.py::test_missing_arguments PASSED [ 99%] tests/test_utils.py::test_missing_arguments_of_no_args PASSED [100%] =================================== FAILURES =================================== ______________________________ test_submit_empty _______________________________ def test_submit_empty(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_first_choice ___________________________ def test_select_first_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _________________________ test_select_with_instruction _________________________ def test_select_with_instruction(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"], "instruction": "sample instruction"} text = KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________ test_select_first_choice_with_token_title ___________________ def test_select_first_choice_with_token_title(): message = "Foo message" kwargs = { "choices": [ Choice(title=[("class:text", "foo")]), Choice(title=[("class:text", "bar")]), Choice(title=[("class:text", "bazz")]), ] } text = KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _______________ test_select_disabled_choices_if_they_are_default _______________ def test_select_disabled_choices_if_they_are_default(): message = "Foo message" kwargs = { "choices": [ Choice("foo", checked=True), Choice("bar", disabled="unavailable", checked=True), Choice("baz", disabled="unavailable"), ] } text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_and_deselct ____________________________ def test_select_and_deselct(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = ( KeyInputs.SPACE + KeyInputs.DOWN + KeyInputs.SPACE + KeyInputs.SPACE + KeyInputs.ENTER + "\r" ) > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________ test_select_first_and_third_choice ______________________ def test_select_first_and_third_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} # DOWN and `j` should do the same text = ( KeyInputs.SPACE + KeyInputs.DOWN + "j" + KeyInputs.SPACE + KeyInputs.ENTER + "\r" ) > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________ test_select_first_and_third_choice_using_emacs_keys ______________ def test_select_first_and_third_choice_using_emacs_keys(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = ( KeyInputs.SPACE + KeyInputs.CONTROLN + KeyInputs.CONTROLN + KeyInputs.SPACE + KeyInputs.ENTER + "\r" ) > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_cycle_to_first_choice __________________________ def test_cycle_to_first_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = ( KeyInputs.DOWN + KeyInputs.DOWN + KeyInputs.DOWN + KeyInputs.SPACE + KeyInputs.ENTER + "\r" ) > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________________ test_cycle_backwards _____________________________ def test_cycle_backwards(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.UP + KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________ test_cycle_backwards_using_emacs_keys _____________________ def test_cycle_backwards_using_emacs_keys(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.CONTROLP + KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________________ test_separator_down ______________________________ def test_separator_down(): message = "Foo message" kwargs = {"choices": ["foo", Separator(), "bazz"]} text = KeyInputs.DOWN + KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________________ test_separator_up _______________________________ def test_separator_up(): message = "Foo message" kwargs = {"choices": ["foo", Separator(), "bazz", Separator("--END--")]} # UP and `k` should do the same text = KeyInputs.UP + "k" + KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _______________________________ test_select_all ________________________________ def test_select_all(): message = "Foo message" kwargs = { "choices": [ {"name": "foo", "checked": True}, Separator(), {"name": "bar", "disabled": "nope"}, "bazz", Separator("--END--"), ] } text = KeyInputs.UP + "a" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_all_deselect ___________________________ def test_select_all_deselect(): message = "Foo message" kwargs = { "choices": [ {"name": "foo", "checked": True}, Separator(), {"name": "bar", "disabled": "nope"}, "bazz", Separator("--END--"), ] } text = KeyInputs.UP + "a" + "a" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________________ test_select_invert ______________________________ def test_select_invert(): message = "Foo message" kwargs = { "choices": [ {"name": "foo", "checked": True}, Separator(), {"name": "bar", "disabled": "nope"}, "bazz", Separator("--END--"), ] } text = KeyInputs.UP + "i" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:216: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________________ test_list_random_input ____________________________ def test_list_random_input(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = "sdf" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _______________________________ test_list_ctr_c ________________________________ def test_list_ctr_c(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = KeyInputs.CONTROLC with pytest.raises(KeyboardInterrupt): > feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _________________________ test_checkbox_initial_choice _________________________ def test_checkbox_initial_choice(): message = "Foo message" choice = Choice("bazz") kwargs = {"choices": ["foo", choice], "initial_choice": choice} text = KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:244: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________ test_select_initial_choice_string _______________________ def test_select_initial_choice_string(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"], "initial_choice": "bazz"} text = KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________ test_select_initial_choice_duplicate _____________________ def test_select_initial_choice_duplicate(): message = "Foo message" choice = Choice("foo") kwargs = {"choices": ["foo", choice, "bazz"], "initial_choice": choice} text = KeyInputs.DOWN + KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:263: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ________________________ test_validate_default_message _________________________ def test_validate_default_message(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"], "validate": lambda a: len(a) != 0} text = KeyInputs.ENTER + "i" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_validate_with_message __________________________ def test_validate_with_message(): message = "Foo message" kwargs = { "choices": ["foo", "bar", "bazz"], "validate": lambda a: True if len(a) > 0 else "Error Message", } text = KeyInputs.ENTER + "i" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:303: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_proper_type_returned ___________________________ def test_proper_type_returned(): message = "Foo message" kwargs = { "choices": [ Choice("one", value=1), Choice("two", value="foo"), Choice("three", value=[3, "bar"]), ] } text = ( KeyInputs.SPACE + KeyInputs.DOWN + KeyInputs.SPACE + KeyInputs.DOWN + KeyInputs.SPACE + KeyInputs.DOWN + KeyInputs.ENTER + "\r" ) > result, cli = feed_cli_with_input("checkbox", message, text, **kwargs) tests/prompts/test_checkbox.py:336: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _______________________ test_select_filter_first_choice ________________________ def test_select_filter_first_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.SPACE + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input( "checkbox", message, text, use_search_filter=True, use_jk_keys=False, **kwargs, ) tests/prompts/test_checkbox.py:360: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________ test_select_filter_multiple_after_search ___________________ def test_select_filter_multiple_after_search(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz", "buzz"]} text = ( KeyInputs.SPACE + "bu" + KeyInputs.SPACE + KeyInputs.BACK + KeyInputs.BACK + "\r" ) > result, cli = feed_cli_with_input( "checkbox", message, text, use_search_filter=True, use_jk_keys=False, **kwargs, ) tests/prompts/test_checkbox.py:383: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________________ test_blank_line_fix ______________________________ def test_blank_line_fix(): def get_prompt_tokens(): return [("class:question", "What is your favourite letter?")] ic = InquirerControl(["a", "b", "c"]) async def run(inp): inp.send_text("") layout = common.create_inquirer_layout( ic, get_prompt_tokens, input=inp, output=DummyOutput() ) # usually this would be 2000000000000000000000000000000 # but `common._fix_unecessary_blank_lines` makes sure # the main window is not as greedy (avoiding blank lines) assert ( layout.container.preferred_height(100, 200).max == 1000000000000000000000000000001 ) if prompt_toolkit_version < (3, 0, 29): inp = create_pipe_input() try: return asyncio.run(run(inp)) finally: inp.close() else: with create_pipe_input() as inp: > asyncio.run(run(inp)) tests/prompts/test_common.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/asyncio/runners.py:195: in run return runner.run(main) /usr/lib/python3.12/asyncio/runners.py:118: in run return self._loop.run_until_complete(task) /usr/lib/python3.12/asyncio/base_events.py:691: in run_until_complete return future.result() tests/prompts/test_common.py:78: in run layout = common.create_inquirer_layout( questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________________ test_print_with_style _____________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xf64f0c90> def test_print_with_style(monkeypatch): mock = Mock(return_value=None) monkeypatch.setattr(DummyOutput, "write", mock.write) monkeypatch.setattr(DummyOutput, "set_attributes", mock.set_attributes) print_formatted_text( "Hello World", style="bold italic fg:darkred", output=DummyOutput() ) assert len(mock.method_calls) == 4 assert mock.method_calls[0][0] == "set_attributes" if prompt_toolkit_version < (3, 0, 20): assert mock.method_calls[0][1][0] == Attrs( color="8b0000", bgcolor="", bold=True, underline=False, italic=True, blink=False, reverse=False, hidden=False, ) else: > assert mock.method_calls[0][1][0] == Attrs( color="8b0000", bgcolor="", bold=True, underline=False, italic=True, blink=False, reverse=False, hidden=False, strike=False, ) E TypeError: Attrs.__new__() missing 1 required positional argument: 'dim' tests/prompts/test_common.py:220: TypeError _______________________________ test_legacy_name _______________________________ def test_legacy_name(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = "1" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("rawlist", message, text, **kwargs) tests/prompts/test_rawselect.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_first_choice ___________________________ def test_select_first_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = "1" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("rawselect", message, text, **kwargs) tests/prompts/test_rawselect.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_select_second_choice ___________________________ def test_select_second_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = "2" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("rawselect", message, text, **kwargs) tests/prompts/test_rawselect.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_third_choice ___________________________ def test_select_third_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = "2" + "3" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("rawselect", message, text, **kwargs) tests/prompts/test_rawselect.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_separator_shortcuts ___________________________ def test_separator_shortcuts(): message = "Foo message" kwargs = {"choices": ["foo", Separator(), "bazz"]} text = "2" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("rawselect", message, text, **kwargs) tests/prompts/test_rawselect.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_random_input ___________________________ def test_select_random_input(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = "2" + "some random input" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("rawselect", message, text, **kwargs) tests/prompts/test_rawselect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________________ test_select_ctr_c _______________________________ def test_select_ctr_c(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = KeyInputs.CONTROLC with pytest.raises(KeyboardInterrupt): > feed_cli_with_input("rawselect", message, text, **kwargs) tests/prompts/test_rawselect.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _______________________________ test_legacy_name _______________________________ def test_legacy_name(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("list", message, text, **kwargs) tests/prompts/test_select.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_first_choice ___________________________ def test_select_first_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________ test_select_first_choice_with_token_title ___________________ def test_select_first_choice_with_token_title(): message = "Foo message" kwargs = { "choices": [ Choice(title=[("class:text", "foo")]), Choice(title=[("class:text", "bar")]), Choice(title=[("class:text", "bazz")]), ] } text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_select_second_choice ___________________________ def test_select_second_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_third_choice ___________________________ def test_select_third_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.DOWN + KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________ test_select_third_choice_using_shortcuts_and_arrows ______________ def test_select_third_choice_using_shortcuts_and_arrows(): message = "Foo message" kwargs = { "choices": ["foo", "bar", "bazz"], "use_shortcuts": True, } text = KeyInputs.TWO + KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________ test_select_second_choice_using_j_k ______________________ def test_select_second_choice_using_j_k(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = "jjk" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________ test_select_second_choice_using_emacs_keys __________________ def test_select_second_choice_using_emacs_keys(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = ( KeyInputs.CONTROLN + KeyInputs.CONTROLN + KeyInputs.CONTROLP + KeyInputs.ENTER + "\r" ) > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _________________________ test_select_with_instruction _________________________ def test_select_with_instruction(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"], "instruction": "sample instruction"} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_cycle_to_first_choice __________________________ def test_cycle_to_first_choice(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.DOWN + KeyInputs.DOWN + KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________________ test_cycle_backwards _____________________________ def test_cycle_backwards(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = KeyInputs.UP + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:122: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _________________________ test_cycle_backwards_using_k _________________________ def test_cycle_backwards_using_k(): message = "Foo message" kwargs = {"choices": ["foo", "bar", "bazz"]} text = "k" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________________ test_separator_down ______________________________ def test_separator_down(): message = "Foo message" kwargs = {"choices": ["foo", Separator(), "bazz"]} text = KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________________ test_separator_up _______________________________ def test_separator_up(): message = "Foo message" kwargs = {"choices": ["foo", Separator(), "bazz", Separator("--END--")]} text = KeyInputs.UP + KeyInputs.UP + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_random_input ___________________________ def test_select_random_input(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = "some random input" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________________ test_select_ctr_c _______________________________ def test_select_ctr_c(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = KeyInputs.CONTROLC with pytest.raises(KeyboardInterrupt): > feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_disallow_shortcut_key __________________________ def test_disallow_shortcut_key(): message = "Foo message" kwargs = { "choices": ["foo", "bar", Choice("bazz", shortcut_key=False)], "use_shortcuts": True, } text = KeyInputs.THREE + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________ test_allow_shortcut_key_with_True _______________________ def test_allow_shortcut_key_with_True(): message = "Foo message" kwargs = { "choices": ["foo", "bar", Choice("bazz", shortcut_key=True)], "use_shortcuts": True, } text = KeyInputs.THREE + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________ test_auto_shortcut_key_stable_in_loop _____________________ def test_auto_shortcut_key_stable_in_loop(): message = "Foo message" choices = [ Choice("foo"), Choice("bar"), ] kwargs = { "choices": choices, "use_shortcuts": True, } text = "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:216: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________ test_select_initial_choice_with_value _____________________ def test_select_initial_choice_with_value(): message = "Foo message" choice = Choice(title="bazz", value="bar") kwargs = {"choices": ["foo", choice], "default": "bar"} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_select_initial_choice __________________________ def test_select_initial_choice(): message = "Foo message" choice = Choice("bazz") kwargs = {"choices": ["foo", choice], "default": choice} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:243: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________ test_select_initial_choice_string _______________________ def test_select_initial_choice_string(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"], "default": "bazz"} text = KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:252: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________ test_select_initial_choice_duplicate _____________________ def test_select_initial_choice_duplicate(): message = "Foo message" choice = Choice("foo") kwargs = {"choices": ["foo", choice, "bazz"], "default": choice} text = KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________ test_no_invalid_parameters_are_forwarded ___________________ def test_no_invalid_parameters_are_forwarded(): # the `validate_while_typing` parameter is an additional parameter that # gets forwarded to the `PromptSession`. this checks that the parameter # isn't forwarded to a method that does not expect it > patched_prompt( [ { "type": "select", "name": "theme", "message": "What do you want to do?", "choices": [ "Order a pizza", "Make a reservation", ], } ], text=KeyInputs.ENTER + "\r", validate_while_typing=False, ) tests/prompts/test_select.py:289: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:78: in patched_prompt return execute_with_input_pipe(run) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:75: in run result = prompt(questions, input=inp, output=DummyOutput(), **kwargs) questionary/prompt.py:78: in prompt return unsafe_prompt(questions, answers, patch_stdout, true_color, **kwargs) questionary/prompt.py:219: in unsafe_prompt question = create_question_func(**_kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________________ test_select_arrow_keys ____________________________ def test_select_arrow_keys(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"], "use_arrow_keys": True} text = KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:311: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _______________________ test_fail_for_unreachable_choice _______________________ def test_fail_for_unreachable_choice(): message = "Foo message" kwargs = { "choices": ["foo", "bar", Choice("bazz", shortcut_key=False)], "use_shortcuts": True, "use_arrow_keys": False, } text = KeyInputs.THREE + "\r" with pytest.raises(RuntimeError): > feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:325: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________ test_jk_and_shortcut_conflict_avoided_by_disabling_ij_keys __________ def test_jk_and_shortcut_conflict_avoided_by_disabling_ij_keys(): message = "Foo message" kwargs = { "choices": ["foo", Choice("bar", shortcut_key="j"), "bazz"], "use_shortcuts": True, "use_arrow_keys": True, "use_jk_keys": False, } text = KeyInputs.ENTER + "\r" > feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:367: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________________ test_select_shortcuts _____________________________ def test_select_shortcuts(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"], "use_shortcuts": True} text = "2" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:375: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_select_no_arrow_keys ___________________________ def test_select_no_arrow_keys(): message = "Foo message" kwargs = { "choices": ["foo", "bazz"], "use_arrow_keys": False, "use_shortcuts": True, } text = KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:388: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________________ test_select_no_shortcuts ___________________________ def test_select_no_shortcuts(): message = "Foo message" kwargs = { "choices": ["foo", "bazz"], "use_arrow_keys": True, "use_shortcuts": False, } text = "2" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:401: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________ test_select_default_has_arrow_keys ______________________ def test_select_default_has_arrow_keys(): message = "Foo message" kwargs = {"choices": ["foo", "bazz"]} text = KeyInputs.DOWN + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input("select", message, text, **kwargs) tests/prompts/test_select.py:410: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ________________________ test_filter_prefix_one_letter _________________________ def test_filter_prefix_one_letter(): message = "Foo message" kwargs = {"choices": ["abc", "def", "ghi", "jkl"]} text = "g" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input( "select", message, text, use_search_filter=True, use_jk_keys=False, **kwargs, ) tests/prompts/test_select.py:431: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________ test_filter_prefix_multiple_letters ______________________ def test_filter_prefix_multiple_letters(): message = "Foo message" kwargs = {"choices": ["abc", "def", "ghi", "jkl", "jag", "jja"]} text = "j" + "j" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input( "select", message, text, use_search_filter=True, use_jk_keys=False, **kwargs, ) tests/prompts/test_select.py:447: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________ test_select_filter_handle_backspace ______________________ def test_select_filter_handle_backspace(): message = "Foo message" kwargs = {"choices": ["abc", "def", "ghi", "jkl", "jag", "jja"]} text = "j" + "j" + KeyInputs.BACK + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input( "select", message, text, use_search_filter=True, use_jk_keys=False, **kwargs, ) tests/prompts/test_select.py:463: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _________________ test_select_goes_back_to_top_after_filtering _________________ def test_select_goes_back_to_top_after_filtering(): message = "Foo message" kwargs = {"choices": ["abc", "def", "ghi", "jkl", "jag", "jja"]} text = KeyInputs.DOWN + KeyInputs.DOWN + "j" + KeyInputs.ENTER + "\r" > result, cli = feed_cli_with_input( "select", message, text, use_search_filter=True, use_jk_keys=False, **kwargs, ) tests/prompts/test_select.py:502: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:66: in feed_cli_with_input return execute_with_input_pipe(_create_input) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/utils.py:48: in _create_input application = prompter(message, input=inp, output=DummyOutput(), **kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________________ test_select_example ______________________________ def test_select_example(): from examples.select_restaurant import ask_dictstyle from examples.select_restaurant import ask_pystyle text = KeyInputs.DOWN + KeyInputs.ENTER + KeyInputs.ENTER + "\r" > result_dict = ask_with_patched_input(ask_dictstyle, text) tests/test_examples.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_examples.py:12: in ask_with_patched_input return execute_with_input_pipe(run) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_examples.py:10: in run return q(input=inp, output=DummyOutput()) examples/select_restaurant.py:52: in ask_dictstyle return prompt(questions, style=custom_style_dope, **kwargs) questionary/prompt.py:78: in prompt return unsafe_prompt(questions, answers, patch_stdout, true_color, **kwargs) questionary/prompt.py:219: in unsafe_prompt question = create_question_func(**_kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________________ test_rawselect_example ____________________________ def test_rawselect_example(): from examples.rawselect_separator import ask_dictstyle from examples.rawselect_separator import ask_pystyle text = "3" + KeyInputs.ENTER + KeyInputs.ENTER + "\r" > result_dict = ask_with_patched_input(ask_dictstyle, text) tests/test_examples.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_examples.py:12: in ask_with_patched_input return execute_with_input_pipe(run) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_examples.py:10: in run return q(input=inp, output=DummyOutput()) examples/rawselect_separator.py:48: in ask_dictstyle return prompt(questions, style=custom_style_dope, **kwargs) questionary/prompt.py:78: in prompt return unsafe_prompt(questions, answers, patch_stdout, true_color, **kwargs) questionary/prompt.py:219: in unsafe_prompt question = create_question_func(**_kwargs) questionary/prompts/rawselect.py:69: in rawselect return select.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ____________________________ test_checkbox_example _____________________________ def test_checkbox_example(): from examples.checkbox_separators import ask_dictstyle from examples.checkbox_separators import ask_pystyle text = "n" + KeyInputs.ENTER + KeyInputs.ENTER + KeyInputs.ENTER + "\r" > result_dict = ask_with_patched_input(ask_dictstyle, text) tests/test_examples.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_examples.py:12: in ask_with_patched_input return execute_with_input_pipe(run) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_examples.py:10: in run return q(input=inp, output=DummyOutput()) examples/checkbox_separators.py:51: in ask_dictstyle return prompt(questions, style=custom_style_dope, **kwargs) questionary/prompt.py:78: in prompt return unsafe_prompt(questions, answers, patch_stdout, true_color, **kwargs) questionary/prompt.py:219: in unsafe_prompt question = create_question_func(**_kwargs) questionary/prompts/checkbox.py:225: in checkbox layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ________________________ test_advanced_workflow_example ________________________ def test_advanced_workflow_example(): from examples.advanced_workflow import ask_dictstyle text = ( KeyInputs.ENTER + "questionary" + KeyInputs.ENTER + KeyInputs.DOWN + KeyInputs.DOWN + KeyInputs.ENTER + "Hello World" + KeyInputs.ENTER + "\r" ) > result_dict = ask_with_patched_input(ask_dictstyle, text) tests/test_examples.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_examples.py:12: in ask_with_patched_input return execute_with_input_pipe(run) tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_examples.py:10: in run return q(input=inp, output=DummyOutput()) examples/advanced_workflow.py:54: in ask_dictstyle return prompt(questions, **kwargs) questionary/prompt.py:78: in prompt return unsafe_prompt(questions, answers, patch_stdout, true_color, **kwargs) questionary/prompt.py:219: in unsafe_prompt question = create_question_func(**_kwargs) questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ______________________________ test_form_creation ______________________________ def test_form_creation(): text = "Y" + KeyInputs.ENTER + "\r" def run(inp): inp.send_text(text) f = example_form(inp) result = f.unsafe_ask() assert result == {"q1": True, "q2": "foo"} > execute_with_input_pipe(run) tests/test_form.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_form.py:33: in run f = example_form(inp) tests/test_form.py:13: in example_form q2=questionary.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError __________________________ test_form_skips_questions ___________________________ def test_form_skips_questions(): text = "Y" + KeyInputs.ENTER + "\r" def run(inp): inp.send_text(text) f = example_form_with_skip(inp) result = f.ask() assert result == {"q1": True, "q2": 42} > execute_with_input_pipe(run) tests/test_form.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_form.py:45: in run f = example_form_with_skip(inp) tests/test_form.py:22: in example_form_with_skip q2=questionary.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError _____________________ test_form_skips_questions_unsafe_ask _____________________ def test_form_skips_questions_unsafe_ask(): text = "Y" + KeyInputs.ENTER + "\r" def run(inp): inp.send_text(text) f = example_form_with_skip(inp) result = f.unsafe_ask() assert result == {"q1": True, "q2": 42} > execute_with_input_pipe(run) tests/test_form.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_form.py:59: in run f = example_form_with_skip(inp) tests/test_form.py:22: in example_form_with_skip q2=questionary.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError ___________________ test_ask_should_catch_keyboard_exception ___________________ def test_ask_should_catch_keyboard_exception(): def run(inp): try: inp.send_text(KeyInputs.CONTROLC) f = example_form(inp) result = f.ask() assert result == {} except KeyboardInterrupt: fail("Keyboard Interrupt should be caught by `ask()`") > execute_with_input_pipe(run) tests/test_form.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:90: in execute_with_input_pipe return func(inp) tests/test_form.py:72: in run f = example_form(inp) tests/test_form.py:13: in example_form q2=questionary.select( questionary/prompts/select.py:205: in select layout = common.create_inquirer_layout(ic, get_prompt_tokens, **kwargs) questionary/prompts/common.py:611: in create_inquirer_layout _fix_unecessary_blank_lines(ps) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ps = def _fix_unecessary_blank_lines(ps: PromptSession) -> None: """This is a fix for additional empty lines added by prompt toolkit. This assumes the layout of the default session doesn't change, if it does, this needs an update.""" default_container = ps.layout.container default_buffer_window = ( > default_container.get_children()[0].content.get_children()[1].content # type: ignore[attr-defined] ) E AttributeError: 'VSplit' object has no attribute 'content' questionary/prompts/common.py:591: AttributeError =========================== short test summary info ============================ FAILED tests/prompts/test_checkbox.py::test_submit_empty - AttributeError: 'V... FAILED tests/prompts/test_checkbox.py::test_select_first_choice - AttributeEr... FAILED tests/prompts/test_checkbox.py::test_select_with_instruction - Attribu... FAILED tests/prompts/test_checkbox.py::test_select_first_choice_with_token_title FAILED tests/prompts/test_checkbox.py::test_select_disabled_choices_if_they_are_default FAILED tests/prompts/test_checkbox.py::test_select_and_deselct - AttributeErr... FAILED tests/prompts/test_checkbox.py::test_select_first_and_third_choice - A... FAILED tests/prompts/test_checkbox.py::test_select_first_and_third_choice_using_emacs_keys FAILED tests/prompts/test_checkbox.py::test_cycle_to_first_choice - Attribute... FAILED tests/prompts/test_checkbox.py::test_cycle_backwards - AttributeError:... FAILED tests/prompts/test_checkbox.py::test_cycle_backwards_using_emacs_keys FAILED tests/prompts/test_checkbox.py::test_separator_down - AttributeError: ... FAILED tests/prompts/test_checkbox.py::test_separator_up - AttributeError: 'V... FAILED tests/prompts/test_checkbox.py::test_select_all - AttributeError: 'VSp... FAILED tests/prompts/test_checkbox.py::test_select_all_deselect - AttributeEr... FAILED tests/prompts/test_checkbox.py::test_select_invert - AttributeError: '... FAILED tests/prompts/test_checkbox.py::test_list_random_input - AttributeErro... FAILED tests/prompts/test_checkbox.py::test_list_ctr_c - AttributeError: 'VSp... FAILED tests/prompts/test_checkbox.py::test_checkbox_initial_choice - Attribu... FAILED tests/prompts/test_checkbox.py::test_select_initial_choice_string - At... FAILED tests/prompts/test_checkbox.py::test_select_initial_choice_duplicate FAILED tests/prompts/test_checkbox.py::test_validate_default_message - Attrib... FAILED tests/prompts/test_checkbox.py::test_validate_with_message - Attribute... FAILED tests/prompts/test_checkbox.py::test_proper_type_returned - AttributeE... FAILED tests/prompts/test_checkbox.py::test_select_filter_first_choice - Attr... FAILED tests/prompts/test_checkbox.py::test_select_filter_multiple_after_search FAILED tests/prompts/test_common.py::test_blank_line_fix - AttributeError: 'V... FAILED tests/prompts/test_common.py::test_print_with_style - TypeError: Attrs... FAILED tests/prompts/test_rawselect.py::test_legacy_name - AttributeError: 'V... FAILED tests/prompts/test_rawselect.py::test_select_first_choice - AttributeE... FAILED tests/prompts/test_rawselect.py::test_select_second_choice - Attribute... FAILED tests/prompts/test_rawselect.py::test_select_third_choice - AttributeE... FAILED tests/prompts/test_rawselect.py::test_separator_shortcuts - AttributeE... FAILED tests/prompts/test_rawselect.py::test_select_random_input - AttributeE... FAILED tests/prompts/test_rawselect.py::test_select_ctr_c - AttributeError: '... FAILED tests/prompts/test_select.py::test_legacy_name - AttributeError: 'VSpl... FAILED tests/prompts/test_select.py::test_select_first_choice - AttributeErro... FAILED tests/prompts/test_select.py::test_select_first_choice_with_token_title FAILED tests/prompts/test_select.py::test_select_second_choice - AttributeErr... FAILED tests/prompts/test_select.py::test_select_third_choice - AttributeErro... FAILED tests/prompts/test_select.py::test_select_third_choice_using_shortcuts_and_arrows FAILED tests/prompts/test_select.py::test_select_second_choice_using_j_k - At... FAILED tests/prompts/test_select.py::test_select_second_choice_using_emacs_keys FAILED tests/prompts/test_select.py::test_select_with_instruction - Attribute... FAILED tests/prompts/test_select.py::test_cycle_to_first_choice - AttributeEr... FAILED tests/prompts/test_select.py::test_cycle_backwards - AttributeError: '... FAILED tests/prompts/test_select.py::test_cycle_backwards_using_k - Attribute... FAILED tests/prompts/test_select.py::test_separator_down - AttributeError: 'V... FAILED tests/prompts/test_select.py::test_separator_up - AttributeError: 'VSp... FAILED tests/prompts/test_select.py::test_select_random_input - AttributeErro... FAILED tests/prompts/test_select.py::test_select_ctr_c - AttributeError: 'VSp... FAILED tests/prompts/test_select.py::test_disallow_shortcut_key - AttributeEr... FAILED tests/prompts/test_select.py::test_allow_shortcut_key_with_True - Attr... FAILED tests/prompts/test_select.py::test_auto_shortcut_key_stable_in_loop - ... FAILED tests/prompts/test_select.py::test_select_initial_choice_with_value - ... FAILED tests/prompts/test_select.py::test_select_initial_choice - AttributeEr... FAILED tests/prompts/test_select.py::test_select_initial_choice_string - Attr... FAILED tests/prompts/test_select.py::test_select_initial_choice_duplicate - A... FAILED tests/prompts/test_select.py::test_no_invalid_parameters_are_forwarded FAILED tests/prompts/test_select.py::test_select_arrow_keys - AttributeError:... FAILED tests/prompts/test_select.py::test_fail_for_unreachable_choice - Attri... FAILED tests/prompts/test_select.py::test_jk_and_shortcut_conflict_avoided_by_disabling_ij_keys FAILED tests/prompts/test_select.py::test_select_shortcuts - AttributeError: ... FAILED tests/prompts/test_select.py::test_select_no_arrow_keys - AttributeErr... FAILED tests/prompts/test_select.py::test_select_no_shortcuts - AttributeErro... FAILED tests/prompts/test_select.py::test_select_default_has_arrow_keys - Att... FAILED tests/prompts/test_select.py::test_filter_prefix_one_letter - Attribut... FAILED tests/prompts/test_select.py::test_filter_prefix_multiple_letters - At... FAILED tests/prompts/test_select.py::test_select_filter_handle_backspace - At... FAILED tests/prompts/test_select.py::test_select_goes_back_to_top_after_filtering FAILED tests/test_examples.py::test_select_example - AttributeError: 'VSplit'... FAILED tests/test_examples.py::test_rawselect_example - AttributeError: 'VSpl... FAILED tests/test_examples.py::test_checkbox_example - AttributeError: 'VSpli... FAILED tests/test_examples.py::test_advanced_workflow_example - AttributeErro... FAILED tests/test_form.py::test_form_creation - AttributeError: 'VSplit' obje... FAILED tests/test_form.py::test_form_skips_questions - AttributeError: 'VSpli... FAILED tests/test_form.py::test_form_skips_questions_unsafe_ask - AttributeEr... FAILED tests/test_form.py::test_ask_should_catch_keyboard_exception - Attribu... ======================== 78 failed, 82 passed in 10.02s ======================== INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-v']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.95732 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.95732 (%check) Command exited with non-zero status 1 5.39user 0.85system 0:13.05elapsed 47%CPU (0avgtext+0avgdata 37112maxresident)k 0inputs+0outputs (0major+131743minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-questionary-2.1.0-alt1.src.rpm' failed. Command exited with non-zero status 1 4.13user 3.04system 0:25.97elapsed 27%CPU (0avgtext+0avgdata 134960maxresident)k 0inputs+0outputs (0major+278725minor)pagefaults 0swaps