Open
Description
pytest-lazy-fixture doesn't work for deep nesting
platform linux -- Python 3.5.2, pytest-3.10.1, py-1.7.0, pluggy-0.8.1
plugins: timeout-1.3.0, celery-4.2.1, repeat-0.7.0, reportportal-1.0.4, assume-1.2, lazy-fixture-0.5.1
Example:
import pytest
@pytest.fixture(scope='function')
def fixt1():
return 111
@pytest.fixture(scope='function')
def fixt2():
return pytest.lazy_fixture("fixt1")
@pytest.fixture(scope='function')
def fixt3():
return pytest.lazy_fixture("fixt2")
def test(fixt3):
print("Value in test: {}".format(fixt3))
Returns:
Value in test: <LazyFixture "fixt1">
Should be:
Value in test: 111
Metadata
Metadata
Assignees
Labels
No labels