Skip to content

Fix test_context() recording input for callable-object agents - #785

Merged
wbarnha merged 2 commits into
faust-streaming:masterfrom
burritoatspoton:fix-test-context-recording
Aug 19, 2026
Merged

Fix test_context() recording input for callable-object agents#785
wbarnha merged 2 commits into
faust-streaming:masterfrom
burritoatspoton:fix-test-context-recording

Conversation

@burritoatspoton

@burritoatspoton burritoatspoton commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Note: Before submitting this pull request, please review our contributing
guidelines
.

Description

Extend yielding agent detection in test_context() to callable classes, plain functions returning async iterables, etc., mirroring Agent's behavior (checking the actor instead of the agent function).

Fixes #784

@burritoatspoton burritoatspoton changed the title Fix test_context() recording input for callable-object agents Fix test_context() recording input for callable-object agents Aug 19, 2026
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.20%. Comparing base (a554f25) to head (6ec13ac).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #785      +/-   ##
==========================================
- Coverage   96.20%   96.20%   -0.01%     
==========================================
  Files         110      110              
  Lines       11790    11789       -1     
  Branches     1281     1281              
==========================================
- Hits        11343    11342       -1     
  Misses        350      350              
  Partials       97       97              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wbarnha
wbarnha merged commit f355329 into faust-streaming:master Aug 19, 2026
35 of 36 checks passed
@burritoatspoton
burritoatspoton deleted the fix-test-context-recording branch August 20, 2026 07:02
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.

test_context() records input instead of output for yielding agents implemented as callable objects

2 participants