MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_mark_from_parameters

Method test_mark_from_parameters

testing/test_mark.py:707–729  ·  view source on GitHub ↗

#1540

(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

705
706 @pytest.mark.filterwarnings("ignore")
707 def test_mark_from_parameters(self, pytester: Pytester) -> None:
708 """#1540"""
709 pytester.makepyfile(
710 """
711 import pytest
712
713 pytestmark = pytest.mark.skipif(True, reason='skip all')
714
715 # skipifs inside fixture params
716 params = [pytest.mark.skipif(False, reason='dont skip')('parameter')]
717
718
719 @pytest.fixture(params=params)
720 def parameter(request):
721 return request.param
722
723
724 def test_1(parameter):
725 assert True
726 """
727 )
728 reprec = pytester.inline_run()
729 reprec.assertoutcome(skipped=1)
730
731 def test_reevaluate_dynamic_expr(self, pytester: Pytester) -> None:
732 """#7360"""

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected