pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
# a detailed description of the bug or problem you are having Pickling a class that serves as just a container for a custom enum results in the inability to...
updates: - https://github.com/myint/autoflake → https://github.com/PyCQA/autoflake - [github.com/PyCQA/autoflake: v1.5.3 → v1.6.0](https://github.com/PyCQA/autoflake/compare/v1.5.3...v1.6.0) - [github.com/asottile/pyupgrade: v2.37.3 → v2.38.0](https://github.com/asottile/pyupgrade/compare/v2.37.3...v2.38.0)
```python @pytest.fixture(params=["风行频道"]) def enter_channel(): ... def test_fengxing(enter_channel): ... ```  I'm trying to use fixture with params. But terminalReporter doesn't seem to support unicode. Any good suggestions over there?
AFAIU, `faulthandler` is enabled by default by pytest. In our (PyArrow) CI tests, we also enable CPython dev mode through the environment variable `PYTHONDEVMODE`: https://github.com/pitrou/arrow/actions/runs/3080710517/jobs/4978383781#step:6:5654 However, it seems that in...
See #1992 ```sh pytest --print-completion bash | sudo tee /usr/share/bash-completion/completions/pytest pytest --print-completion tcsh | sudo tee /etc/profile.d/pytest.completion.csh pytest --print-completion zsh | sudo tee /usr/share/zsh/site-functions/_pytest ``` ```shell ❯ pytest -- option...
- [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using - [x] pytest and...
Currently, pytest attaches its log handlers only to the root logger, and relies on log propagation to catch logs from loggers deeper in the hierarchy. In consequence we miss logs...
in page https://docs.pytest.org/en/stable/explanation/flaky.html there's link [identify flaky tests](https://docs.microsoft.com/en-us/azure/devops/release-notes/2017/dec-11-vsts#identify-flaky-tests) currently return 404.
Hi, There is a 2-year old issue on the old repo and inspired by #3003 I thought it might be easier if I at least add some reference here: https://github.com/eisensheng/pytest-catchlog/issues/44
A fix for #10273 and also a small change in `resolve_collection_argument` Before this commit `resolve_collection_argument` returned a list with empty string if the `::` selection operator was appended to the...