feat: + __init__.py

feat: +import_git_repo
This commit is contained in:
莘权 马 2024-03-28 16:59:09 +08:00
parent 05a4967e0b
commit 1a88b3fc19
7 changed files with 103 additions and 7 deletions

View file

@ -12,6 +12,7 @@ from metagpt.tools.libs import (
write_prd,
write_project_plan,
)
from metagpt.tools.libs.software_development import import_git_repo
@pytest.mark.asyncio
@ -53,5 +54,12 @@ NameError: name 'x' is not defined
assert git_log
@pytest.mark.asyncio
async def test_import_repo():
url = "https://github.com/spec-first/connexion.git"
path = await import_git_repo(url)
assert path
if __name__ == "__main__":
pytest.main([__file__, "-s"])