Open bigbZik opened 6 years ago
Do you have any comments?
@bigbZik, Hi! Thanks for contribution! I'll check it out for sure on this week. Sorry for not answering)
Hey! Thanks again, but I'm not sure this function is the right way to solve the problem:
def get_fixture_value(fname, request):
res = request.getfixturevalue(fname)
while is_lazy_fixture(res):
res = request.getfixturevalue(res.name)
return res
I was able to solve first test only for now. Check out https://github.com/TvoroG/pytest-lazy-fixture/tree/pull28.
I will need more time for test_lazy_fixture_nested_fixtures_in_parametrize
test.
Example:
Example 2: