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

Function test_nottest_function_decorator

testing/test_nose.py:377–389  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

375
376
377def test_nottest_function_decorator(pytester: Pytester) -> None:
378 pytester.makepyfile(
379 """
380 import nose.tools
381 @nose.tools.nottest
382 def test_prefix():
383 pass
384 """
385 )
386 reprec = pytester.inline_run()
387 assert not reprec.getfailedcollections()
388 calls = reprec.getreports("pytest_runtest_logreport")
389 assert not calls
390
391
392def test_istest_class_decorator(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

getfailedcollectionsMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45
getreportsMethod · 0.45

Tested by

no test coverage detected