TvoroG / pytest-lazy-fixture

It helps to use fixtures in pytest.mark.parametrize
MIT License
377 stars 30 forks source link

Enable lazy fixtures with parametrized subfixtures and lazy fixtures in subfixtures #31

Closed YannickJadoul closed 5 years ago

YannickJadoul commented 5 years ago

This PR should allow for more complex combinations of lazy fixtures:

EDIT: Oh, yes, the first commit of this PR also fixes a few existing tests, after direct application of marks inside parametrize values were deprecated/removed.

TvoroG commented 5 years ago

@YannickJadoul, thanks a lot! It looks really good. I will definitely merge this PR but I need a little bit of time to get familiar with the new code and understand how it solves the limitations.

YannickJadoul commented 5 years ago

@TvoroG Great! Thank you :-) Thanks as well for making this library in the first place, by the way.

If you have any questions, do let me know.

I can give a quick, intuitive summary of the changes if that helps:

I am now also thinking that I will make the last commit into a different PR, since it has a different purpose. This should make it easier to review, as well :-)