- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 2,024 for soient (0.21 sec)
-
tests/test_openapi_route_extensions.py
@app.get("/", openapi_extra={"x-custom-extension": "value"}) def route_with_extras(): return {} client = TestClient(app) def test_get_route(): response = client.get("/") assert response.status_code == 200, response.text assert response.json() == {} def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.1K bytes - Viewed (0) -
tests/test_swagger_ui_init_oauth.py
app = FastAPI(swagger_ui_init_oauth=swagger_ui_init_oauth) @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 print(response.text) assert "ui.initOAuth" in response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Aug 09 10:54:05 UTC 2020 - 718 bytes - Viewed (0) -
cni/pkg/repair/repaircontroller.go
"istio.io/istio/pkg/kube/kclient" ) type Controller struct { client kube.Client pods kclient.Client[*corev1.Pod] queue controllers.Queue cfg config.RepairConfig events kclient.EventRecorder repairedPods map[types.NamespacedName]types.UID } func NewRepairController(client kube.Client, cfg config.RepairConfig) (*Controller, error) { c := &Controller{ cfg: cfg,
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Feb 10 00:31:55 UTC 2024 - 10.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestBuilder.java
import org.codelibs.fess.suggest.request.RequestBuilder; import org.opensearch.client.Client; public class PopularWordsRequestBuilder extends RequestBuilder<PopularWordsRequest, PopularWordsResponse> { public PopularWordsRequestBuilder(final Client client) { super(client, new PopularWordsRequest()); } public PopularWordsRequestBuilder setIndex(final String index) {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 2.3K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02_an_py39.py
@pytest.fixture(name="client") def get_client(): from docs_src.request_files.tutorial001_02_an_py39 import app client = TestClient(app) return client @needs_py39 def test_post_form_no_body(client: TestClient): response = client.post("/files/") assert response.status_code == 200, response.text assert response.json() == {"message": "No file sent"} @needs_py39
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbConstants.java
static final boolean FORCE_UNICODE = Config.getBoolean( "jcifs.smb1.smb.client.useUnicode", false ); static final boolean USE_NTSTATUS = Config.getBoolean( "jcifs.smb1.smb.client.useNtStatus", true ); static final boolean SIGNPREF = Config.getBoolean("jcifs.smb1.smb.client.signingPreferred", false ); static final boolean USE_NTSMBS = Config.getBoolean( "jcifs.smb1.smb.client.useNTSmbs", true );
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 8.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001_an.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.body_fields.tutorial001_an import app client = TestClient(app) return client def test_items_5(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}}) assert response.status_code == 200 assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001_an_py39.py
from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.body_fields.tutorial001_an_py39 import app client = TestClient(app) return client @needs_py39 def test_items_5(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}}) assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an.py
app, create_access_token, fake_users_db, get_password_hash, verify_password, ) client = TestClient(app) def get_access_token(username="johndoe", password="secret", scope=None): data = {"username": username, "password": password} if scope: data["scope"] = scope response = client.post("/token", data=data) content = response.json() access_token = content.get("access_token")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java
import org.codelibs.fess.suggest.concurrent.Deferred; import org.opensearch.client.Client; public abstract class RequestBuilder<Req extends Request<Res>, Res extends Response> { protected Client client; protected Req request; public RequestBuilder(final Client client, final Req request) { this.client = client; this.request = request; } public Deferred<Res>.Promise execute() {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 1.1K bytes - Viewed (0)