Skip to content

fix(tests): remove duplicate test_python_function_adapter_non_dict_structured_raises#2

Closed
regokan wants to merge 1 commit into
mainfrom
fix/duplicate-test-non-dict-structured
Closed

fix(tests): remove duplicate test_python_function_adapter_non_dict_structured_raises#2
regokan wants to merge 1 commit into
mainfrom
fix/duplicate-test-non-dict-structured

Conversation

@regokan
Copy link
Copy Markdown
Owner

@regokan regokan commented May 20, 2026

Summary

  • Tier 2 parallel example dispatch landed two PRs (structured_extraction and text_to_sql) that each independently added the same test function name to the shared tests/unit/test_adapters/test_python_function_adapter.py
  • Ruff F811 caught the redefinition on main once both merged; CI red on the most recent commits
  • This deletes the second (line 200) copy and keeps the first (line 131); both cover the same case so no coverage lost

Test plan

  • uv run --no-sync ruff check . → All checks passed
  • CI green on this PR

…ructured_raises

The Tier 2 parallel example dispatch resulted in two PRs (structured_extraction
and text_to_sql) each independently adding the same test function name to the
shared test_python_function_adapter.py. The first PR (structured_extraction)
added it at line 131 with a list-returning async agent; subsequent PRs added a
second definition at line 200 with a string-returning sync agent. Both cover
the same case (structured field is not a dict -> AdapterError); the first
definition is canonical.

Ruff F811 caught the redefinition on main, breaking CI for the second and
third PRs that landed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@regokan
Copy link
Copy Markdown
Owner Author

regokan commented May 20, 2026

Superseded by ea37bb0 on main, which renames the duplicate test (test_python_function_adapter_str_structured_raises) instead of deleting it — the two tests exercise different non-dict shapes (list vs string), so renaming preserves the second data point while this PR would drop it. Ruff is green on main; no further action needed.

@regokan regokan closed this May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant