mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
fix bugs
This commit is contained in:
parent
cab6ee877d
commit
60969b6aed
15 changed files with 33 additions and 24 deletions
|
|
@ -146,7 +146,8 @@ def setup_and_teardown_git_repo(request):
|
|||
|
||||
# Destroy git repo at the end of the test session.
|
||||
def fin():
|
||||
CONTEXT.git_repo.delete_repository()
|
||||
if CONTEXT.git_repo:
|
||||
CONTEXT.git_repo.delete_repository()
|
||||
|
||||
# Register the function for destroying the environment.
|
||||
request.addfinalizer(fin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue