Hi,
I would like to start contributing to PyInquirer and I went through the steps under the contribution section.
When running the tests most fail, with basically two errors:
e.g.: FAILED tests/test_prompts_list.py::test_cycle_backwards - AttributeError: 'str' object has no attribute 'read_fd'.
This seems to come from the use of PosixPipeInput in feed_app_with_input.
Perhaps this is something that is system specific?
The second issue seems to be an exception when trying to import PyInquirer in examples in some of the tests:
E assert "Traceback (m...PyInquirer'\n" == '😃 Select top... Extra cheese'
E + Traceback (most recent call last):
E + File "examples/checkbox.py", line 8, in <module>
E + from PyInquirer import prompt, Separator
E + ModuleNotFoundError: No module named 'PyInquirer'
These are all after running through the basic steps of setting up the env:
I do not have a workaround, but I am experiencing the same issue. I tested Python 3.7, 3.9 and 3.10 and various commits of PyInquirer. I was unable to find anything that would pass the tests.
Hi, I would like to start contributing to PyInquirer and I went through the steps under the contribution section. When running the tests most fail, with basically two errors:
PosixPipeInput
infeed_app_with_input
. Perhaps this is something that is system specific?My env is, from the pytest run:
These are all after running through the basic steps of setting up the env:
See full pytest output
``` pytest -sv tests/ ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.8.7, pytest-7.1.2, pluggy-1.0.0 -- /Users/MyUser/dev/PyInquirer/venv/bin/python cachedir: .pytest_cache metadata: {'Python': '3.8.7', 'Platform': 'macOS-10.16-x86_64-i386-64bit', 'Packages': {'pytest': '7.1.2', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'xdist': '2.5.0', 'forked': '1.4.0', 'metadata': '2.0.1', 'html': '3.1.1', 'cov': '3.0.0'}} rootdir: /Users/MyUser/dev/PyInquirer plugins: xdist-2.5.0, forked-1.4.0, metadata-2.0.1, html-3.1.1, cov-3.0.0 collected 23 items tests/test_example_checkbox.py::test_checkbox len: 181 FAILED tests/test_example_expand.py::test_without_expand FAILED tests/test_example_expand.py::test_with_expand FAILED tests/test_example_hierachical.py::test_hierarchical FAILED tests/test_example_input.py::test_input FAILED tests/test_example_list.py::test_list len: 177 FAILED tests/test_example_password.py::test_password FAILED tests/test_example_pizza.py::test_pizza FAILED tests/test_example_rawlist.py::test_rawlist FAILED tests/test_example_when.py::test_when_bacon FAILED tests/test_example_when.py::test_when_pizza FAILED tests/test_example_when.py::test_when_no_thanks FAILED tests/test_helpers.py::test_remove_ansi_escape_sequences PASSED tests/test_helpers.py::test_example_app PASSED tests/test_helpers.py::test_example_app_dialog_style PASSED tests/test_helpers.py::test_example_app_no_match PASSED tests/test_helpers.py::test_example_app_regex PASSED tests/test_helpers.py::test_example_app_regex_no_match PASSED tests/test_prompts_list.py::test_select_first_choice FAILED tests/test_prompts_list.py::test_select_second_choice FAILED tests/test_prompts_list.py::test_select_third_choice FAILED tests/test_prompts_list.py::test_cycle_to_first_choice FAILED tests/test_prompts_list.py::test_cycle_backwards FAILED ================================================================================== FAILURES =================================================================================== ________________________________________________________________________________ test_checkbox ________________________________________________________________________________ self = SimplePty.spawn(['/Users/MyUser/dev/PyInquirer/venv/bin/python', 'examples/checkbox.py'], env=environ({'APPLICAT...MyUser/dev/PyInquirer/venv/bin/pytest', 'PYTEST_CURRENT_TEST': 'tests/test_example_checkbox.py::test_checkbox (call)'})) text = '😃 Select toppings (Thank you for your help!
Roy.