Skip to content

Commit

Permalink
force MultiAgentsTests to dump data into tmp dir, not into repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sysradium committed Feb 13, 2025
1 parent 8b247fe commit 0b82035
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
populate_template,
)
from smolagents.default_tools import DuckDuckGoSearchTool, PythonInterpreterTool, VisitWebpageTool
from smolagents.memory import PlanningStep, ActionStep
from smolagents.memory import ActionStep, PlanningStep
from smolagents.models import (
ChatMessage,
ChatMessageToolCall,
Expand Down Expand Up @@ -796,6 +796,10 @@ def test_call_with_provide_run_summary(self, provide_run_summary):


class MultiAgentsTests(unittest.TestCase):
@pytest.fixture(autouse=True)
def initdir(self, tmp_path, monkeypatch):
monkeypatch.chdir(tmp_path)

def test_multiagents_save(self):
model = HfApiModel("Qwen/Qwen2.5-Coder-32B-Instruct", max_tokens=2096, temperature=0.5)

Expand Down

0 comments on commit 0b82035

Please sign in to comment.