pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
After migration to pytest, I am frequently missing feature with regard to test parametrization that I used in the `parameterized` library: Ability to generate test ID based on the entire...
With almost 1300 plugins in the [plugin list](https://docs.pytest.org/en/latest/reference/plugin_list.html), it's pretty much impossible to browse through it... you can search for things if you know what you're looking for, but it's...
pytest internally ensures that rewrite warnings cant be avoided, so any warning filter to allow certain modules to pass, gets disabled in https://github.com/pytest-dev/pytest/blob/38adb23bd245329d26b36fd85a43aa9b3dd0406c/src/_pytest/warnings.py#L163-L178 the basic gist is that the hooks...
#### What's the problem this feature will solve? Abstract test classes that use \_\_test\_\_=False to avoid collection require that the subclasses set \_\_test\_\_=True to be collected. If a user forgets...
Currently, a fixture can be scoped as function, class, module, or session. I propose a fixture can also be scoped per _parametrization_. Consider: ``` import time @pytest.fixture def slow_setup(): time.sleep(1)...
follow-up to #6444 its no longer clear if the process control option for the testsuite still works for our testsuite, we should evaluate if we want to fix/support it or...
It was added in https://github.com/pytest-dev/pytest/commit/e04d9ff80be855164799bb315d23ca611c4b10f4 by @aostr, and its only purpose is to remove the "w" in reportopts. In https://github.com/pytest-dev/pytest/issues/1668#issuecomment-228550742 it is mentioned that this was discussed with @hpk42. The...
In #10315 + #12488 + #12517, I added a CI gating job. During the sprints, I suggested that we don't add it as a required check for some while to...
Hi @nicoddemus, this patch aims to allow excluding specified packages from being listed on the [Pytest Plugin List] page, coming from a proposal where you responded positively to. - GH-12901...
The warning: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function is incorrect. If the statement was true to test would succeed. See example below: ``` cat pyproject.toml dependencies = [ "pytest==8.3.3", "alt-pytest-asyncio==0.7.2", ] cat fail.py import pytest...