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

Method temp_dir_cleanup

test/test_box.py:54–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52class TestBox:
53 @pytest.fixture(autouse=True)
54 def temp_dir_cleanup(self):
55 shutil.rmtree(str(tmp_dir), ignore_errors=True)
56 try:
57 os.mkdir(str(tmp_dir))
58 except OSError:
59 pass
60 yield
61 shutil.rmtree(str(tmp_dir), ignore_errors=True)
62
63 @pytest.mark.parametrize("removal", ["item", "attribute", "converted_attribute", "pop", "popitem"])
64 def test_removed_key_releases_conversion_alias(self, removal):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected