- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 4,730 for retain (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_security_http_base.py
from inline_snapshot import snapshot app = FastAPI() security = HTTPBase(scheme="Other") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_base(): response = client.get("/users/me", headers={"Authorization": "Other foobar"})
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.2K bytes - Click Count (0) -
tests/test_security_openid_connect.py
class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_oauth2():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.5K bytes - Click Count (0) -
tests/test_security_openid_connect_description.py
class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_oauth2():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/InternalPrecommitTasks.java
project.getPluginManager().apply(LoggerUsagePrecommitPlugin.class); project.getPluginManager().apply(JarHellPrecommitPlugin.class); // tasks with just tests don't need certain tasks to run, so this flag makes adding // the task optional if (withProductiveCode) { project.getPluginManager().apply(ThirdPartyAuditPrecommitPlugin.class);
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 22 14:34:07 GMT 2021 - 1.9K bytes - Click Count (0) -
tests/test_pydantic_v1_error.py
return data def test_raises_pydantic_v1_model_in_return_type() -> None: class ReturnModelV1(BaseModel): name: str app = FastAPI() with pytest.raises(PydanticV1NotSupportedError): @app.get("/return") def endpoint() -> ReturnModelV1: # pragma: no cover return ReturnModelV1(name="test")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
docs/pt/docs/advanced/additional-responses.md
}, "HTTPValidationError": { "title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": { "$ref": "#/components/schemas/ValidationError" }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 9.4K bytes - Click Count (0) -
docs/ru/docs/tutorial/request-form-models.md
* `username`: `Rick` * `password`: `Portal Gun` * `extra`: `Mr. Poopybutthole` То в ответ он получит **ошибку**, сообщающую ему, что поле `extra` не разрешено: ```json { "detail": [ { "type": "extra_forbidden", "loc": ["body", "extra"], "msg": "Extra inputs are not permitted", "input": "Mr. Poopybutthole" } ] } ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 3.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/WildcardQueryCommandTest.java
queryCommand.setLowercaseWildcard(false); QueryBuilder queryBuilder2 = queryCommand.convertWildcardQuery(queryContext2, wildcardQuery2, 1.0f); assertNotNull(queryBuilder2); // The term should remain uppercase String queryString2 = queryBuilder2.toString(); assertTrue(queryString2.contains("TEST*") || queryString2.contains("TEST")); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
sepStopwatchA.set(null); GcFinalization.awaitClear(sepStopwatchRef.get()); // Return a weak reference to the parallel ClassLoader. This is the reference that should // eventually become clear if there are no other references to the ClassLoader. return new WeakReference<ClassLoader>(sepLoader); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 7.7K bytes - Click Count (0) -
docs/es/docs/tutorial/query-param-models.md
```http https://example.com/items/?limit=10&tool=plumbus ``` Recibirán un response de **error** que les indica que el parámetro query `tool` no está permitido: ```json { "detail": [ { "type": "extra_forbidden", "loc": ["query", "tool"], "msg": "Extra inputs are not permitted", "input": "plumbus" } ] } ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 2.3K bytes - Click Count (0)