MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / setUp

Method setUp

tensorboard/manager_test.py:263–269  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

261 """Tests for `write_info_file`, `remove_info_file`, and `get_all`."""
262
263 def setUp(self):
264 super().setUp()
265 patcher = mock.patch.dict(os.environ, {"TMPDIR": self.get_temp_dir()})
266 patcher.start()
267 self.addCleanup(patcher.stop)
268 tempfile.tempdir = None # force `gettempdir` to reinitialize from env
269 self.info_dir = manager._get_info_dir() # ensure that directory exists
270
271 def _list_info_dir(self):
272 return os.listdir(self.info_dir)

Callers

nothing calls this directly

Calls 2

get_temp_dirMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected