Files
8.-samopisnyy-poiskovyy-age…/tests/test_agent.py
T
kuzakhmetovartur 1039c7065c
CI / build (3.1) (push) Has been cancelled
CI / build (3.11) (push) Has been cancelled
CI / build (3.8) (push) Has been cancelled
CI / build (3.9) (push) Has been cancelled
feat: solution for '8. Самописный поисковый агент на основе deep agents from scratch'
2026-06-30 16:22:52 +03:00

17 lines
282 B
Python

"""
Unit tests for the base Agent class.
"""
import pytest
from src.agent import Agent
class DummyAgent(Agent):
def act(self, state):
return state
def test_dummy_agent():
agent = DummyAgent()
assert agent.act(5) == 5
assert agent.act("hello") == "hello"