(self)
| 470 | assert result == ["foo"] |
| 471 | |
| 472 | def test_idmaker_native_strings(self) -> None: |
| 473 | result = IdMaker( |
| 474 | ("a", "b"), |
| 475 | [ |
| 476 | pytest.param(1.0, -1.1), |
| 477 | pytest.param(2, -202), |
| 478 | pytest.param("three", "three hundred"), |
| 479 | pytest.param(True, False), |
| 480 | pytest.param(None, None), |
| 481 | pytest.param(re.compile("foo"), re.compile("bar")), |
| 482 | pytest.param(str, int), |
| 483 | pytest.param(list("six"), [66, 66]), |
| 484 | pytest.param({7}, set("seven")), |
| 485 | pytest.param(tuple("eight"), (8, -8, 8)), |
| 486 | pytest.param(b"\xc3\xb4", b"name"), |
| 487 | pytest.param(b"\xc3\xb4", "other"), |
| 488 | pytest.param(1.0j, -2.0j), |
| 489 | ], |
| 490 | None, |
| 491 | None, |
| 492 | None, |
| 493 | None, |
| 494 | ).make_unique_parameterset_ids() |
| 495 | assert result == [ |
| 496 | "1.0--1.1", |
| 497 | "2--202", |
| 498 | "three-three hundred", |
| 499 | "True-False", |
| 500 | "None-None", |
| 501 | "foo-bar", |
| 502 | "str-int", |
| 503 | "a7-b7", |
| 504 | "a8-b8", |
| 505 | "a9-b9", |
| 506 | "\\xc3\\xb4-name", |
| 507 | "\\xc3\\xb4-other", |
| 508 | "1j-(-0-2j)", |
| 509 | ] |
| 510 | |
| 511 | def test_idmaker_non_printable_characters(self) -> None: |
| 512 | result = IdMaker( |
nothing calls this directly
no test coverage detected