Skip to content

fix(agentfield): add test for issue #825 - #833

Draft
Salomondiei08 wants to merge 1 commit into
Agent-Field:mainfrom
Salomondiei08:fix/825-run
Draft

fix(agentfield): add test for issue #825#833
Salomondiei08 wants to merge 1 commit into
Agent-Field:mainfrom
Salomondiei08:fix/825-run

Conversation

@Salomondiei08

Copy link
Copy Markdown

What

Adds test coverage for the behavior described in issue #825.

Why

Fixes #825

Testing

  • New test added

Copilot AI review requested due to automatic review settings July 29, 2026 00:33
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Jay seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Ref: Agent-Field#825
Signed-off-by: Jay <sallomondiei@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test intended to cover issue #825 around Agent.run server argument handling in the Python SDK.

Changes:

  • Added tests/test_issue_825.py to validate Agent.run behavior in “server mode”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_issue_825.py
@@ -0,0 +1,32 @@
"""Regression coverage for issue #825: ``Agent.run`` server arguments."""
Comment thread tests/test_issue_825.py
Comment on lines +24 to +32
monkeypatch.setattr(
sys,
"argv",
["agent.py", "--port", "8765", "--host", "127.0.0.1", "--dev"],
)

Agent.run(app)

assert served_with == {"port": 8765, "host": "127.0.0.1", "dev": True}
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.

Run

4 participants