[pytest-dev] My gripes with pytest and tox

Florian Schulze florian.schulze at gmx.net
Fri Jun 10 04:36:34 EDT 2016


> For the fixtures, I often need to do something like:
> 
>    @pytest.fixture(params=['one', 'two'])
>    def fixt(request):
>        # ...
>        return request.param
> 
> I just wonder if there's a slightly cleaner way of doing this kind of
> thing. Maybe there isn't. Haven't given it much thought yet.

I would like if @pytest.mark.parametrize works with fixtures. 

Regards,
Florian Schulze 


More information about the pytest-dev mailing list