mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 15:01:00 +02:00
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:
parent
6c9a545a06
commit
9cf7dcb578
1 changed files with 3 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ class TestTextCompletionStreaming:
|
||||||
processor.generate_content_stream = Processor.generate_content_stream.__get__(
|
processor.generate_content_stream = Processor.generate_content_stream.__get__(
|
||||||
processor, Processor
|
processor, Processor
|
||||||
)
|
)
|
||||||
|
_wire_variant(processor)
|
||||||
|
|
||||||
# Act & Assert
|
# Act & Assert
|
||||||
with pytest.raises(Exception) as exc_info:
|
with pytest.raises(Exception) as exc_info:
|
||||||
|
|
@ -307,6 +308,7 @@ class TestTextCompletionStreaming:
|
||||||
processor.generate_content_stream = Processor.generate_content_stream.__get__(
|
processor.generate_content_stream = Processor.generate_content_stream.__get__(
|
||||||
processor, Processor
|
processor, Processor
|
||||||
)
|
)
|
||||||
|
_wire_variant(processor)
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
chunks = []
|
chunks = []
|
||||||
|
|
@ -330,6 +332,7 @@ class TestTextCompletionStreaming:
|
||||||
processor.generate_content_stream = Processor.generate_content_stream.__get__(
|
processor.generate_content_stream = Processor.generate_content_stream.__get__(
|
||||||
processor, Processor
|
processor, Processor
|
||||||
)
|
)
|
||||||
|
_wire_variant(processor)
|
||||||
|
|
||||||
system_prompt = "You are an expert."
|
system_prompt = "You are an expert."
|
||||||
user_prompt = "Explain quantum physics."
|
user_prompt = "Explain quantum physics."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue