- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 3,817 for patch (0.02 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial010.py
from typing import Annotated, Any from unittest.mock import Mock, patch from fastapi import Depends, FastAPI from fastapi.testclient import TestClient from docs_src.dependencies.tutorial010_py39 import get_db def test_get_db(): app = FastAPI() @app.get("/") def read_root(c: Annotated[Any, Depends(get_db)]): return {"c": str(c)} client = TestClient(app) dbsession_mock = Mock()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 688 bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py
import importlib from types import ModuleType from unittest.mock import patch import pytest from ...utils import needs_py310 @pytest.fixture( name="module", params=[ pytest.param("tutorial009_py39"), pytest.param("tutorial009_py310", marks=needs_py310), pytest.param("tutorial009b_py39"), ], ) def get_module(request: pytest.FixtureRequest):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 805 bytes - Viewed (0) -
tests/test_tutorial/test_generate_clients/test_tutorial004.py
import importlib import json import pathlib from unittest.mock import patch from docs_src.generate_clients import tutorial003_py39 def test_remove_tags(tmp_path: pathlib.Path): tmp_file = tmp_path / "openapi.json" openapi_json = tutorial003_py39.app.openapi() tmp_file.write_text(json.dumps(openapi_json)) with patch("pathlib.Path", return_value=tmp_file):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 8.3K bytes - Viewed (0) -
tests/test_fastapi_cli.py
env={**os.environ, "PYTHONIOENCODING": "utf-8"}, ) assert result.returncode == 1, result.stdout assert "Path does not exist non_existent_file.py" in result.stdout def test_fastapi_cli_not_installed(): with patch.object(fastapi.cli, "cli_main", None): with pytest.raises(RuntimeError) as exc_info: fastapi.cli.main()Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 04:02:38 UTC 2025 - 866 bytes - Viewed (0) -
docs/en/docs/deployment/versions.md
Following the Semantic Versioning conventions, any version below `1.0.0` could potentially add breaking changes. FastAPI also follows the convention that any "PATCH" version change is for bug fixes and non-breaking changes. /// tip The "PATCH" is the last number, for example, in `0.2.3`, the PATCH version is `3`. /// So, you should be able to pin to a version like: ```txt fastapi>=0.45.0,<0.46.0 ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.5K bytes - Viewed (0) -
docs/es/docs/deployment/versions.md
FastAPI también sigue la convención de que cualquier cambio de versión "PATCH" es para corrección de bugs y cambios no incompatibles. /// tip | Consejo El "PATCH" es el último número, por ejemplo, en `0.2.3`, la versión PATCH es `3`. /// Así que deberías poder fijar a una versión como: ```txt fastapi>=0.45.0,<0.46.0 ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 3.9K bytes - Viewed (0) -
docs/zh/docs/deployment/versions.md
你可以在[发行说明](../release-notes.md){.internal-link target=_blank}中查看可用版本(例如查看当前最新版本)。 ## 关于版本 遵循语义版本控制约定,任何低于`1.0.0`的版本都可能会添加 breaking changes。 FastAPI 还遵循这样的约定:任何`PATCH`版本更改都是为了bug修复和non-breaking changes。 /// tip "PATCH"是最后一个数字,例如,在`0.2.3`中,PATCH版本是`3`。 /// 因此,你应该能够固定到如下版本: ```txt fastapi>=0.45.0,<0.46.0 ``` "MINOR"版本中会添加breaking changes和新功能。 /// tipRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 3.1K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial001_tutorial002.py
import runpy from unittest.mock import patch import pytest @pytest.mark.parametrize( "module_name", [ "tutorial001_py39", "tutorial002_py39", ], ) def test_run_module(module_name: str): with patch("builtins.print") as mock_print: runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 398 bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/PathType.java
* * @param paths the path to format as a string * @return the option associated to this path type followed by the given path elements, * or an empty array if there is no path element. */ @Nonnull String[] option(Iterable<? extends Path> paths); /** * Returns the name of this path type. For example, if this path typeRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Jan 07 12:02:00 UTC 2025 - 5K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-updates.md
すでに格納されている属性`"tax": 20.2`を含まないため、入力モデルのデフォルト値は`"tax": 10.5`です。 そして、データはその「新しい」`10.5`の`tax`と共に保存されます。 ## `PATCH`による部分的な更新 また、<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH" class="external-link" target="_blank">HTTPの`PATCH`</a>操作でデータを*部分的に*更新することもできます。 つまり、更新したいデータだけを送信して、残りはそのままにしておくことができます。 /// note | 備考 `PATCH`は`PUT`よりもあまり使われておらず、知られていません。 また、多くのチームは部分的な更新であっても`PUT`だけを使用しています。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5K bytes - Viewed (0)