Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4a03b90
test(huggingface_hub): reuse base cassettes for parent-span nesting t…
AbhiPrasad Oct 8, 2026
8c47bf4
test(cohere): fold audio patcher target test into setup VCR test
AbhiPrasad Oct 8, 2026
54664ac
test(temporal): consolidate header and plugin integration tests
AbhiPrasad Oct 8, 2026
08798f2
test(agno): drop fake-component tests covered by real agent tests
AbhiPrasad Oct 8, 2026
d323cad
test(google_genai): parametrize sync/async twin tests
AbhiPrasad Oct 8, 2026
b836f8b
test(pydantic_ai): consolidate redundant tests
AbhiPrasad Oct 8, 2026
7f9ad22
test(anthropic): parametrize twin tests and fold streaming coverage
AbhiPrasad Oct 8, 2026
d316ae2
test(claude_agent_sdk): drop dead version branches and redundant tests
AbhiPrasad Oct 8, 2026
4928f7b
test(openai): parametrize sync/async twin tests
AbhiPrasad Oct 8, 2026
e2826dd
test(litellm): drop redundant system-prompt test and debug leftovers
AbhiPrasad Oct 8, 2026
f8be308
test(openrouter): assert setup() actually patches in idempotency test
AbhiPrasad Oct 8, 2026
bb735c9
test(langchain): consolidate redundant callback handler tests
AbhiPrasad Oct 8, 2026
9db5b2d
test(adk): parametrize schema tests and drop input_schema test
AbhiPrasad Oct 8, 2026
15d151c
test(mistral): drop duplicate agents tool-span test, parametrize norm…
AbhiPrasad Oct 8, 2026
b378ff9
test(dspy): merge patch_dspy subprocess tests
AbhiPrasad Oct 8, 2026
3706f72
test(openai_agents): fold task/turn span checks into setup test
AbhiPrasad Oct 8, 2026
d6ead8b
test(llamaindex): parametrize lazy-output stringification tests
AbhiPrasad Oct 8, 2026
5a435e6
test(transformers): fold and drop redundant pipeline tests
AbhiPrasad Oct 8, 2026
36ff71d
test(crewai): merge token-metric and error-event tests
AbhiPrasad Oct 8, 2026
8aef299
test(livekit_agents): drop duplicate voice-turn e2e and assert on cancel
AbhiPrasad Oct 8, 2026
6e77a0a
test(integrations): parametrize shared utils twin tests
AbhiPrasad Oct 8, 2026
f365481
test(integrations): require SUCCESS from auto-instrument scripts
AbhiPrasad Oct 8, 2026
19433be
test: honor @pytest.mark.vcr(cassette_name=...) for shared cassettes
AbhiPrasad Oct 8, 2026
80bc7ea
test(openai): replace per-test unwrapped-client halves with one test
AbhiPrasad Oct 8, 2026
139ed86
test(openai): merge image and pdf data-url attachment tests
AbhiPrasad Oct 8, 2026
317ede6
re-record
AbhiPrasad Oct 8, 2026
eb16029
test(integrations): cover patching machinery generically in test_base
AbhiPrasad Oct 8, 2026
92f72da
test: drop stale interactions left by --vcr-record=all
AbhiPrasad Oct 8, 2026
44cdbe8
test(integrations): declare fake SDK module attributes for pylint
AbhiPrasad Oct 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions py/src/braintrust/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,19 @@ def get_vcr_config():
def vcr_config():
"""Pytest fixture wrapper for get_vcr_config()."""
return get_vcr_config()


@pytest.fixture
def vcr_cassette_name(request):
"""Name of the VCR cassette, overridable with ``@pytest.mark.vcr(cassette_name=...)``.

pytest-vcr forwards marker kwargs to vcrpy as config and ignores
``cassette_name``, so without this override tests that share a cassette
silently record and replay their own.
"""
marker = request.node.get_closest_marker("vcr")
if marker and "cassette_name" in marker.kwargs:
return marker.kwargs["cassette_name"]
if request.cls:
return f"{request.cls.__name__}.{request.node.name}"
return request.node.name

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading