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

Method test_parametrize_onearg_indirect

testing/python/metafunc.py:884–890  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

882 assert metafunc._calls[1].id == "2"
883
884 def test_parametrize_onearg_indirect(self) -> None:
885 metafunc = self.Metafunc(lambda x: None)
886 metafunc.parametrize("x", [1, 2], indirect=True)
887 assert metafunc._calls[0].params == dict(x=1)
888 assert metafunc._calls[0].id == "1"
889 assert metafunc._calls[1].params == dict(x=2)
890 assert metafunc._calls[1].id == "2"
891
892 def test_parametrize_twoargs(self) -> None:
893 metafunc = self.Metafunc(lambda x, y: None)

Callers

nothing calls this directly

Calls 2

MetafuncMethod · 0.95
parametrizeMethod · 0.95

Tested by

no test coverage detected