On 10 June 2016 at 09:36, Florian Schulze <[email protected]> wrote:
>
>> 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.

I've always been an advocate of using @pytest.mark.foo only ever on
test functions/classes and not other things.  And yes there are some
early violations of this, but IIRC they are no longer needed with
pluggy.
_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to