- Sort Score
- Num 10 results
- Language All
Results 871 - 880 of 1,543 for item (0.02 seconds)
-
tests/test_strict_content_type_app_level.py
response = client_default.post("/items/", content='{"key": "value"}') assert response.status_code == 422 def test_default_strict_accepts_json_content_type(): response = client_default.post("/items/", json={"key": "value"}) assert response.status_code == 200 assert response.json() == {"key": "value"} def test_lax_accepts_no_content_type(): response = client_lax.post("/items/", content='{"key": "value"}')
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 1.1K bytes - Click Count (0) -
tests/test_forms_from_non_typing_sequences.py
app = FastAPI() @app.post("/form/python-list") def post_form_param_list(items: list = Form()): return items @app.post("/form/python-set") def post_form_param_set(items: set = Form()): return items @app.post("/form/python-tuple") def post_form_param_tuple(items: tuple = Form()): return items client = TestClient(app) def test_python_list_param_as_form():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 1.2K bytes - Click Count (0) -
docs/uk/docs/tutorial/bigger-applications.md
* і з нього імпортувати підмодулі `items` (файл `app/routers/items.py`) і `users` (файл `app/routers/users.py`)... Модуль `items` матиме змінну `router` (`items.router`). Це та сама, що ми створили у файлі `app/routers/items.py`, це об’єкт `APIRouter`. Потім ми робимо те саме для модуля `users`. Ми також могли б імпортувати їх так: ```Python from app.routers import items, users ``` /// info | Інформація
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 27.4K bytes - Click Count (0) -
tests/test_json_type.py
from pydantic import Json app = FastAPI() @app.post("/form-json-list") def form_json_list(items: Annotated[Json[list[str]], Form()]) -> list[str]: return items @app.get("/query-json-list") def query_json_list(items: Annotated[Json[list[str]], Query()]) -> list[str]: return items @app.get("/header-json-list") def header_json_list(x_items: Annotated[Json[list[str]], Header()]) -> list[str]:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 05 18:41:43 GMT 2026 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java
} }; assertTrue(iter.hasNext()); assertEquals(0, (int) iter.next()); // verify idempotence of hasNext() assertTrue(iter.hasNext()); assertTrue(iter.hasNext()); assertTrue(iter.hasNext()); assertEquals(1, (int) iter.next()); assertFalse(iter.hasNext()); // Make sure computeNext() doesn't get invoked again assertFalse(iter.hasNext());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
docs_src/metadata/tutorial004_py310.py
tags_metadata = [ { "name": "users", "description": "Operations with users. The **login** logic is also here.", }, { "name": "items", "description": "Manage items. So _fancy_ they have their own docs.", "externalDocs": { "description": "Items external docs", "url": "https://fastapi.tiangolo.com/", }, }, ] app = FastAPI(openapi_tags=tags_metadata)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 693 bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer.py
oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", auto_error=True ) @app.get("/items/") async def read_items(token: str | None = Security(oauth2_scheme)): return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (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));Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Thu Nov 13 00:40:54 GMT 2025 - 5.6K bytes - Click Count (0) -
docs_src/dependency_testing/tutorial001_an_py310.py
def test_override_in_items(): response = client.get("/items/") assert response.status_code == 200 assert response.json() == { "message": "Hello Items!", "params": {"q": None, "skip": 5, "limit": 10}, } def test_override_in_items_with_q(): response = client.get("/items/?q=foo") assert response.status_code == 200 assert response.json() == {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/ArrayIterator.java
public static <T> Iterable<T> iterable(final T... items) { assertArgumentNotNull("items", items); return () -> new ArrayIterator<>(items); } /** * Creates an {@link ArrayIterator}. * * @param items the array of elements to iterate (must not be {@literal null}) */ public ArrayIterator(final T... items) { this.items = items; } @Override
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 2.5K bytes - Click Count (0)