def test_fixtures_with_params_in_parametrize_with_indirect(testdir):
    items = testdir.getitems("\n        import pytest\n        @pytest.fixture\n        def one():\n            pass\n        @pytest.fixture(params=[1,2])\n        def two(request):\n            return request.param\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) == 2)
    assert (items[0].callspec.params['two'] == 1)
    assert (items[1].callspec.params['two'] == 2)
def test_fixtures_with_params_in_parametrize_with_indirect(testdir):
    items = testdir.getitems("\n        import pytest\n        @pytest.fixture\n        def one():\n            pass\n        @pytest.fixture(params=[1,2])\n        def two(request):\n            return request.param\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) == 2)
    assert (items[0].callspec.params['two'] == 1)
    assert (items[1].callspec.params['two'] == 2)