- Sort Score
- Result 10 results
- Languages All
Results 961 - 970 of 1,156 for done (0.05 sec)
-
tests/test_security_http_bearer_optional.py
app = FastAPI() security = HTTPBearer(auto_error=False) @app.get("/users/me") def read_current_user( credentials: Optional[HTTPAuthorizationCredentials] = Security(security), ): if credentials is None: return {"msg": "Create an account first"} return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_bearer():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/test_security_oauth2_password_bearer_optional.py
app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): if token is None: return {"msg": "Create an account first"} return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
cmd/object-lambda-handlers.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 22 07:04:48 UTC 2024 - 10.3K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.24.md
- Kubeadm: removed the restriction that the `ca.crt` can only contain one certificate. If there is more than one certificate in the `ca.crt` file, kubeadm will pick the first one by default. ([#107327](https://github.com/kubernetes/kubernetes/pull/107327), [@SataQiu](https://github.com/SataQiu))
Registered: Fri Nov 01 09:05:11 UTC 2024 - Last Modified: Thu Aug 24 00:02:43 UTC 2023 - 473.4K bytes - Viewed (0) -
tests/test_get_request_body.py
from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Product(BaseModel): name: str description: str = None # type: ignore price: float @app.get("/product") async def create_item(product: Product): return product client = TestClient(app) def test_get_with_body():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.7K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an.py
def test_query_no_values(): url = "/items/" response = client.get(url) assert response.status_code == 200, response.text assert response.json() == {"q": None} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 3.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleClasspath.groovy
import org.gradle.work.DisableCachingByDefault @CompileStatic @DisableCachingByDefault(because = "Only filters the input artifact") abstract class FindGradleClasspath implements TransformAction<TransformParameters.None> { @PathSensitive(PathSensitivity.NAME_ONLY) @InputArtifact abstract Provider<FileSystemLocation> getArtifact() @Override void transform(TransformOutputs outputs) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 1.7K bytes - Viewed (0) -
docs/de/docs/tutorial/body-updates.md
### Warnung bezüglich des Ersetzens Das bedeutet, dass, wenn Sie den Artikel `bar` aktualisieren wollen, mittels `PUT` und folgendem Body: ```Python { "name": "Barz", "price": 3, "description": None, } ``` das Eingabemodell nun den Defaultwert `"tax": 10.5` hat, weil Sie das bereits gespeicherte Attribut `"tax": 20.2` nicht mit übergeben haben.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifactHandler.java
return null; } @Override public String getExtension() { return extension; } @Override public String getLanguage() { return "none"; } @Override public String getPackaging() { return packaging; } @Override @Deprecated public boolean isAddedToClasspath() { return false; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleJars.groovy
import org.gradle.work.DisableCachingByDefault @CompileStatic @DisableCachingByDefault(because = "Only filters the input artifact") abstract class FindGradleJars implements TransformAction<TransformParameters.None> { @PathSensitive(PathSensitivity.NAME_ONLY) @InputArtifact abstract Provider<FileSystemLocation> getArtifact() @Override void transform(TransformOutputs outputs) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Apr 11 12:20:44 UTC 2024 - 1.7K bytes - Viewed (0)