def test_fixture_in_parametrize_with_params(testdir):
    items = testdir.getitems("\n        import pytest\n        @pytest.fixture(params=[1,2])\n        def one(request):\n            return request.param\n        @pytest.mark.parametrize('arg1,arg2', [\n            ('val1', pytest.lazy_fixture('one')),\n            ('val1', 'val2')\n        ])\n        def test_func(arg1, arg2):\n            pass\n    ")
    assert (len(items) == 3)
    assert (items[0].callspec.params['one'] == 1)
    assert (items[1].callspec.params['one'] == 2)
def test_fixture_in_parametrize_with_params(testdir):
    items = testdir.getitems("\n        import pytest\n        @pytest.fixture(params=[1,2])\n        def one(request):\n            return request.param\n        @pytest.mark.parametrize('arg1,arg2', [\n            ('val1', pytest.lazy_fixture('one')),\n            ('val1', 'val2')\n        ])\n        def test_func(arg1, arg2):\n            pass\n    ")
    assert (len(items) == 3)
    assert (items[0].callspec.params['one'] == 1)
    assert (items[1].callspec.params['one'] == 2)