load_file should add file to working memory when content provided.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected