Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1211 - 1220 of 1,377 for app (0.05 seconds)

  1. tests/test_tutorial/test_dependencies/test_tutorial011.py

            pytest.param("tutorial011_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dependencies.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            (
                "/query-checker/",
                200,
                {"fixed_content_in_query": False},
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_response_model/test_tutorial003_05.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_model.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_get_portal(client: TestClient):
        response = client.get("/portal")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/async-tests.md

    ## 示例
    
    举个简单的例子,让我们来看一个[更大的应用](../tutorial/bigger-applications.md){.internal-link target=_blank}和[测试](../tutorial/testing.md){.internal-link target=_blank}中描述的类似文件结构:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    文件 `main.py` 将包含:
    
    {* ../../docs_src/async_tests/main.py *}
    
    文件 `test_main.py` 将包含针对 `main.py` 的测试,现在它可能看起来如下:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 17 21:49:06 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_generate_clients/test_tutorial001.py

        params=[
            pytest.param("tutorial001_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.generate_clients.{request.param}")
        client = TestClient(mod.app)
        return client
    
    
    def test_post_items(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": 5})
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py

        ],
    )
    def get_client(request: pytest.FixtureRequest) -> TestClient:
        mod = importlib.import_module(f"docs_src.separate_openapi_schemas.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_create_item(client: TestClient) -> None:
        response = client.post("/items/", json={"name": "Foo"})
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 5K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.path_operation_advanced_configuration.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            - x-force
            - x-men
            - x-avengers
            """
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. docs/en/data/sponsors.yml

        img: https://fastapi.tiangolo.com/img/sponsors/liblab.png
      - url: https://docs.render.com/deploy-fastapi?utm_source=deploydoc&utm_medium=referral&utm_campaign=fastapi
        title: Deploy & scale any full-stack web app on Render. Focus on building apps, not infra.
        img: https://fastapi.tiangolo.com/img/sponsors/render.svg
      - url: https://www.coderabbit.ai/?utm_source=fastapi&utm_medium=badge&utm_campaign=fastapi
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 20:06:57 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/middleware.md

    Якщо були заплановані фонові задачі (background tasks - розглянуто далі), вони виконаються *після* всіх middleware.
    
    ///
    
    ## Створення middleware
    
    Щоб створити middleware, Ви використовуєте декоратор `@app.middleware("http")` на функції.
    
    Функція middleware отримує:
    
    * `Запит`.
    * Функцію `call_next`, яка приймає `запит` як параметр.
        * Ця функція передає `запит` відповідній *операції шляху*.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  9. docs/ru/docs/deployment/fastapicloud.md

    Теперь разверните приложение одной командой:
    
    <div class="termy">
    
    ```console
    $ fastapi deploy
    
    Deploying to FastAPI Cloud...
    
    ✅ Deployment successful!
    
    🐔 Ready the chicken! Your app is ready at https://myapp.fastapicloud.dev
    ```
    
    </div>
    
    Вот и всё! Теперь вы можете открыть своё приложение по этому URL. ✨
    
    ## О FastAPI Cloud { #about-fastapi-cloud }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_additional_responses/test_tutorial002.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.additional_responses.{request.param}")
    
        client = TestClient(mod.app)
        client.headers.clear()
        return client
    
    
    def test_path_operation(client: TestClient):
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4.7K bytes
    - Click Count (0)
Back to Top