- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 4,403 for fromP2 (0.03 sec)
-
tests/test_custom_schema_fields.py
from typing import Annotated, Optional from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, WithJsonSchema app = FastAPI() class Item(BaseModel): name: str description: Annotated[ Optional[str], WithJsonSchema({"type": ["string", "null"]}) ] = None model_config = { "json_schema_extra": { "x-something-internal": {"level": 4},
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1.3K bytes - Viewed (0) -
tests/test_security_api_key_query.py
from fastapi import Depends, FastAPI, Security from fastapi.security import APIKeyQuery from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyQuery(name="key") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): user = User(username=oauth_header) return user @app.get("/users/me")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 1.9K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java
// then relative path calculation will fail during build from disk but success when calculated from repo try { // build from disk expected to fail testInheritance("tricky-flat-artifactId-urls", false); // fail( "should have failed since module reference == artifactId != directory name" ); } catch (AssertionError afe) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 8.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
MockResponse(body = "unexpected call to IPv4"), ) serverIpv6.enqueue( MockResponse(body = "hello from IPv6"), ) val call = client.newCall(Request(url)) val response = call.execute() assertThat(response.body.string()).isEqualTo("hello from IPv6") // In the process we made one successful connection attempt.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.6K bytes - Viewed (0) -
src/archive/tar/stat_unix.go
case "linux": // Copied from golang.org/x/sys/unix/dev_linux.go. major := uint32((dev & 0x00000000000fff00) >> 8) major |= uint32((dev & 0xfffff00000000000) >> 32) minor := uint32((dev & 0x00000000000000ff) >> 0) minor |= uint32((dev & 0x00000ffffff00000) >> 12) h.Devmajor, h.Devminor = int64(major), int64(minor) case "darwin", "ios": // Copied from golang.org/x/sys/unix/dev_darwin.go.
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 3.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingResult.java
* * @return The model identifiers from the lineage of models, never {@code null}. */ List<String> getModelIds(); /** * Gets the assembled model. * * @return The assembled model, never {@code null}. */ Model getEffectiveModel(); /** * Gets the raw model as it was read from the input model source. Apart from basic validation, the raw model has notRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 25 08:27:34 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
+ " even if some elements are null.", getSet().equals(MinimalSet.from(elements))); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherContainsNull() { Collection<E> elements = getSampleElements(getNumElements() - 1); elements.add(null); Set<E> other = MinimalSet.from(elements); assertFalse(Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
+ " even if some elements are null.", getSet().equals(MinimalSet.from(elements))); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherContainsNull() { Collection<E> elements = getSampleElements(getNumElements() - 1); elements.add(null); Set<E> other = MinimalSet.from(elements); assertFalse(Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t12scm/ProjectInheritanceTest.java
/** * Verifies SCM inheritance uses modules statement from parent. */ @Deprecated class ProjectInheritanceTest extends AbstractProjectInheritanceTestCase { // ---------------------------------------------------------------------- // // p1 inherits from p0 // p0 inherits from super model // // or we can show it graphically as: //Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sun Mar 30 23:08:36 UTC 2025 - 3K bytes - Viewed (0) -
tests/test_additional_responses_custom_validationerror.py
from fastapi import FastAPI from fastapi.responses import JSONResponse from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class JsonApiResponse(JSONResponse): media_type = "application/vnd.api+json" class Error(BaseModel): status: str title: str class JsonApiError(BaseModel): errors: list[Error] @app.get( "/a/{id}",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.9K bytes - Viewed (0)