python-pytest-cases icon indicating copy to clipboard operation
python-pytest-cases copied to clipboard

Filter cases by parametrization

Open volcacius opened this issue 2 years ago • 0 comments

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 or not. I have a case generator with some complicated logic and multiple @parametrize annotations. Depending on how it has been parametrized it should be tested by different functions. So I have been trying to use use the filter argument in @parametrize_with_cases to filter based on how the case is currently parametrized. However, similar to #217 the id contains only the "base" and not the full thing. Is there a way to filter based on the full case id?

Thanks

volcacius avatar Jul 29 '22 19:07 volcacius