def test_lazy_fixture_common_dependency(testdir):
    testdir.makepyfile("\n        import pytest\n        @pytest.fixture(params=[1, 2, 3])\n        def one(request):\n            return request.param\n        @pytest.fixture(params=[pytest.lazy_fixture('one')])\n        def as_str(request):\n            return str(request.param)\n        @pytest.fixture(params=[pytest.lazy_fixture('one')])\n        def as_hex(request):\n            return hex(request.param)\n\n        def test_as_str(as_str):\n            assert as_str in {'1', '2', '3'}\n        def test_as_hex(as_hex):\n            assert as_hex in {'0x1', '0x2', '0x3'}\n\n        def test_as_hex_vs_as_str(as_str, as_hex):\n            assert int(as_hex, 16) == int(as_str)\n    ")
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=9)
def test_lazy_fixture_common_dependency(testdir):
    testdir.makepyfile("\n        import pytest\n        @pytest.fixture(params=[1, 2, 3])\n        def one(request):\n            return request.param\n        @pytest.fixture(params=[pytest.lazy_fixture('one')])\n        def as_str(request):\n            return str(request.param)\n        @pytest.fixture(params=[pytest.lazy_fixture('one')])\n        def as_hex(request):\n            return hex(request.param)\n\n        def test_as_str(as_str):\n            assert as_str in {'1', '2', '3'}\n        def test_as_hex(as_hex):\n            assert as_hex in {'0x1', '0x2', '0x3'}\n\n        def test_as_hex_vs_as_str(as_str, as_hex):\n            assert int(as_hex, 16) == int(as_str)\n    ")
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=9)