mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-02 20:32:38 +02:00
fix bugs
This commit is contained in:
parent
8af1488613
commit
4de8fa3682
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