MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / tearDown

Method tearDown

tests/test_codeyignore.py:16–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.secret_dir = Path("secrets")
15
16 def tearDown(self):
17 if self.env_file.exists(): os.remove(self.env_file)
18 if self.ignore_file.exists(): os.remove(self.ignore_file)
19 if self.log_file.exists(): os.remove(self.log_file)
20 if self.secret_dir.exists():
21 for f in self.secret_dir.iterdir():
22 os.remove(f)
23 os.rmdir(self.secret_dir)
24 _mem.clear()
25
26 def test_default_ignore(self):
27 res = load_file(".env")

Callers

nothing calls this directly

Calls 3

existsMethod · 0.80
removeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected