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

Method temp_dir_cleanup

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected