fix tests

This commit is contained in:
geekan 2023-07-07 13:25:01 +08:00
parent 2b73b758ad
commit bcfe49eb2f

View file

@ -14,7 +14,7 @@ def get_project_root():
while True:
if (current_path / '.git').exists() or \
(current_path / '.project_root').exists() or \
(current_path.name.lower() == 'metagpt'):
(current_path.name.lower() == 'metagpt' and current_path.parent.name.lower() != 'tests'):
return current_path
parent_path = current_path.parent
if parent_path == current_path: