- Sort Score
- Result 10 results
- Languages All
Results 5801 - 5810 of 7,200 for RETURN (0.17 sec)
-
tests/test_router_prefix_with_template.py
from fastapi import APIRouter, FastAPI from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() @router.get("/users/{id}") def read_user(segment: str, id: str): return {"segment": segment, "id": id} app.include_router(router, prefix="/{segment}") client = TestClient(app) def test_get(): response = client.get("/seg/users/foo")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 484 bytes - Viewed (0) -
tests/test_custom_swagger_ui_redirect.py
from fastapi.testclient import TestClient swagger_ui_oauth2_redirect_url = "/docs/redirect" app = FastAPI(swagger_ui_oauth2_redirect_url=swagger_ui_oauth2_redirect_url) @app.get("/items/") async def read_items(): return {"id": "foo"} client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py
"tutorial003_py39", ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.first_steps.{request.param}") client = TestClient(mod.app) return client @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/", 200, {"message": "Hello World"}), ("/nonexistent", 404, {"detail": "Not Found"}), ], )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.4K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt
val out = ByteArrayOutputStream() exec { isIgnoreExitValue = ignoreExitValue commandLine(*args) standardOutput = out this.workingDir = workingDir } return out.toString().trim() } fun ExecOperations.execAndGetStdoutIgnoringError(vararg args: String) = execAndGetStdout(File("."), true, *args)
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon May 19 11:33:57 UTC 2025 - 965 bytes - Viewed (0) -
docs/en/docs/reference/status.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 871 bytes - Viewed (0) -
docs/en/docs/index.md
is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item): return {"item_name": item.name, "item_id": item_id} ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 25 11:01:37 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java
mocks = MockitoAnnotations.openMocks(this); // Set up mock provider to return TCP memory regions when(mockProvider.registerMemory(any(ByteBuffer.class), any())).thenAnswer(invocation -> { ByteBuffer buffer = invocation.getArgument(0); EnumSet<RdmaAccess> access = invocation.getArgument(1); return new TcpMemoryRegion(buffer, access); });
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java
final DefaultRepositorySystemSession repoSession = new DefaultRepositorySystemSession(h -> false); repoSession.setLocalRepositoryManager(new LegacyLocalRepositoryManager(localRepo)); return new ProjectModelResolver( repoSession, null, getContainer().lookup(RepositorySystem.class), getContainer().lookup(RemoteRepositoryManager.class),
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 8.7K bytes - Viewed (0) -
docs/debugging/s3-check-md5/main.go
versions bool insecure bool ) // getMD5Sum returns MD5 sum of given data. func getMD5Sum(data []byte) []byte { hash := md5.New() hash.Write(data) return hash.Sum(nil) } func main() { flag.StringVar(&endpoint, "endpoint", "https://play.min.io", "S3 endpoint URL") flag.StringVar(&accessKey, "access-key", "Q3AM3UQ867SPQQA43P2F", "S3 Access Key")
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 6.3K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial003_an_py310.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 673 bytes - Viewed (0)