mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-20 04:24:17 +02:00
fix: correct documentation link in deprecation warning (#1828)
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com> Co-authored-by: Jeremiah Lowin <jlowin@users.noreply.github.com>
This commit is contained in:
parent
4a02c9a563
commit
09ae8f5cfd
2 changed files with 2 additions and 2 deletions
|
|
@ -573,7 +573,7 @@ class Context:
|
|||
warnings.warn(
|
||||
"Context.get_http_request() is deprecated and will be removed in a future version. "
|
||||
"Use get_http_request() from fastmcp.server.dependencies instead. "
|
||||
"See https://gofastmcp.com/patterns/http-requests for more details.",
|
||||
"See https://gofastmcp.com/servers/context#http-requests for more details.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class TestContextDeprecations:
|
|||
"Use get_http_request() from fastmcp.server.dependencies instead"
|
||||
in str(warning.message)
|
||||
)
|
||||
assert "https://gofastmcp.com/patterns/http-requests" in str(
|
||||
assert "https://gofastmcp.com/servers/context#http-requests" in str(
|
||||
warning.message
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue