- Sort Score
- Num 10 results
- Language All
Results 481 - 490 of 5,958 for retain (0.07 seconds)
-
docs_src/app_testing/app_b_an_py39/test_main.py
assert response.status_code == 400 assert response.json() == {"detail": "Invalid X-Token header"} def test_read_nonexistent_item(): response = client.get("/items/baz", headers={"X-Token": "coneofsilence"}) assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_create_item(): response = client.post( "/items/",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Aug 15 22:31:16 GMT 2024 - 1.8K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial005.py
"HTTPValidationError": { "title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": {"$ref": "#/components/schemas/ValidationError"}, } },
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 9.6K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ObjectBasedValueSource.java
* Finally, return the result of the last expression part's resolution.</p> * * <p><b>NOTE:</b> The object-graph navigation actually takes place via the * {@link ReflectionValueExtractor} class.</p> */ @Override public Object getValue(String expression) { if (expression == null || expression.trim().isEmpty()) { return null; } try {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3.4K bytes - Click Count (0) -
docs_src/security/tutorial003_py39.py
status_code=status.HTTP_401_UNAUTHORIZED, detail="Not authenticated", headers={"WWW-Authenticate": "Bearer"}, ) return user async def get_current_active_user(current_user: User = Depends(get_current_user)): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token")Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.4K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_py39.py
try: return await original_route_handler(request) except RequestValidationError as exc: body = await request.body() detail = {"errors": exc.errors(), "body": body.decode()} raise HTTPException(status_code=422, detail=detail) return custom_route_handler app = FastAPI()Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 926 bytes - Click Count (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
) assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_items_plumbus_with_no_token(client: TestClient): response = client.get( "/items/plumbus", headers={"X-Token": "fake-super-secret-token"} ) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "missing",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 21.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
} /** * Tests whether the output stream is currently open. * * @return whether the stream is open */ public boolean isOpen() { return this.handle != null && this.handle.isValid(); } /** * Ensures that the file handle is open and returns it. * * @return the open file handle * @throws CIFSException if an error occurs opening the file */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.8K bytes - Click Count (0) -
tests/test_query.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.4K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial008.py
"HTTPValidationError": { "title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": {"$ref": "#/components/schemas/ValidationError"}, } },
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.4K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial005.py
return mod def get_access_token( *, username="johndoe", password="secret", scope=None, client: TestClient ): data = {"username": username, "password": password} if scope: data["scope"] = scope response = client.post("/token", data=data) content = response.json() access_token = content.get("access_token") return access_tokenCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 15.8K bytes - Click Count (0)