test(integrations): per-version VCR cassette directories#299
Merged
Abhijeet Prasad (AbhiPrasad) merged 7 commits intomainfrom Apr 15, 2026
Merged
test(integrations): per-version VCR cassette directories#299Abhijeet Prasad (AbhiPrasad) merged 7 commits intomainfrom
Abhijeet Prasad (AbhiPrasad) merged 7 commits intomainfrom
Conversation
Nox sessions now pass BRAINTRUST_TEST_PACKAGE_VERSION to pytest so each version under test records and replays cassettes from its own subdirectory (e.g. cassettes/latest/, cassettes/0.50.0/). Key changes: - New integrations/conftest.py with a shared vcr_cassette_dir fixture that appends the version when the env var is set, falling back to cassettes/ for backward compat when running tests directly. - _run_tests() accepts version= and sets the env var for all 16 versioned integration sessions. - Removed redundant per-file vcr_cassette_dir fixtures and cassette_library_dir overrides from 12 test/conftest files. - Claude Agent SDK _test_transport respects the version env var for its non-VCR cassette transport, avoiding double-nesting when BRAINTRUST_CLAUDE_AGENT_SDK_CASSETTES_DIR is explicitly set. - All existing cassettes moved to cassettes/latest/ subdirectories.
Cedric / ViaDézo1er (viadezo1er)
approved these changes
Apr 15, 2026
Contributor
Cedric / ViaDézo1er (viadezo1er)
left a comment
There was a problem hiding this comment.
stamp
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.
In prep for #256, we record vcr cassettes per version. Large diff, but that's just because we now have these duplicate cassettes. Also re-org noxfile for these changes.