Repository navigation
refactor(ai): remove the agent test switches and test models - #4017
Merged
dan-petty merged 3 commits intoNov 7, 2026
Merged
Conversation
The branch built a pydantic-ai TestModel in src for the model name test. Tests pass a TestModel instance instead. The embedding cost test uses the real pricing registry and patches nothing. A floor test proves that a model call with no model_fake fails at teardown.
Owner
Author
|
Test and check results.
Review findings.
|
dan-petty
marked this pull request as ready for review
November 7, 2026 16:58
dan-petty
deleted the
refactor/3757-remove-agent-test-switches-and-test-models
branch
November 7, 2026 17:04
dan-petty
pushed a commit
that referenced
this pull request
Nov 7, 2026
🤖 I have created a release *beep* *boop* --- ## [0.83.1](v0.83.0...v0.83.1) (2026-11-07) ### Code Refactoring * **ai:** remove the agent test switches and test models ([#4017](#4017)) ([226394c](226394c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The model name test no longer builds a pydantic-ai
TestModelinsideresolve_pydantic_ai_model. Tests now pass aTestModelinstance. The embedding cost test uses the real pricing registry and patches nothing. A new floor test proves that a model call with nomodel_fakefails at teardown. A new pricing test shows that the provider and the request time decide the cost of a request.This removes the test branches from product code, as the parent tracker #1307 requires.
Closes #3757
Change:
openspec/changes/archive/2026-11-07-3757-remove-agent-test-switches-and-test-models/