tests: rename some variables to make things clearer
This commit is contained in:
@@ -29,12 +29,12 @@ class TestSentenceAggregator(unittest.IsolatedAsyncioTestCase):
|
||||
for word in sentence.split(" "):
|
||||
frames_to_send.append(TextFrame(text=word + " "))
|
||||
|
||||
expected_returned_frames = [TextFrame, TextFrame, TextFrame]
|
||||
expected_down_frames = [TextFrame, TextFrame, TextFrame]
|
||||
|
||||
(received_down, _) = await run_test(
|
||||
aggregator,
|
||||
frames_to_send=frames_to_send,
|
||||
expected_down_frames=expected_returned_frames,
|
||||
expected_down_frames=expected_down_frames,
|
||||
)
|
||||
assert received_down[-3].text == "Hello, world. "
|
||||
assert received_down[-2].text == "How are you? "
|
||||
@@ -59,7 +59,7 @@ class TestGatedAggregator(unittest.IsolatedAsyncioTestCase):
|
||||
LLMFullResponseEndFrame(),
|
||||
]
|
||||
|
||||
expected_returned_frames = [
|
||||
expected_down_frames = [
|
||||
OutputImageRawFrame,
|
||||
LLMFullResponseStartFrame,
|
||||
TextFrame,
|
||||
@@ -72,5 +72,5 @@ class TestGatedAggregator(unittest.IsolatedAsyncioTestCase):
|
||||
(received_down, _) = await run_test(
|
||||
gated_aggregator,
|
||||
frames_to_send=frames_to_send,
|
||||
expected_down_frames=expected_returned_frames,
|
||||
expected_down_frames=expected_down_frames,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user