feat(simulation): implement UserSimAgent for human-like interaction

This commit is contained in:
2026-02-23 19:20:24 -05:00
parent f36d539c36
commit d326242667
2 changed files with 69 additions and 0 deletions

22
tests/test_user_agent.py Normal file
View File

@@ -0,0 +1,22 @@
import pytest
import sys
import os
# Ensure project root is in path for imports
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from simulation.user_agent import UserSimAgent
def test_user_agent_instantiation():
agent = UserSimAgent(hook_client=None)
assert agent is not None
def test_perform_action_with_delay():
agent = UserSimAgent(hook_client=None)
called = False
def action():
nonlocal called
called = True
agent.perform_action_with_delay(action)
assert called is True