-
## Environment data
- Language Server version: 2023.11.10
- OS and version: Manjaro
- Python version (& distribution if applicable, e.g. Anaconda): 3.10 (any python has this issue)
## Co…
-
Dear pytest developers,
I think there is potential for optimization of fixture teardown. The idea is probably best explained with an example. Consider the file test_teardown.py:
```python
import …
-
I have this issue for the following peace of code
```python
class TestMatchedAndNotMatchedConditions(IncrementalBase):
@pytest.fixture(scope="class")
def seeds(self):
return {
…
-
pytest fixtures decorated with @freeze_time do not have time frozen:
`
@freeze_time('2018-01-01') `
`@pytest.fixture `
`def sample():`
`print(datetime.datetime.now(datetime.timezone.utc)…
-
Pytest allows to define paramtrized fixtures. Example:
```python
@pytest.fixture(params=['A', 'B', 'C'])
def case(request):
return request.param
def test_1(case):
assert case == 'E'
…
-
I'd love the ability to define fixtures that are set up + torn down once for the entire test suite. This would be similar to setting the scope of a fixture to "class" for pytest fixtures (since you s…
-
Rename `_ca(s)sette_name` helper function to `cassette_name` to be a part of the API.
-
pytest is for me and to be honest I know that something is missing in my build env but I cannot figure out which one module(s) I need to install :/
May I as for some hints?
And in below output lates…
-
There are some (considerable) advantages to pytest, over the currently used unittest module from the Python std. lib.
1. Compatibility with unittests module. No code changes are required to start w…
-
#### Is your feature request related to a problem?
I wish `pytask` had the same "capture-related" fixtures as `pytest`, like the ones described [here](https://docs.pytest.org/en/6.2.x/capture.html#…