Skip to content

Commit

Permalink
➕ Add inline-snapshot for tests (fastapi#12189)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Sep 11, 2024
1 parent 212fd5e commit 24b8f26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 24b8f26

Please sign in to comment.