- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 22 for dependency_overrides (0.09 seconds)
-
docs/en/docs/reference/fastapi.md
```python from fastapi import FastAPI ``` ::: fastapi.FastAPI options: members: - openapi_version - webhooks - state - dependency_overrides - openapi - websocket - include_router - get - put - post - delete - options - headCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 701 bytes - Click Count (0) -
fastapi/dependencies/utils.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 38.7K bytes - Click Count (3) -
fastapi/routing.py
Sofie Van Landeghem <******@****.***> 1773575079 +0100
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0) -
tests/test_dependency_overrides.py
) def test_override_simple(url, status_code, expected): app.dependency_overrides[common_parameters] = overrider_dependency_simple response = client.get(url) assert response.status_code == status_code assert response.json() == expected app.dependency_overrides = {} def test_override_with_sub_main_depends(): app.dependency_overrides[common_parameters] = overrider_dependency_with_sub
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 11.2K bytes - Click Count (0) -
docs/uk/docs/advanced/testing-dependencies.md
### Використовуйте атрибут `app.dependency_overrides` { #use-the-app-dependency-overrides-attribute } Для таких випадків ваш застосунок FastAPI має атрибут `app.dependency_overrides`, це простий `dict`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:43:14 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/ja/docs/advanced/testing-dependencies.md
外部プロバイダ自体の動作は一度はテストしたいでしょうが、実行されるすべてのテストで毎回呼び出す必要はありません。 この場合、そのプロバイダを呼び出す依存関係をオーバーライドし、テストのときだけモックユーザーを返すカスタムの依存関係を使えます。 ### app.dependency_overrides 属性を使う { #use-the-app-dependency-overrides-attribute } このような場合のために、**FastAPI** アプリケーションには `app.dependency_overrides` という属性があり、これは単純な `dict` です。 テスト用に依存関係をオーバーライドするには、キーに元の依存関係(関数)を、値にオーバーライドする依存関係(別の関数)を設定します。 すると **FastAPI** は元の依存関係の代わりにそのオーバーライドを呼び出します。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 3K bytes - Click Count (0) -
docs/tr/docs/advanced/testing-dependencies.md
### `app.dependency_overrides` Attribute'ünü Kullanın { #use-the-app-dependency-overrides-attribute } Bu tür durumlar için **FastAPI** uygulamanızda `app.dependency_overrides` adında bir attribute bulunur; bu basit bir `dict`'tir.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 12:41:38 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/en/docs/advanced/testing-dependencies.md
### Use the `app.dependency_overrides` attribute { #use-the-app-dependency-overrides-attribute } For these cases, your **FastAPI** application has an attribute `app.dependency_overrides`, it is a simple `dict`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 2.4K bytes - Click Count (0) -
docs/es/docs/advanced/testing-dependencies.md
### Usa el atributo `app.dependency_overrides` { #use-the-app-dependency-overrides-attribute } Para estos casos, tu aplicación **FastAPI** tiene un atributo `app.dependency_overrides`, es un simple `dict`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:41:41 GMT 2026 - 2.6K bytes - Click Count (0) -
docs/ru/docs/advanced/testing-dependencies.md
### Используйте атрибут `app.dependency_overrides` { #use-the-app-dependency-overrides-attribute } Для таких случаев у вашего приложения **FastAPI** есть атрибут `app.dependency_overrides`, это простой `dict`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 30 11:37:11 GMT 2025 - 4.3K bytes - Click Count (0)