Skip to content

Update test suite to cope with Pydantic 2.13 and update pinned dependencies.#317

Merged
rwb27 merged 2 commits intomainfrom
update-pydantic
Apr 27, 2026
Merged

Update test suite to cope with Pydantic 2.13 and update pinned dependencies.#317
rwb27 merged 2 commits intomainfrom
update-pydantic

Conversation

@rwb27
Copy link
Copy Markdown
Collaborator

@rwb27 rwb27 commented Apr 22, 2026

This cherry-picks a commit from #316 to fix the test suite for Pydantic 2.13.

This does not change pyproject.toml as pydantic was already specified as ~= 2.12 so it permitted 2.13 already.

This PR also updates dev-requirements.txt (by re-locking dependencies based on the same pyproject.toml).

There's one warning in the test suite, which is already fixed in #316. It's not an isolated, cherry-pickable commit, so I'll live with the warning in the hope that we decide to merge #316 and pull it out if we decide not to.

rwb27 added 2 commits April 22, 2026 10:33
The import error message changed slightly, now the test should work with current and new versions.
Note: this adds a warning in the tests, which is dealt with in #316.
@barecheck
Copy link
Copy Markdown

barecheck Bot commented Apr 22, 2026

Barecheck - Code coverage report

Total: 96.64%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@rwb27 rwb27 requested a review from julianstirling April 27, 2026 11:15
@rwb27 rwb27 changed the title Update pydantic (and other dependencies) Update test suite to cope with Pydantic 2.13 and update pinned dependencies. Apr 27, 2026
Copy link
Copy Markdown
Contributor

@julianstirling julianstirling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Just noting that this enable 2.13 to run but doesn't change the version to force at least 2.13.

Forcing 2.13 would probably fix #283

@rwb27 rwb27 merged commit 4d38566 into main Apr 27, 2026
15 checks passed
@rwb27 rwb27 deleted the update-pydantic branch April 27, 2026 16:01
@rwb27
Copy link
Copy Markdown
Collaborator Author

rwb27 commented Apr 27, 2026

Thanks - I'll get this in so I can rebase my branches, and make another PR to force a Pydantic upgrade.

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