You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
chore: Fix spelling in tests
Merge https://github.com/google/adk-python/pull/3402 This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling) Note: while I use tooling to identify errors, the tooling doesn't _actually_ provide the corrections, I'm picking them on my own. I'm a human, and I may make mistakes. ### Testing Plan The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/19056081305/attempts/1#summary-54426435973 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/19056081446/attempts/1#summary-54426436321 **Unit Tests:** - [ ] I have added or updated unit tests for my change. - [ ] All unit tests pass locally. _Please include a summary of passed `pytest` results._ **Manual End-to-End (E2E) Tests:** _Please provide instructions on how to manually test your changes, including any necessary setup or configuration. Please provide logs or screenshots to help reviewers better understand the fix._ ### Checklist - [x] I have read the [CONTRIBUTING.md](https://github.com/google/adk-python/blob/main/CONTRIBUTING.md) document. - [x] I have performed a self-review of my own code. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] New and existing unit tests pass locally with my changes. - [ ] I have manually tested my changes end-to-end. - [ ] Any dependent changes have been merged and published in downstream modules. ### Additional context - https://github.com/google/adk-python/pull/3382#issuecomment-3488654110 Co-authored-by: Liang Wu <wuliang@google.com> COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3402 from jsoref:spelling-tests 3cf0439d0584e4557179c25596aadf3b5b7c3fa8 PiperOrigin-RevId: 829035089
This commit is contained in:
committed by
Copybara-Service
parent
1819ecb4b8
commit
d672349ddf
@@ -89,7 +89,7 @@
|
||||
{
|
||||
"id": null,
|
||||
"args": {
|
||||
"agent_name": "indentify_agent"
|
||||
"agent_name": "identify_agent"
|
||||
},
|
||||
"name": "transfer_to_agent"
|
||||
}
|
||||
|
||||
@@ -697,7 +697,7 @@ class TestRemoteA2aAgentMessageHandling:
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_handle_a2a_response_with_task_completed_and_no_update(self):
|
||||
"""Test successful A2A response handling with non-streeaming task and no update."""
|
||||
"""Test successful A2A response handling with non-streaming task and no update."""
|
||||
mock_a2a_task = Mock(spec=A2ATask)
|
||||
mock_a2a_task.id = "task-123"
|
||||
mock_a2a_task.context_id = "context-123"
|
||||
@@ -1149,7 +1149,7 @@ class TestRemoteA2aAgentMessageHandlingFromFactory:
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_handle_a2a_response_with_task_completed_and_no_update(self):
|
||||
"""Test successful A2A response handling with non-streeaming task and no update."""
|
||||
"""Test successful A2A response handling with non-streaming task and no update."""
|
||||
mock_a2a_task = Mock(spec=A2ATask)
|
||||
mock_a2a_task.id = "task-123"
|
||||
mock_a2a_task.context_id = "context-123"
|
||||
|
||||
@@ -700,7 +700,7 @@ def test_update_session(test_app, create_test_session):
|
||||
|
||||
|
||||
def test_patch_session_not_found(test_app, test_session_info):
|
||||
"""Test patching a non-existent session."""
|
||||
"""Test patching a nonexistent session."""
|
||||
info = test_session_info
|
||||
url = f"/apps/{info['app_name']}/users/{info['user_id']}/sessions/nonexistent"
|
||||
|
||||
|
||||
@@ -731,7 +731,7 @@ class TestAgentLoader:
|
||||
|
||||
loader = AgentLoader(str(regular_agents_dir))
|
||||
|
||||
# Try to load non-existent special agent
|
||||
# Try to load nonexistent special agent
|
||||
with pytest.raises(ValueError) as exc_info:
|
||||
loader.load_agent("__nonexistent_special")
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class TestAgentEngineSandboxCodeExecutor:
|
||||
"""Tests that class attributes can be overridden at instantiation."""
|
||||
with pytest.raises(ValueError):
|
||||
AgentEngineSandboxCodeExecutor(
|
||||
sandbox_resource_name="projects/123/locations/us-central1/reasoningEgines/456/sandboxes/789",
|
||||
sandbox_resource_name="projects/123/locations/us-central1/reasoningEngines/456/sandboxes/789",
|
||||
)
|
||||
|
||||
def test_init_with_agent_engine_overrides_throws_error(self):
|
||||
|
||||
@@ -105,7 +105,7 @@ class TestParseSentences:
|
||||
"""Tests _parse_sentences method with sentences containing newlines."""
|
||||
text_with_newlines = """<sentence>This is a sentence with
|
||||
\n\nnewlines.</sentence>
|
||||
<sentence>This sentence will not be parsed</stenence>"""
|
||||
<sentence>This sentence won't be parsed because tag is misspelled</stenence>"""
|
||||
assert _parse_sentences(text_with_newlines) == [
|
||||
"This is a sentence with\n\n\nnewlines."
|
||||
]
|
||||
|
||||
@@ -93,7 +93,7 @@ async def test_tracer_start_as_current_span(
|
||||
|
||||
Additionally tests if each async generator invoked is wrapped in Aclosing.
|
||||
This is necessary because instrumentation utilizes contextvars, which ran into "ContextVar was created in a different Context" errors,
|
||||
when a given coroutine gets indeterminitely suspended.
|
||||
when a given coroutine gets indeterminately suspended.
|
||||
"""
|
||||
firstiter, finalizer = sys.get_asyncgen_hooks()
|
||||
|
||||
|
||||
@@ -634,7 +634,7 @@ components:
|
||||
requestId:
|
||||
description: |-
|
||||
The client-generated unique ID for this request.
|
||||
Clients should regenerate this ID for every new request. If an ID provided is the same as for the previous request, the request is ignored.
|
||||
Clients should regenerate this ID for every new request. If an ID provided is the same as the previous request, the request is ignored.
|
||||
type: string
|
||||
status:
|
||||
$ref: "#/components/schemas/ConferenceRequestStatus"
|
||||
|
||||
@@ -107,7 +107,7 @@ class TestGoogleCredentialsManager:
|
||||
"""Test that existing non-oauth credentials are returned immediately.
|
||||
|
||||
When credentials are of non-oauth type, no refresh or OAuth flow
|
||||
is triggered irrespective of whether it is valid or not.
|
||||
is triggered irrespective of whether or not it is valid.
|
||||
"""
|
||||
# Create mock credentials that are already valid
|
||||
mock_creds = Mock(spec=AuthCredentials)
|
||||
|
||||
Reference in New Issue
Block a user