MCPcopy
hub / github.com/django/django / setUp

Method setUp

tests/utils_tests/test_autoreload.py:317–322  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

315
316class TestSysPathDirectories(SimpleTestCase):
317 def setUp(self):
318 _directory = tempfile.TemporaryDirectory()
319 self.addCleanup(_directory.cleanup)
320 self.directory = Path(_directory.name).resolve(strict=True).absolute()
321 self.file = self.directory / "test"
322 self.file.touch()
323
324 def test_sys_paths_with_directories(self):
325 with extend_sys_path(str(self.file)):

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.45
touchMethod · 0.45

Tested by

no test coverage detected