Skip to content

test(pydantic-ai): Use FunctionModel for testing output data transformations - #7036

Merged
alexander-alderman-webb merged 2 commits into
masterfrom
webb/pydantic-ai-reasoning-parts
Aug 5, 2026
Merged

test(pydantic-ai): Use FunctionModel for testing output data transformations#7036
alexander-alderman-webb merged 2 commits into
masterfrom
webb/pydantic-ai-reasoning-parts

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description

Removing some mocks by using FunctionModel() with pydantic-ai types.

Removed both test_model_response_without_parts() and test_set_output_data_without_prompts(), since they don't assert anything meaningful.

Issues

Reminders

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

96984 passed | ⏭️ 6239 skipped | Total: 103223 | Pass Rate: 93.96% | Execution Time: 349m 30s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +10
Passed Tests 📈 +10
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2504 uncovered lines.
❌ Project coverage is 89.91%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.94%    89.91%    -0.03%
==========================================
  Files          193       193         —
  Lines        24828     24828         —
  Branches      8930      8930         —
==========================================
+ Hits         22331     22324        -7
- Misses        2497      2504        +7
- Partials      1414      1415        +1

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review August 5, 2026 08:18
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner August 5, 2026 08:18
Base automatically changed from webb/pydantic-ai-mypy to master August 5, 2026 12:24
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/pydantic-ai-reasoning-parts branch from 63cad6f to bff16f3 Compare August 5, 2026 12:24
@alexander-alderman-webb
alexander-alderman-webb merged commit 849af60 into master Aug 5, 2026
145 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/pydantic-ai-reasoning-parts branch August 5, 2026 12:39
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
…ormations (getsentry#7036)

Remove `MagicMock` instances by using `FunctionModel` with `pydantic-ai` types to emulate model output.
Also remove both `test_model_response_without_parts()` and `test_set_output_data_without_prompts()`, since they don't assert anything meaningful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants