Skip to content

docs: fix TestClient examples and default client host - #3319

Merged
Kludex merged 1 commit into
Kludex:mainfrom
leestana01:fix-testclient-docs
Jun 5, 2026
Merged

docs: fix TestClient examples and default client host#3319
Kludex merged 1 commit into
Kludex:mainfrom
leestana01:fix-testclient-docs

Conversation

@leestana01

Copy link
Copy Markdown
Contributor

A few issues in docs/testclient.md:

  • The two def test_app() examples under Selecting the Async backend are missing the trailing colon, so the snippets are not valid Python.
  • The Change client address section states the default client host is "testserver", but TestClient defaults client to ("testclient", 50000) ("testserver" is the base_url). request.client is therefore ("testclient", 50000), as asserted in tests/test_testclient.py. The docs now say "testclient".

Docs only — no behavior change.

A few issues in docs/testclient.md:

- The two `def test_app()` examples under "Selecting the Async backend"
  are missing the trailing colon, so the snippets are not valid Python.
- The "Change client address" section says the default client host is
  "testserver", but TestClient defaults `client` to ("testclient", 50000)
  ("testserver" is the base_url). request.client is ("testclient", 50000),
  as asserted in tests/test_testclient.py. Update the docs to match.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more

Re-trigger cubic

@Kludex
Kludex merged commit 70a3bd4 into Kludex:main Jun 5, 2026
10 checks passed
@Kludex

Kludex commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants