def test_issues12_skip_test_method(testdir):
    testdir.makepyfile("\n        import pytest\n\n        class TestModels:\n            @pytest.fixture\n            def one(self):\n                return 1\n\n            @pytest.mark.skip(reason='skip this')\n            @pytest.mark.parametrize('a', [\n                pytest.lazy_fixture('one')\n            ])\n            def test_model_a(self, a):\n                assert a == 1\n\n            @pytest.mark.parametrize('a', [\n                pytest.param(pytest.lazy_fixture('one'), marks=pytest.mark.skip(reason='skip this'))\n            ])\n            def test_model_b(self, a):\n                assert a == 1\n\n            def test_after_skip(self, one):\n                assert one == 1\n    ")
    reprec = testdir.runpytest('-s', '-v')
    reprec.assert_outcomes(skipped=2, passed=1)
def test_issues12_skip_test_method(testdir):
    testdir.makepyfile("\n        import pytest\n\n        class TestModels:\n            @pytest.fixture\n            def one(self):\n                return 1\n\n            @pytest.mark.skip(reason='skip this')\n            @pytest.mark.parametrize('a', [\n                pytest.lazy_fixture('one')\n            ])\n            def test_model_a(self, a):\n                assert a == 1\n\n            @pytest.mark.parametrize('a', [\n                pytest.param(pytest.lazy_fixture('one'), marks=pytest.mark.skip(reason='skip this'))\n            ])\n            def test_model_b(self, a):\n                assert a == 1\n\n            def test_after_skip(self, one):\n                assert one == 1\n    ")
    reprec = testdir.runpytest('-s', '-v')
    reprec.assert_outcomes(skipped=2, passed=1)