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

Method test_parametrize_indirect_list

testing/python/metafunc.py:654–663  ·  view source on GitHub ↗

#714

(self)

Source from the content-addressed store, hash-verified

652 assert metafunc._calls[1].params == dict(x=1, y=3)
653
654 def test_parametrize_indirect_list(self) -> None:
655 """#714"""
656
657 def func(x, y):
658 pass
659
660 metafunc = self.Metafunc(func)
661 metafunc.parametrize("x, y", [("a", "b")], indirect=["x"])
662 assert metafunc._calls[0].funcargs == dict(y="b")
663 assert metafunc._calls[0].params == dict(x="a")
664
665 def test_parametrize_indirect_list_all(self) -> None:
666 """#714"""

Callers

nothing calls this directly

Calls 2

MetafuncMethod · 0.95
parametrizeMethod · 0.95

Tested by

no test coverage detected