def test_fixtures_in_parametrize_with_indirect(testdir):
    items = testdir.getitems("\n        import pytest\n        @pytest.fixture\n        def one():\n            pass\n        @pytest.fixture\n        def two():\n            pass\n        @pytest.mark.parametrize('arg1,one', [\n            ('val1', pytest.lazy_fixture('two')),\n        ], indirect=['one'])\n        def test_func(arg1, one):\n            pass\n    ")
    assert (len(items) == 1)
    assert (items[0].callspec.params['one'].name == 'two')
def test_fixtures_in_parametrize_with_indirect(testdir):
    items = testdir.getitems("\n        import pytest\n        @pytest.fixture\n        def one():\n            pass\n        @pytest.fixture\n        def two():\n            pass\n        @pytest.mark.parametrize('arg1,one', [\n            ('val1', pytest.lazy_fixture('two')),\n        ], indirect=['one'])\n        def test_func(arg1, one):\n            pass\n    ")
    assert (len(items) == 1)
    assert (items[0].callspec.params['one'].name == 'two')