Skip to content

Commit c427b6c

Browse files
committed
chore: Fix spelling: nonexistent
Signed-off-by: Josh Soref <[email protected]>
1 parent f8d5071 commit c427b6c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/google/adk/agents/base_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def clone(
174174
invalid_fields = set(update) - allowed_fields
175175
if invalid_fields:
176176
raise ValueError(
177-
f'Cannot update non-existent fields in {self.__class__.__name__}:'
177+
f'Cannot update nonexistent fields in {self.__class__.__name__}:'
178178
f' {invalid_fields}'
179179
)
180180

tests/unittests/agents/test_agent_clone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_clone_invalid_field():
270270
"""Test that cloning with invalid fields raises an error."""
271271
original = LlmAgent(name="test_agent", description="Test agent")
272272

273-
with pytest.raises(ValueError, match="Cannot update non-existent fields"):
273+
with pytest.raises(ValueError, match="Cannot update nonexistent fields"):
274274
original.clone(update={"invalid_field": "value"})
275275

276276

tests/unittests/agents/test_remote_a2a_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async def test_resolve_agent_card_from_file_success(self):
273273

274274
@pytest.mark.asyncio
275275
async def test_resolve_agent_card_from_file_not_found(self):
276-
"""Test agent card resolution from non-existent file raises error."""
276+
"""Test agent card resolution from nonexistent file raises error."""
277277
agent = RemoteA2aAgent(
278278
name="test_agent", agent_card="/path/to/nonexistent.json"
279279
)

tests/unittests/auth/exchanger/test_credential_exchanger_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_get_exchanger_returns_correct_instance(self):
126126
assert isinstance(retrieved_exchanger, BaseCredentialExchanger)
127127

128128
def test_get_exchanger_nonexistent_type_returns_none(self):
129-
"""Test that get_exchanger returns None for non-existent credential types."""
129+
"""Test that get_exchanger returns None for nonexistent credential types."""
130130
registry = CredentialExchangerRegistry()
131131

132132
# Try to get an exchanger that was never registered

tests/unittests/auth/test_auth_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def test_get_auth_response_exists(
397397
assert result == oauth2_credentials_with_auth_uri
398398

399399
def test_get_auth_response_not_exists(self, auth_config):
400-
"""Test retrieving a non-existent auth response from state."""
400+
"""Test retrieving a nonexistent auth response from state."""
401401
handler = AuthHandler(auth_config)
402402
state = MockState()
403403

tests/unittests/cli/utils/test_agent_loader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def test_agent_not_found_error(self):
288288
loader = AgentLoader(temp_dir)
289289
agents_dir = temp_dir # For use in the expected message string
290290

291-
# Try to load non-existent agent
291+
# Try to load nonexistent agent
292292
with pytest.raises(ValueError) as exc_info:
293293
loader.load_agent("nonexistent_agent")
294294

@@ -330,12 +330,12 @@ def __init__(self):
330330
assert "No root_agent found for 'broken_agent'" in str(exc_info.value)
331331

332332
def test_agent_internal_module_not_found_error(self):
333-
"""Test error when an agent tries to import a non-existent module."""
333+
"""Test error when an agent tries to import a nonexistent module."""
334334
with tempfile.TemporaryDirectory() as temp_dir:
335335
temp_path = Path(temp_dir)
336336
agent_name = "importer_agent"
337337

338-
# Create agent that imports a non-existent module
338+
# Create agent that imports a nonexistent module
339339
agent_file = temp_path / f"{agent_name}.py"
340340
agent_file.write_text(dedent(f"""
341341
from google.adk.agents.base_agent import BaseAgent
@@ -528,7 +528,7 @@ def test_yaml_agent_not_found_error(self):
528528
loader = AgentLoader(temp_dir)
529529
agents_dir = temp_dir # For use in the expected message string
530530

531-
# Try to load non-existent YAML agent
531+
# Try to load nonexistent YAML agent
532532
with pytest.raises(ValueError) as exc_info:
533533
loader.load_agent("nonexistent_yaml_agent")
534534

0 commit comments

Comments
 (0)