Skip to content

Commit 652d706

Browse files
committed
Clarify things a bit
1 parent 8c288eb commit 652d706

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

instrumentation-genai/opentelemetry-instrumentation-vertexai/tests/test_chat_completions.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,15 @@ def fixture_generate_content(
498498
request: pytest.FixtureRequest,
499499
vcr: VCR,
500500
) -> Generator[GenerateContentFixture, None, None]:
501+
"""This fixture parameterizes tests that use it to test calling both
502+
GenerativeModel.generate_content() and GenerativeModel.generate_content_async().
503+
"""
501504
is_async: bool = request.param
502505

503506
if is_async and vcr.record_mode != RecordMode.NONE:
504-
pytest.skip("Do not run async tests when VCR is recording")
507+
pytest.skip(
508+
"Skip async tests when VCR is recording so that fixtures are only recorded once"
509+
)
505510

506511
if is_async:
507512
# See

0 commit comments

Comments
 (0)