pytest-lambda
pytest-lambda copied to clipboard
Define pytest fixtures with lambda functions
Trying out this example. Results in an error when running test. ``` @pytest.mark.django_db class TestGeneric: alpha, omega = lambda_fixture(params=[pytest.param('start', 'end', id='uno'), pytest.param('born', 'dead', id='dos')]) def test_this_crazy(self, alpha, omega): pass ```...
There have been times I really wanted to override the types that PyCharm has guessed for a lambda fixture's expression. It would be nice if I could explicitly type the...
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.26.2 to 20.26.6. Release notes Sourced from virtualenv's releases. 20.26.6 What's Changed release 20.26.5 by @gaborbernat in pypa/virtualenv#2766 Fix #2768: Quote template strings in activation scripts by...
This is due to internal changes in pytest introduced in https://github.com/pytest-dev/pytest/pull/12473. The representation of a fixture is changed to a class `FixtureFunctionDefinition` rather than a simple callable. A check is...