- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,205 for itens (0.01 sec)
-
tests/test_tutorial/test_query_params/test_tutorial001.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.1K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
client = TestClient(mod.app) return client def test_post_body_valid(client: TestClient): response = client.put( "/items/5", json={ "importance": 2, "item": {"name": "Foo", "price": 50.5}, "user": {"username": "Dave"}, }, ) assert response.status_code == 200Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
tests/test_tutorial/test_using_request_directly/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.using_request_directly.tutorial001_py39 import app client = TestClient(app) def test_path_operation(): response = client.get("/items/foo") assert response.status_code == 200 assert response.json() == {"client_host": "testclient", "item_id": "foo"} def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
return index(new SuggestItem[] { item }); } /** * Indexes multiple suggest items. * @param items The suggest items to index. * @return The SuggestIndexResponse. */ public SuggestIndexResponse index(final SuggestItem[] items) { final SuggestItem[] array = Stream.of(items).filter(item -> !item.isBadWord(badWords)).toArray(SuggestItem[]::new); if (logger.isDebugEnabled()) {
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 34.4K bytes - Viewed (0) -
tests/test_union_body_discriminator.py
Field(discriminator="value"), ] @app.post("/items/") def save_union_body_discriminator( item: Item, q: Annotated[str, Field(description="Query string")] ) -> dict[str, Any]: return {"item": item} client = TestClient(app) response = client.post("/items/?q=first", json={"value": "first", "price": 100}) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008c.py
def test_get_no_item(mod: ModuleType): client = TestClient(mod.app) response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} def test_get(mod: ModuleType): client = TestClient(mod.app) response = client.get("/items/plumbus") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponseTest.java
List<SuggestItem> items = new ArrayList<>(); String[][] readings = new String[1][]; readings[0] = new String[] { "word1" }; items.add(new SuggestItem(new String[] { "word1" }, readings, new String[] { "content" }, 0, 10, -1, new String[] { "tag1" }, new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.QUERY));Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Nov 13 00:40:54 UTC 2025 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial005.py
[ ( "/items", "from_cookie", 200, {"q_or_cookie": "from_cookie"}, ), ( "/items?q=foo", "from_cookie", 200, {"q_or_cookie": "foo"}, ), ( "/items", None, 200, {"q_or_cookie": None},Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.5K bytes - Viewed (0) -
docs_src/extra_models/tutorial004_py39.py
app = FastAPI() class Item(BaseModel): name: str description: str items = [ {"name": "Foo", "description": "There comes my hero"}, {"name": "Red", "description": "It's my aeroplane"}, ] @app.get("/items/", response_model=list[Item]) async def read_items():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 356 bytes - Viewed (0) -
tests/test_union_inherited_body.py
name: Optional[str] = None class ExtendedItem(Item): age: int @app.post("/items/") def save_union_different_body(item: Union[ExtendedItem, Item]): return {"item": item} client = TestClient(app) def test_post_extended_item(): response = client.post("/items/", json={"name": "Foo", "age": 5}) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 4.6K bytes - Viewed (0)