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

Method test_parametrize_CSV

testing/python/metafunc.py:918–928  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

916 result.assert_outcomes(failed=6)
917
918 def test_parametrize_CSV(self, pytester: Pytester) -> None:
919 pytester.makepyfile(
920 """
921 import pytest
922 @pytest.mark.parametrize("x, y,", [(1,2), (2,3)])
923 def test_func(x, y):
924 assert x+1 == y
925 """
926 )
927 reprec = pytester.inline_run()
928 reprec.assertoutcome(passed=2)
929
930 def test_parametrize_class_scenarios(self, pytester: Pytester) -> None:
931 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected