Skip to content

Commit d672349

Browse files
jsorefwuliang229
authored andcommitted
chore: Fix spelling in tests
Merge #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 - #3382 (comment) Co-authored-by: Liang Wu <[email protected]> COPYBARA_INTEGRATE_REVIEW=#3402 from jsoref:spelling-tests 3cf0439 PiperOrigin-RevId: 829035089
1 parent 1819ecb commit d672349

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

tests/integration/fixture/trip_planner_agent/trip_inquiry_multi_turn.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
{
9090
"id": null,
9191
"args": {
92-
"agent_name": "indentify_agent"
92+
"agent_name": "identify_agent"
9393
},
9494
"name": "transfer_to_agent"
9595
}

tests/unittests/agents/test_remote_a2a_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ async def test_handle_a2a_response_success_with_message(self):
697697

698698
@pytest.mark.asyncio
699699
async def test_handle_a2a_response_with_task_completed_and_no_update(self):
700-
"""Test successful A2A response handling with non-streeaming task and no update."""
700+
"""Test successful A2A response handling with non-streaming task and no update."""
701701
mock_a2a_task = Mock(spec=A2ATask)
702702
mock_a2a_task.id = "task-123"
703703
mock_a2a_task.context_id = "context-123"
@@ -1149,7 +1149,7 @@ async def test_handle_a2a_response_success_with_message(self):
11491149

11501150
@pytest.mark.asyncio
11511151
async def test_handle_a2a_response_with_task_completed_and_no_update(self):
1152-
"""Test successful A2A response handling with non-streeaming task and no update."""
1152+
"""Test successful A2A response handling with non-streaming task and no update."""
11531153
mock_a2a_task = Mock(spec=A2ATask)
11541154
mock_a2a_task.id = "task-123"
11551155
mock_a2a_task.context_id = "context-123"

tests/unittests/cli/test_fast_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def test_update_session(test_app, create_test_session):
700700

701701

702702
def test_patch_session_not_found(test_app, test_session_info):
703-
"""Test patching a non-existent session."""
703+
"""Test patching a nonexistent session."""
704704
info = test_session_info
705705
url = f"/apps/{info['app_name']}/users/{info['user_id']}/sessions/nonexistent"
706706

tests/unittests/cli/utils/test_agent_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def test_special_agent_not_found_error(self):
731731

732732
loader = AgentLoader(str(regular_agents_dir))
733733

734-
# Try to load non-existent special agent
734+
# Try to load nonexistent special agent
735735
with pytest.raises(ValueError) as exc_info:
736736
loader.load_agent("__nonexistent_special")
737737

tests/unittests/code_executors/test_agent_engine_sandbox_code_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_init_with_sandbox_overrides_throws_error(self):
4646
"""Tests that class attributes can be overridden at instantiation."""
4747
with pytest.raises(ValueError):
4848
AgentEngineSandboxCodeExecutor(
49-
sandbox_resource_name="projects/123/locations/us-central1/reasoningEgines/456/sandboxes/789",
49+
sandbox_resource_name="projects/123/locations/us-central1/reasoningEngines/456/sandboxes/789",
5050
)
5151

5252
def test_init_with_agent_engine_overrides_throws_error(self):

tests/unittests/evaluation/test_hallucinations_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_parse_sentences_with_newlines(self):
105105
"""Tests _parse_sentences method with sentences containing newlines."""
106106
text_with_newlines = """<sentence>This is a sentence with
107107
\n\nnewlines.</sentence>
108-
<sentence>This sentence will not be parsed</stenence>"""
108+
<sentence>This sentence won't be parsed because tag is misspelled</stenence>"""
109109
assert _parse_sentences(text_with_newlines) == [
110110
"This is a sentence with\n\n\nnewlines."
111111
]

tests/unittests/telemetry/test_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def test_tracer_start_as_current_span(
9393
9494
Additionally tests if each async generator invoked is wrapped in Aclosing.
9595
This is necessary because instrumentation utilizes contextvars, which ran into "ContextVar was created in a different Context" errors,
96-
when a given coroutine gets indeterminitely suspended.
96+
when a given coroutine gets indeterminately suspended.
9797
"""
9898
firstiter, finalizer = sys.get_asyncgen_hooks()
9999

tests/unittests/tools/openapi_tool/openapi_spec_parser/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ components:
634634
requestId:
635635
description: |-
636636
The client-generated unique ID for this request.
637-
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.
637+
Clients should regenerate this ID for every new request. If an ID provided is the same as the previous request, the request is ignored.
638638
type: string
639639
status:
640640
$ref: "#/components/schemas/ConferenceRequestStatus"

tests/unittests/tools/test_base_google_credentials_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def test_get_valid_credentials_with_existing_non_oauth_creds(
107107
"""Test that existing non-oauth credentials are returned immediately.
108108
109109
When credentials are of non-oauth type, no refresh or OAuth flow
110-
is triggered irrespective of whether it is valid or not.
110+
is triggered irrespective of whether or not it is valid.
111111
"""
112112
# Create mock credentials that are already valid
113113
mock_creds = Mock(spec=AuthCredentials)

0 commit comments

Comments
 (0)