fix: wire variant into remaining streaming integration test mocks (#1013)

Three more streaming tests were missing _wire_variant after the
async for change in create_completion_stream.
This commit is contained in:
cybermaggedon 2026-07-02 11:14:54 +01:00 committed by GitHub
parent 6c9a545a06
commit 9cf7dcb578
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,6 +270,7 @@ class TestTextCompletionStreaming:
processor.generate_content_stream = Processor.generate_content_stream.__get__(
processor, Processor
)
_wire_variant(processor)
# Act & Assert
with pytest.raises(Exception) as exc_info:
@ -307,6 +308,7 @@ class TestTextCompletionStreaming:
processor.generate_content_stream = Processor.generate_content_stream.__get__(
processor, Processor
)
_wire_variant(processor)
# Act
chunks = []
@ -330,6 +332,7 @@ class TestTextCompletionStreaming:
processor.generate_content_stream = Processor.generate_content_stream.__get__(
processor, Processor
)
_wire_variant(processor)
system_prompt = "You are an expert."
user_prompt = "Explain quantum physics."