Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucapagliara committed Feb 12, 2025
1 parent 7e766db commit 4acf4f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_agency.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, agent: Agent) -> None:
super().__init__(agent)
self.published_events: list[tuple[Any, Any]] = []

def trigger_event(self, event_publication: Any, event_data: Any) -> None:
def publish(self, event_publication: Any, event_data: Any) -> None:
self.published_events.append((event_publication, event_data))

sm_transition_event = StateAgentPublishing.sm_transition_event
Expand Down
4 changes: 2 additions & 2 deletions tests/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, agent: Agent) -> None:
super().__init__(agent)
self.published_events: list[tuple[Any, Any]] = []

def trigger_event(self, event_publication: Any, event_data: Any) -> None:
def publish(self, event_publication: Any, event_data: Any) -> None:
self.published_events.append((event_publication, event_data))

# Override the event publication to use our mock event class
Expand Down Expand Up @@ -242,7 +242,7 @@ def test_agent_logger() -> None:
"""Test agent logger initialization and access."""
logger = MockAgent.logger()
assert logger is not None
assert logger.name == "agent"
assert logger.name == "MockAgent"
# Test that subsequent calls return the same logger
assert MockAgent.logger() is logger

Expand Down

0 comments on commit 4acf4f7

Please sign in to comment.