(self)
| 890 | assert metafunc._calls[1].id == "2" |
| 891 | |
| 892 | def test_parametrize_twoargs(self) -> None: |
| 893 | metafunc = self.Metafunc(lambda x, y: None) |
| 894 | metafunc.parametrize(("x", "y"), [(1, 2), (3, 4)]) |
| 895 | assert len(metafunc._calls) == 2 |
| 896 | assert metafunc._calls[0].funcargs == dict(x=1, y=2) |
| 897 | assert metafunc._calls[0].id == "1-2" |
| 898 | assert metafunc._calls[1].funcargs == dict(x=3, y=4) |
| 899 | assert metafunc._calls[1].id == "3-4" |
| 900 | |
| 901 | def test_parametrize_multiple_times(self, pytester: Pytester) -> None: |
| 902 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected