Skip to content

VCR util for unit tests#25

Merged
Andrew Kent (realark) merged 2 commits intomainfrom
ark/vcr-wiremock
Jan 6, 2026
Merged

VCR util for unit tests#25
Andrew Kent (realark) merged 2 commits intomainfrom
ark/vcr-wiremock

Conversation

@realark
Copy link
Copy Markdown
Collaborator

@realark Andrew Kent (realark) commented Dec 31, 2025

swap out explicit mocks with VCR util to record+replay AI provider endpoints

tests are mostly unchanged. I had to update a few assertions to account for non-deterministic responses from the AI vendors (e.g. assert > 0 tokens instead of an exact token count).

also swaped out the test harness span exporter with a custom unit test span exporter which allows waiting for a min span count

@realark Andrew Kent (realark) force-pushed the ark/vcr-wiremock branch 3 times, most recently from ca11487 to 919e29d Compare December 31, 2025 05:44
@realark Andrew Kent (realark) marked this pull request as ready for review December 31, 2025 05:52
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

David Elner (@delner) -- this is follow-up from the langchain PR. I ended up making my own span exporter that allows waiting for spans without sleeping

@realark Andrew Kent (realark) merged commit be1024d into main Jan 6, 2026
1 check passed
@realark Andrew Kent (realark) deleted the ark/vcr-wiremock branch January 6, 2026 02:26
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