- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 488 for isSnapshot (0.06 seconds)
-
tests/test_security_http_basic_optional.py
from base64 import b64encode from fastapi import FastAPI, Security from fastapi.security import HTTPBasic, HTTPBasicCredentials from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() security = HTTPBasic(auto_error=False) @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials | None = Security(security)): if credentials is None:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
tests/test_put_no_body.py
from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() @app.put("/items/{item_id}") def save_item_no_body(item_id: str): return {"item_id": item_id} client = TestClient(app) def test_put_no_body(): response = client.put("/items/foo") assert response.status_code == 200, response.text assert response.json() == {"item_id": "foo"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.8K bytes - Click Count (0) -
tests/test_security_api_key_cookie_optional.py
from fastapi import Depends, FastAPI, Security from fastapi.security import APIKeyCookie from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel app = FastAPI() api_key = APIKeyCookie(name="key", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: str | None = Security(api_key)): if oauth_header is None: return None
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.2K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer.py
from fastapi import FastAPI, Security from fastapi.security import OAuth2AuthorizationCodeBearer from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", auto_error=True ) @app.get("/items/") async def read_items(token: str | None = Security(oauth2_scheme)): return {"token": token}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
tests/test_request_params/test_header/test_list.py
from typing import Annotated import pytest from dirty_equals import AnyThing, IsOneOf, IsPartialDict from fastapi import FastAPI, Header from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/required-list-str")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 11.3K bytes - Click Count (0) -
tests/test_arbitrary_types.py
from typing import Annotated import pytest from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot @pytest.fixture(name="client") def get_client(): from pydantic import ( BaseModel, ConfigDict, PlainSerializer, TypeAdapter, WithJsonSchema, ) class FakeNumpyArray: def __init__(self):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 3.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/promotion/PublishBranchSnapshotFromQuickFeedback.kt
extraParameters = "-PpromotedBranch=%branch.qualifier%", ) { init { id("Promotion_PublishBranchSnapshotFromQuickFeedback") name = "Publish Branch Snapshot (from Quick Feedback)" description = "Deploys a new distribution snapshot for the selected build/branch. Does not update master or the documentation." val triggerName = this.triggerName params { text(Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 20 06:13:56 GMT 2025 - 1.8K bytes - Click Count (0) -
.teamcity/settings.kts
| |---- QuickFeedback | |---- ... | |---- ReadyForRelease | |----- Promotion (buildTypeId: Gradle_Master_Promotion) | |----- Nightly Snapshot | |----- ... | |----- Util |----- WarmupEc2Agent |----- AdHocPerformanceTest Release (buildTypeId: Gradle_Release) |----- Check (buildTypeId: Gradle_Release_Check)
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Jan 21 06:00:14 GMT 2026 - 1.2K bytes - Click Count (0) -
tests/test_security_openid_connect_optional.py
from fastapi import Depends, FastAPI, Security from fastapi.security.open_id_connect_url import OpenIdConnect from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel app = FastAPI() oid = OpenIdConnect(openIdConnectUrl="/openid", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: str | None = Security(oid)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.6K bytes - Click Count (0) -
build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/VersionPropertiesLoader.java
} final String buildSnapshotSystemProperty = providers.systemProperty("build.snapshot") .orElse("true") .forUseAtConfigurationTime() .get(); switch (buildSnapshotSystemProperty) { case "true": elasticsearch += "-SNAPSHOT"; break; case "false": // do nothing break;Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Aug 09 07:39:30 GMT 2021 - 2.7K bytes - Click Count (0)