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

Method test_load_file_with_content

tests/test_memory.py:240–246  ·  view source on GitHub ↗

load_file should add file to working memory when content provided.

(self)

Source from the content-addressed store, hash-verified

238 shutil.rmtree(self.temp_dir, ignore_errors=True)
239
240 def test_load_file_with_content(self):
241 """load_file should add file to working memory when content provided."""
242 result = self.memory.load_file("test.py", "print('hello')")
243 self.assertTrue(result)
244 files = self.memory.list_files()
245 # Check that some file with test.py in path is loaded
246 self.assertTrue(any("test.py" in f for f in files))
247
248 def test_load_file_reads_from_disk(self):
249 """load_file should read from disk if content not provided."""

Callers

nothing calls this directly

Calls 2

load_fileMethod · 0.80
list_filesMethod · 0.80

Tested by

no test coverage detected