mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
fix(agent/tests): Fix code execution tests
- Add unique agent ID to mock agent in `conftest.py`
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
from tempfile import TemporaryDirectory
|
||||
|
||||
@@ -129,6 +130,7 @@ def agent(
|
||||
agent_settings = AgentSettings(
|
||||
name=Agent.default_settings.name,
|
||||
description=Agent.default_settings.description,
|
||||
agent_id=f"AutoGPT-test-agent-{str(uuid.uuid4())[:8]}",
|
||||
ai_profile=ai_profile,
|
||||
config=AgentConfiguration(
|
||||
fast_llm=config.fast_llm,
|
||||
|
||||
Reference in New Issue
Block a user