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

Method setUpClass

extra_tests/test_snippets.py:127–135  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

125class SampleTestCase(unittest.TestCase):
126 @classmethod
127 def setUpClass(cls):
128 # Here add resource files
129 cls.slices_resource_path = (
130 Path(TEST_DIRS[_TestType.functional]) / "cpython_generated_slices.py"
131 )
132 if cls.slices_resource_path.exists():
133 cls.slices_resource_path.unlink()
134
135 generate_slices(cls.slices_resource_path)
136
137 @classmethod
138 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 4

PathClass · 0.90
generate_slicesFunction · 0.85
existsMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected