mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 06:54:22 +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 os
|
||||||
|
import uuid
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
|
|
||||||
@@ -129,6 +130,7 @@ def agent(
|
|||||||
agent_settings = AgentSettings(
|
agent_settings = AgentSettings(
|
||||||
name=Agent.default_settings.name,
|
name=Agent.default_settings.name,
|
||||||
description=Agent.default_settings.description,
|
description=Agent.default_settings.description,
|
||||||
|
agent_id=f"AutoGPT-test-agent-{str(uuid.uuid4())[:8]}",
|
||||||
ai_profile=ai_profile,
|
ai_profile=ai_profile,
|
||||||
config=AgentConfiguration(
|
config=AgentConfiguration(
|
||||||
fast_llm=config.fast_llm,
|
fast_llm=config.fast_llm,
|
||||||
|
|||||||
Reference in New Issue
Block a user