feat: +rfc197 example

This commit is contained in:
莘权 马 2024-03-06 19:30:06 +08:00
parent 5cae13fd0a
commit 3fee7a5368
6 changed files with 118 additions and 47 deletions

View file

@ -14,7 +14,6 @@ from metagpt.actions.rebuild_class_view import RebuildClassView
from metagpt.llm import LLM
@pytest.mark.skip
@pytest.mark.asyncio
async def test_rebuild(context):
action = RebuildClassView(

View file

@ -47,6 +47,8 @@ async def test_rebuild(context, mocker):
context=context,
)
await action.run()
rows = await action.graph_db.select()
assert rows
assert context.repo.docs.graph_repo.changed_files