MCPcopy Create free account
hub / github.com/ipython/ipython / setUp

Method setUp

IPython/core/tests/test_completerlib.py:35–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 dirs = [u"adir/", "bdir/"]
34
35 def setUp(self):
36 self.BASETESTDIR = tempfile.mkdtemp()
37 for fil in self.files:
38 with open(join(self.BASETESTDIR, fil), "w") as sfile:
39 sfile.write("pass\n")
40 for d in self.dirs:
41 os.mkdir(join(self.BASETESTDIR, d))
42
43 self.oldpath = os.getcwd()
44 os.chdir(self.BASETESTDIR)
45
46 def tearDown(self):
47 os.chdir(self.oldpath)

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected