[pytest-dev] fixtures and pylint W0621
Floris Bruynooghe
flub at devork.be
Sun Dec 8 21:49:28 CET 2013
On 8 December 2013 09:40, holger krekel <holger at merlinux.eu> wrote:
>> > On Tue, Dec 3, 2013 at 11:26 PM, holger krekel <holger at merlinux.eu> wrote:
>> >> Well, ok. Pending further input, i made pytest accept pytest.fixture
>> >> decorated pytest_funcarg__ prefixed functions, see
>> >>
>> >> https://bitbucket.org/hpk42/pytest/commits/aa1f0505a3156b9feca43cd67c5afc95622b9ac5
>>
>> I don't really like this change. IIRC this was considered when the
>> decorator was introduced and the reason it was not allowed originally
>> is because the signature is different between the different ways of
>> defining fixtures. That can be very confusing too.
>
> Not sure i follow. What is different? The only difference is that
> the decorator allows to specify a caching scope, params etc. It does
> not change anything about the fixture functions own signature.
I was assuming the old fixtures do not allow requesting other fixtures
via funcargs. But I might well be wrong on that.
Regards,
Floris
--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org
More information about the Pytest-dev
mailing list