Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] doctest fix WIP #753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[ISSUE] doctest fix WIP #753

wants to merge 1 commit into from

Conversation

vipyne
Copy link
Member

@vipyne vipyne commented Nov 27, 2024

Attempting to fix the pytests - starting with doctests...

run with
pytest --doctest-modules -v src/pipecat/processors/aggregators/user_response.py

this (now) produces the error:

>>> asyncio.run(print_frames(aggregator, UserStartedSpeakingFrame()))
UNEXPECTED EXCEPTION: TypeError("'async for' requires an object with __aiter__ method, got coroutine")

I tried an await in the offending line async for frame in aggregator.process_frame(frame, FrameDirection.DOWNSTREAM): but the tests still don’t pass because they never print anything.

anyone know how to update def print_frames to fix this (and alllll the other tests that also use it)?

run with
pytest --doctest-modules -v src/pipecat/processors/aggregators/user_response.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant