python-pytest-cases
python-pytest-cases copied to clipboard
Separate test code from test cases in pytest.
Hello, Thanks for the excellent work with this library. I have a scenario that I can't get to work and I was wondering if there is a way around it...
I have two fixtures that each return a class instance where the classes are different from each other, and I want to compare the attributes of each class instance for...
If all the parameters to a fixture function have default values, `pytest.fixture` handles them appropriately but `pytest_cases.fixture` does not. ``` import pytest import pytest_cases # This works @pytest.fixture def fix(x=1):...
See https://github.com/data-centric-ai/dcbench/blob/main/CITATION.cff
See https://github.com/smarie/pytest-patterns/
I'm currently using fixtures as a base to generate cases with, in order to perform a bunch of tests which are grouped into various classes. An simple example which illustrates...
`@pytest.mark.parametrize("a", [0, 2], ids=["Null", "Positive"])` could become `@parametrize("a", dict(Null=0, Positive=2)`
I'm relatively new to pytest cases, so this feature may already be implemented in some way that I have not found. I have a series of data test cases in...
Hi there, Thank you for putting this package together. I hope that it will be able to handle the complexity of this use case since I haven't found a native...
same as https://github.com/smarie/python-decopatch/issues/29 : when this is fixed https://github.com/tylerwince/flake8-bandit/issues/21