Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastapi/fastapi
/ test_options
Function
test_options
tests/test_extra_routes.py:79–82 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
77
78
79
def
test_options():
80
response = client.options(
"/items/foo"
)
81
assert response.status_code == 200, response.text
82
assert response.headers[
"x-fastapi-item-id"
] ==
"foo"
83
84
85
def
test_patch():
Callers
nothing calls this directly
Calls
1
options
Method · 0.45
Tested by
no test coverage detected