Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 605 for c1test (0.04 seconds)

  1. tests/test_dependency_yield_scope.py

    import json
    from typing import Annotated, Any
    
    import pytest
    from fastapi import APIRouter, Depends, FastAPI, HTTPException
    from fastapi.exceptions import FastAPIError
    from fastapi.responses import StreamingResponse
    from fastapi.testclient import TestClient
    
    
    class Session:
        def __init__(self) -> None:
            self.open = True
    
    
    def dep_session() -> Any:
        s = Session()
        yield s
        s.open = False
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. cmd/bucket-notification-handlers.go

    )
    
    const (
    	bucketNotificationConfig = "notification.xml"
    )
    
    // GetBucketNotificationHandler - This HTTP handler returns event notification configuration
    // as per http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html.
    // It returns empty configuration if its not set.
    func (api objectAPIHandlers) GetBucketNotificationHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "GetBucketNotification")
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 5.1K bytes
    - Click Count (0)
  3. 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  4. tests/test_dependency_class.py

    from collections.abc import AsyncGenerator, Generator
    
    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    class CallableDependency:
        def __call__(self, value: str) -> str:
            return value
    
    
    class CallableGenDependency:
        def __call__(self, value: str) -> Generator[str, None, None]:
            yield value
    
    
    class AsyncCallableDependency:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. tests/test_regex_deprecated_body.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Form
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. docs/de/docs/project-generation.md

    - 🔒 Sicheres Passwort-Hashing standardmäßig.
    - 🔑 JWT (JSON Web Token)-Token-Authentifizierung.
    - 📫 E-Mail-basierte Passwortwiederherstellung.
    - ✅ Tests mit [Pytest](https://pytest.org).
    - 📞 [Traefik](https://traefik.io) als Reverse-Proxy / Load Balancer.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  7. docs/ru/docs/project-generation.md

    - 🐋 [Docker Compose](https://www.docker.com) для разработки и продакшна.
    - 🔒 Безопасное хэширование паролей по умолчанию.
    - 🔑 Аутентификация по JWT‑токенам.
    - 📫 Восстановление пароля по электронной почте.
    - ✅ Тесты с [Pytest](https://pytest.org).
    - 📞 [Traefik](https://traefik.io) в роли обратного прокси / балансировщика нагрузки.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_bigger_applications/test_main.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            "app_py39.main",
            "app_an_py39.main",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.bigger_applications.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_users_token_jessica(client: TestClient):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  9. .teamcity/src/main/kotlin/promotion/PublishNightlySnapshotFromQuickFeedback.kt

            triggerName = "QuickFeedback",
        ) {
        init {
            id("Promotion_SnapshotFromQuickFeedback")
            name = "Nightly Snapshot (from QuickFeedback)"
            description = "Promotes the latest successful changes on '${branch.branchName}' from Quick Feedback as a new nightly snapshot"
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Mar 20 06:13:56 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  10. tests/test_get_model_definitions_formfeed_escape.py

    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @pytest.fixture(name="client")
    def client_fixture() -> TestClient:
        from pydantic import BaseModel
    
        class Address(BaseModel):
            """
            This is a public description of an Address
            \f
            You can't see this part of the docstring, it's private!
            """
    
            line_1: str
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top