From: Sebastián Ramírez Date: Wed, 11 Sep 2024 22:49:55 +0000 (+0200) Subject: ➕ Add inline-snapshot for tests (#12189) X-Git-Tag: 0.114.2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24b8f2668beb773895a93040a2ae284898dc58b1;p=thirdparty%2Ffastapi%2Ffastapi.git ➕ Add inline-snapshot for tests (#12189) --- diff --git a/pyproject.toml b/pyproject.toml index bb87be470e..1be2817a1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -241,3 +241,7 @@ known-third-party = ["fastapi", "pydantic", "starlette"] [tool.ruff.lint.pyupgrade] # Preserve types, even if a file imports `from __future__ import annotations`. keep-runtime-typing = true + +[tool.inline-snapshot] +# default-flags=["fix"] +# default-flags=["create"] diff --git a/requirements-tests.txt b/requirements-tests.txt index 809a19c0ce..2f2576dd50 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -14,7 +14,7 @@ anyio[trio] >=3.2.1,<4.0.0 PyJWT==2.8.0 pyyaml >=5.3.1,<7.0.0 passlib[bcrypt] >=1.7.2,<2.0.0 - +inline-snapshot==0.13.0 # types types-ujson ==5.7.0.1 types-orjson ==3.6.2