MCPcopy Index your code
hub / github.com/RustPython/RustPython / wrapper

Function wrapper

extra_tests/test_snippets.py:80–84  ·  view source on GitHub ↗

Decorator function which can populate a unittest.TestCase class

(cls)

Source from the content-addressed store, hash-verified

78
79def populate(method):
80 def wrapper(cls):
81 """Decorator function which can populate a unittest.TestCase class"""
82 for test_type, filename in get_test_files():
83 create_test_function(cls, filename, method, test_type)
84 return cls
85
86 return wrapper
87

Callers

nothing calls this directly

Calls 2

create_test_functionFunction · 0.85
get_test_filesFunction · 0.70

Tested by

no test coverage detected