Skip to content

Commit

Permalink
Re-add ToolTesterMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
aymeric-roucher committed Sep 13, 2024
1 parent 98f5463 commit d6f703f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/agents/test_final_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
from transformers.agents.default_tools import FinalAnswerTool
from transformers.testing_utils import get_tests_dir, require_torch

from .test_tools_common import ToolTesterMixin


if is_torch_available():
import torch


class FinalAnswerToolTester(unittest.TestCase):
class FinalAnswerToolTester(unittest.TestCase, ToolTesterMixin):
def setUp(self):
self.inputs = {"answer": "Final answer"}
self.tool = FinalAnswerTool()
Expand Down

0 comments on commit d6f703f

Please sign in to comment.