MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_notset_idval

Method test_notset_idval

testing/python/metafunc.py:368–374  ·  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

366 assert _idval(val, "a", 6, None, nodeid=None, config=None) == expected
367
368 def test_notset_idval(self) -> None:
369 """Test that a NOTSET value (used by an empty parameterset) generates
370 a proper ID.
371
372 Regression test for #7686.
373 """
374 assert _idval(NOTSET, "a", 0, None, nodeid=None, config=None) == "a0"
375
376 def test_idmaker_autoname(self) -> None:
377 """#250"""

Callers

nothing calls this directly

Calls 1

_idvalFunction · 0.90

Tested by

no test coverage detected