MCPcopy
hub / github.com/pytest-dev/pytest / test_notset_idval

Method test_notset_idval

testing/python/metafunc.py:431–437  ·  view source on GitHub ↗

Test that a NOTSET value (used by an empty parameterset) generates a proper ID. Regression test for #7686.

(self)

Source from the content-addressed store, hash-verified

429 )
430
431 def test_notset_idval(self) -> None:
432 """Test that a NOTSET value (used by an empty parameterset) generates
433 a proper ID.
434
435 Regression test for #7686.
436 """
437 assert IdMaker([], [], None, None, None, None)._idval(NOTSET, "a", 0) == "a0"
438
439 def test_idmaker_autoname(self) -> None:
440 """#250"""

Callers

nothing calls this directly

Calls 2

IdMakerClass · 0.90
_idvalMethod · 0.80

Tested by

no test coverage detected