Skip to content

Commit 0d63430

Browse files
committed
test: Update tests to include new case
1 parent 5bee33c commit 0d63430

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/unittests/a2a/utils/test_agent_card_builder.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,17 @@ def test_replace_pronouns_partial_matches(self):
403403
# Assert
404404
assert result == "youth, yourself, yourname" # No changes
405405

406+
def test_replace_pronouns_phrases(self):
407+
"""Test _replace_pronouns with phrases that should be replaced."""
408+
# Arrange
409+
text = "You are a helpful chatbot"
410+
411+
# Act
412+
result = _replace_pronouns(text)
413+
414+
# Assert
415+
assert result == "I am a helpful chatbot"
416+
406417
def test_get_default_description_llm_agent(self):
407418
"""Test _get_default_description for LlmAgent."""
408419
# Arrange

0 commit comments

Comments
 (0)