Allow unicode strings for "ids" parameter in Python 2 (##1905)
(self)
| 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)""" |
| 206 | |
| 207 | def func(x): |
| 208 | pass |
| 209 | |
| 210 | metafunc = self.Metafunc(func) |
| 211 | metafunc.parametrize("x", [1, 2], ids=["basic", "advanced"]) |
| 212 | ids = [x.id for x in metafunc._calls] |
| 213 | assert ids == ["basic", "advanced"] |
| 214 | |
| 215 | def test_parametrize_with_wrong_number_of_ids(self) -> None: |
| 216 | def func(x, y): |
nothing calls this directly
no test coverage detected