MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / setUp

Method setUp

gitless/tests/utils.py:34–39  ·  view source on GitHub ↗

Creates temporary dir and cds to it.

(self, prefix_for_tmp_repo)

Source from the content-addressed store, hash-verified

32class TestBase(unittest.TestCase):
33
34 def setUp(self, prefix_for_tmp_repo):
35 """Creates temporary dir and cds to it."""
36 logging.basicConfig(stream=sys.stdout, level=logging.INFO)
37 self.path = tempfile.mkdtemp(prefix=prefix_for_tmp_repo)
38 logging.debug('Created temporary directory {0}'.format(self.path))
39 os.chdir(self.path)
40
41 def tearDown(self):
42 """Removes the temporary dir."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected