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

Function test_istest_function_decorator

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

Source from the content-addressed store, hash-verified

362
363
364def test_istest_function_decorator(pytester: Pytester) -> None:
365 p = pytester.makepyfile(
366 """
367 import nose.tools
368 @nose.tools.istest
369 def not_test_prefix():
370 pass
371 """
372 )
373 result = pytester.runpytest(p)
374 result.assert_outcomes(passed=1)
375
376
377def test_nottest_function_decorator(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assert_outcomesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected