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:
mannaandpoem 2024-03-02 21:10:45 +08:00
parent eb3c6d14f9
commit 1c7f63857f
6 changed files with 40 additions and 51 deletions

View file

@ -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: