mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 02:23:52 +02:00
1. Refactor code to centralize unittest directory pattern using a fixture in conftest.py
2. Setup incremental workdir for testing in test_write_code.py
This commit is contained in:
parent
eb3c6d14f9
commit
1c7f63857f
6 changed files with 40 additions and 51 deletions
|
|
@ -133,7 +133,7 @@ class ProjectRepo(FileRepository):
|
|||
code_files = self.with_src_path(path=git_workdir / git_workdir.name).srcs.all_files
|
||||
if not code_files:
|
||||
return False
|
||||
return True
|
||||
return bool(code_files)
|
||||
|
||||
def with_src_path(self, path: str | Path) -> ProjectRepo:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue