12 lines
357 B
Python
12 lines
357 B
Python
from deep_search_agent import ScratchDeepAgent
|
|
|
|
|
|
def test_agent_creates_and_flushes_virtual_files(tmp_path):
|
|
agent = ScratchDeepAgent()
|
|
report = agent.run("LangGraph")
|
|
written = agent.flush_files(str(tmp_path))
|
|
|
|
assert "Search report" in report
|
|
assert "report.md" in agent.virtual_files
|
|
assert all(path.exists() for path in written)
|