]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
➕ Add inline-snapshot for tests (#12189)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 11 Sep 2024 22:49:55 +0000 (00:49 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2024 22:49:55 +0000 (22:49 +0000)
pyproject.toml
requirements-tests.txt

index bb87be470e375c787c218cd177b3794cddab04a5..1be2817a1f32fb5e2bd389fce8567a457b45d3af 100644 (file)
@@ -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"]
index 809a19c0ceff9d72ee69dd103f1bbdcc56739f33..2f2576dd503e1be53f8e9e78e8d7d6c2425567b8 100644 (file)
@@ -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