MCPcopy Create free account
hub / github.com/cdgriffith/Box / temp_dir_cleanup

Method temp_dir_cleanup

test/test_box_list.py:24–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22class TestBoxList:
23 @pytest.fixture(autouse=True)
24 def temp_dir_cleanup(self):
25 shutil.rmtree(str(tmp_dir), ignore_errors=True)
26 try:
27 os.mkdir(str(tmp_dir))
28 except OSError:
29 pass
30 yield
31 shutil.rmtree(str(tmp_dir), ignore_errors=True)
32
33 def test_box_list(self):
34 new_list = BoxList({"item": x} for x in range(0, 10))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected