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

Function test_nottest_class_decorator

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

Source from the content-addressed store, hash-verified

404
405
406def test_nottest_class_decorator(pytester: Pytester) -> None:
407 pytester.makepyfile(
408 """
409 import nose.tools
410 @nose.tools.nottest
411 class TestPrefix(object):
412 def test_method(self):
413 pass
414 """
415 )
416 reprec = pytester.inline_run()
417 assert not reprec.getfailedcollections()
418 calls = reprec.getreports("pytest_runtest_logreport")
419 assert not calls
420
421
422def test_skip_test_with_unicode(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