Allow unicode strings for "ids" parameter in Python 2 (##1905)
(self)
| 259 | assert ids == ["basic-abc", "basic-def", "advanced-abc", "advanced-def"] |
| 260 | |
| 261 | def test_parametrize_and_id_unicode(self) -> None: |
| 262 | """Allow unicode strings for "ids" parameter in Python 2 (##1905)""" |
| 263 | |
| 264 | def func(x): |
| 265 | pass |
| 266 | |
| 267 | metafunc = self.Metafunc(func) |
| 268 | metafunc.parametrize("x", [1, 2], ids=["basic", "advanced"]) |
| 269 | ids = [x.id for x in metafunc._calls] |
| 270 | assert ids == ["basic", "advanced"] |
| 271 | |
| 272 | def test_parametrize_with_wrong_number_of_ids(self) -> None: |
| 273 | def func(x, y): |
nothing calls this directly
no test coverage detected