(self)
| 191 | ) |
| 192 | |
| 193 | def test_parametrize_and_id(self) -> None: |
| 194 | def func(x, y): |
| 195 | pass |
| 196 | |
| 197 | metafunc = self.Metafunc(func) |
| 198 | |
| 199 | metafunc.parametrize("x", [1, 2], ids=["basic", "advanced"]) |
| 200 | metafunc.parametrize("y", ["abc", "def"]) |
| 201 | ids = [x.id for x in metafunc._calls] |
| 202 | assert ids == ["basic-abc", "basic-def", "advanced-abc", "advanced-def"] |
| 203 | |
| 204 | def test_parametrize_and_id_unicode(self) -> None: |
| 205 | """Allow unicode strings for "ids" parameter in Python 2 (##1905)""" |
nothing calls this directly
no test coverage detected