Skip to content

Conversation

@danielmillerp
Copy link
Contributor

@danielmillerp danielmillerp commented Oct 30, 2025

Fix agentic runs for tests

Problem

All agentic tutorial tests were failing with a TypeError:
TypeError: TestNonStreamingEvents.test_send_event_and_poll() takes 3 positional arguments but 4 were given

The test methods had an unused _agent_name parameter in their signatures:
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):

However, pytest was only providing 3 arguments (self, client, agent_id), causing the tests to fail before any actual test logic could
run.

Solution

Removed the unused _agent_name parameter from all test method signatures across the agentic tutorials. The parameter wasn't being
used in any of the test logic and was causing pytest fixture injection to fail.

Changes

  • Updated test signatures in all agentic tutorial test files (base and temporal)
  • Commented out sync and base tutorials in run_all_agentic_tests.sh to focus on temporal tutorials for CI

Testing

After the fix, tests now run successfully without the parameter mismatch error.

@danielmillerp danielmillerp force-pushed the dm/fix-agentic-test-issues branch 2 times, most recently from 851fe26 to 68f291f Compare October 30, 2025 18:48
@danielmillerp danielmillerp force-pushed the dm/fix-agentic-test-issues branch from 68f291f to 7cff65c Compare October 30, 2025 19:54
@danielmillerp danielmillerp merged commit 0defb23 into main Oct 30, 2025
9 checks passed
@danielmillerp danielmillerp deleted the dm/fix-agentic-test-issues branch October 30, 2025 19:58
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.

3 participants