FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test(models): remove obsolete shadowed instruction tests by kikifrost · Pull Request #6922 · google/adk-python · GitHub

test(models): remove obsolete shadowed instruction tests - #6922

Open
kikifrost wants to merge 1 commit into
google:mainfrom
kikifrost:tests/remove-superseded-append-instructions-tests
Open

test(models): remove obsolete shadowed instruction tests#6922
kikifrost wants to merge 1 commit into
google:mainfrom
kikifrost:tests/remove-superseded-append-instructions-tests

Conversation

Copy link
Copy Markdown

Problem

tests/unittests/models/test_llm_request.py defines four
test_append_instructions_* tests twice. Python keeps the later bindings, so
the older definitions are never collected.

Those older assertions target the previous types.Content behavior. Renaming
them so pytest can collect them produces 4 failures while the 33 current tests
continue to pass.

Change

Remove the four superseded definitions. The updated tests for the current
string-only append_instructions behavior remain unchanged, and the collected
test count stays at 33.

Testing plan

  • Renamed the shadowed tests to expose them: 4 failed, 33 passed
  • pytest tests/unittests/models/test_llm_request.py -q: 33 passed
  • pre-commit run --files tests/unittests/models/test_llm_request.py: all checks passed

Four superseded append_instructions tests were hidden by later definitions with the same names. Remove the obsolete copies so the collected tests reflect the current string-only behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL