Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1291 - 1300 of 1,377 for app (0.01 seconds)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post_all(client: TestClient):
        data = {
            "name": "Special Offer",
            "description": "This is a special offer",
            "price": 38.6,
            "items": [
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/background-tasks.md

    But if you need to access variables and objects from the same **FastAPI** app, or you need to perform small background tasks (like sending an email notification), you can simply just use `BackgroundTasks`.
    
    ## Recap { #recap }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  3. README.md

    -------
    If you want to bootstrap Maven, you'll need:
    - Java 17+
    - Maven 3.6.3 or later
    - Run Maven, specifying a location into which the completed Maven distro should be installed:
        ```
        mvn -DdistributionTargetDir="$HOME/app/maven/apache-maven-4.1.x-SNAPSHOT" clean package
        ```
    
    
    [home]: https://maven.apache.org/
    [license]: https://www.apache.org/licenses/LICENSE-2.0
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Nov 16 13:30:57 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_body/test_tutorial001.py

            pytest.param("tutorial001_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_body_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
        assert response.json() == {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/path-operation-advanced-configuration.md

    You should do it after adding all your *path operations*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip
    
    If you manually call `app.openapi()`, you should update the `operationId`s before that.
    
    ///
    
    /// warning
    
    If you do this, you have to make sure each one of your *path operation functions* has a unique name.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  6. cmd/sts-handlers_test.go

    	c.mustNotCreateSvcAccount(ctx, globalActiveCred.AccessKey, userAdmClient)
    }
    
    var testAppParams = OpenIDClientAppParams{
    	ClientID:     "minio-client-app",
    	ClientSecret: "minio-client-app-secret",
    	ProviderURL:  "http://127.0.0.1:5556/dex",
    	RedirectURL:  "http://127.0.0.1:10000/oauth_callback",
    }
    
    const (
    	EnvTestOpenIDServer  = "_MINIO_OPENID_TEST_SERVER"
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 103.4K bytes
    - Click Count (1)
  7. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Deberías hacerlo después de agregar todas tus *path operations*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip | Consejo
    
    Si llamas manualmente a `app.openapi()`, deberías actualizar los `operationId`s antes de eso.
    
    ///
    
    /// warning | Advertencia
    
    Si haces esto, tienes que asegurarte de que cada una de tus *path operation functions* tenga un nombre único.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  8. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    Você deve fazer isso depois de adicionar todas as suas *operações de rota*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip | Dica
    
    Se você chamar `app.openapi()` manualmente, os `operationId`s devem ser atualizados antes dessa chamada.
    
    ///
    
    /// warning | Atenção
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  9. docs/ru/docs/environment-variables.md

    Hello World from Python
    ```
    
    </div>
    
    /// tip | Совет
    
    Подробнее об этом можно прочитать на сайте <a href="https://12factor.net/config" class="external-link" target="_blank">The Twelve-Factor App: Config</a>.
    
    ///
    
    ## Типизация и Валидация { #types-and-validation }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  10. tests/test_application.py

    import pytest
    from fastapi.testclient import TestClient
    
    from .main import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/api_route", 200, {"message": "Hello World"}),
            ("/non_decorated_route", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(path, expected_status, expected_response):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 51.9K bytes
    - Click Count (0)
Back to Top