- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 2,341 for get3 (0.04 sec)
-
tests/test_router_redirect_slashes.py
app = FastAPI() router = APIRouter() @router.get("/hello/") def hello_page() -> str: return "Hello, World!" app.include_router(router) client = TestClient(app) response = client.get("/hello/", follow_redirects=False) assert response.status_code == 200 response = client.get("/hello", follow_redirects=False) assert response.status_code == 307
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Jun 22 10:37:50 UTC 2023 - 974 bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/JavassistExtensions.kt
import org.gradle.kotlin.dsl.* internal val CtClass.isKotlin: Boolean get() = hasAnnotation(Metadata::class.qualifiedName) internal val CtMethod.isSynthetic get() = methodInfo.getAttribute(SyntheticAttribute.tag) != null internal val MemberValue.intValue: Int get() { var value: Int? = null accept(object : MemberValueVisitorAdapter() {
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 4.6K bytes - Viewed (0) -
tests/test_param_include_in_schema.py
from fastapi import Cookie, FastAPI, Header, Path, Query from fastapi.testclient import TestClient app = FastAPI() @app.get("/hidden_cookie") async def hidden_cookie( hidden_cookie: Optional[str] = Cookie(default=None, include_in_schema=False), ): return {"hidden_cookie": hidden_cookie} @app.get("/hidden_header") async def hidden_header( hidden_header: Optional[str] = Header(default=None, include_in_schema=False), ):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 7.4K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002_an_py39.py
session.commit() session.refresh(db_hero) return db_hero @app.get("/heroes/", response_model=list[HeroPublic]) def read_heroes( session: SessionDep, offset: int = 0, limit: Annotated[int, Query(le=100)] = 100, ): heroes = session.exec(select(Hero).offset(offset).limit(limit)).all() return heroes @app.get("/heroes/{hero_id}", response_model=HeroPublic)
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts
import org.gradle.api.publish.maven.MavenPublication plugins { id("publishing") } val artifactoryUrl get() = System.getenv("GRADLE_INTERNAL_REPO_URL") ?: "" val artifactoryUserName get() = project.providers.gradleProperty("artifactoryUserName").orNull val artifactoryUserPassword get() = project.providers.gradleProperty("artifactoryUserPassword").orNull tasks.withType<AbstractPublishToMaven>().configureEach {
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Wed Sep 25 08:20:22 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
TF_DeviceList* devices = TFE_ContextListDevices(ctx, status.get()); CHECK_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get()); const int num_devices = TF_DeviceListCount(devices); for (int i = 0; i < num_devices; ++i) { const string dev_type(TF_DeviceListType(devices, i, status.get())); CHECK_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
Registered: Tue Oct 29 12:39:09 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tests/test_duplicate_models_openapi.py
c: Model d: Model2 @app.get("/", response_model=Model3) def f(): return {"c": {}, "d": {"a": {}}} client = TestClient(app) def test_get_api_route(): response = client.get("/") assert response.status_code == 200, response.text assert response.json() == {"c": {}, "d": {"a": {}}} def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_cookie_param_models/test_tutorial002.py
response = c.get("/items/") assert response.status_code == 200 assert response.json() == { "session_id": "123", "fatebook_tracker": "456", "googall_tracker": "789", } def test_cookie_param_model_defaults(client: TestClient): with client as c: c.cookies.set("session_id", "123") response = c.get("/items/") assert response.status_code == 200
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 8.6K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt
buildTimestamp.get().let { timestampFormat.format(it) } private fun getBuildTimestampAsIsoString() = buildTimestamp.get().let { isoTimestampFormat.format(it) } private fun Logger.logBuildVersion() { lifecycle( "Version: ${version.get()} " + "(base version: ${baseVersion.get()}," + " timestamp: ${buildTimestamp.get()}," +
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 4.2K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d_an_py39.py
return client @needs_py39 def test_get_no_item(client: TestClient): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} @needs_py39 def test_get(client: TestClient): response = client.get("/items/plumbus") assert response.status_code == 200, response.text
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.3K bytes - Viewed (0)