- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 126 for 4104 (0.03 sec)
-
docs_src/dependencies/tutorial008c_py39.py
raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException( status_code=404, detail="Item not found, there's only a plumbus here" )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 660 bytes - Viewed (0) -
docs_src/additional_responses/tutorial004_py310.py
from fastapi import FastAPI from fastapi.responses import FileResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str responses = { 404: {"description": "Item not found"}, 302: {"description": "The item was moved"}, 403: {"description": "Not enough privileges"}, } app = FastAPI() @app.get( "/items/{item_id}", response_model=Item,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 669 bytes - Viewed (0) -
docs_src/dependencies/tutorial008c_an_py39.py
raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException( status_code=404, detail="Item not found, there's only a plumbus here" )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 700 bytes - Viewed (0) -
tests/test_no_swagger_ui_redirect.py
print(client.base_url) assert "oauth2RedirectUrl" not in response.text def test_swagger_ui_no_oauth2_redirect(): response = client.get("/docs/oauth2-redirect") assert response.status_code == 404, response.text def test_response(): response = client.get("/items/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 786 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_an_py39.py
@app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id not in data: raise HTTPException(status_code=404, detail="Item not found") item = data[item_id] if item["owner"] != username: raise OwnerError(username)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 775 bytes - Viewed (0) -
tests/test_tutorial/test_metadata/test_tutorial002.py
assert response.status_code == 200, response.text assert response.json() == [{"name": "Foo"}] def test_get_openapi_json_default_url(): response = client.get("/openapi.json") assert response.status_code == 404, response.text def test_openapi_schema(): response = client.get("/api/v1/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.2K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/build.gradle.kts
api(platform(projects.buildPlatform)) implementation(projects.basics) implementation(projects.moduleIdentity) implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.1.0") implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.2.0") implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:$expectedKotlinDslPluginsVersion")Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Aug 20 10:00:10 UTC 2025 - 932 bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
// Buffer 3: PRIVSVR_CHECKSUM writeLittleEndianInt(baos, PacConstants.PRIVSVR_CHECKSUM); writeLittleEndianInt(baos, 20); // signature size writeLittleEndianLong(baos, 104); // offset (aligned) // Add buffer data while (baos.size() < 72) { baos.write(0); } // LOGON_INFO data (minimal)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py
client = TestClient(mod.app) return client @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/", 200, {"message": "Hello World"}), ("/nonexistent", 404, {"detail": "Not Found"}), ], ) def test_get_path(client: TestClient, path, expected_status, expected_response): response = client.get(path) assert response.status_code == expected_status
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_static_files/test_tutorial001.py
assert response.text == "This is a sample static file." def test_static_files_not_found(client: TestClient): response = client.get("/static/non_existent_file.txt") assert response.status_code == 404, response.text def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.1K bytes - Viewed (0)