checkpoint: massive refactor
This commit is contained in:
@@ -8,15 +8,15 @@ 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
|
||||
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
|
||||
agent = UserSimAgent(hook_client=None)
|
||||
called = False
|
||||
|
||||
def action():
|
||||
nonlocal called
|
||||
called = True
|
||||
agent.perform_action_with_delay(action)
|
||||
assert called is True
|
||||
|
||||
Reference in New Issue
Block a user