You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You now have to specify `test-dir` in your pyproject.toml when you save your tests in a folder other than `tests/` in your project root (#272).
4
+
5
+
### Fixed
6
+
7
+
-`pyproject.toml` is now also located based on the current directory and the `pytest-root`, which solves problems when you use inline-snapshot with uv-workspaces (#272).
Copy file name to clipboardExpand all lines: docs/configuration.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ fix=["create","fix"]
62
62
```
63
63
64
64
=== "no command (default)"
65
-
inline-snapshot will format only the snapshot values with black when you specified no format command but needs black installed with `inline-snapshot[black]`.
65
+
inline-snapshot will format only the snapshot values with black when you specify no format command, but requires black to be installed with `inline-snapshot[black]`.
66
66
67
67
The placeholder `{filename}` can be used to specify the filename if it is needed to find the correct formatting options for this file.
68
68
@@ -71,11 +71,12 @@ fix=["create","fix"]
71
71
72
72
***show-updates:**[](){#show-updates} shows updates in reviews and reports.
73
73
74
-
75
-
***default-storage:**[](){#default-storage} defines the default storage protocol to be used when creating snapshots without an explicit storage protocol (e.g. like `external()`).
74
+
***default-storage:**[](){#default-storage} defines the default storage protocol to be used when creating snapshots without an explicit storage protocol, such as `external()`.
76
75
Possible values are `hash` and `uuid`.
77
-
external snapshots created by `outsource()` do not currently support this setting due to some internal limitations and will always use the old `hash` protocol.
76
+
External snapshots created by `outsource()` do not currently support this setting due to some internal limitations and will always use the old `hash` protocol.
78
77
79
-
***tests-dir:** can be used to define where your tests are located.
80
-
The default is `<pytest_config_dir>/tests` if it exists or `<pytest_config_dir>` if you have no tests directory,
78
+
***test-dir:** can be used to define where your tests are located.
79
+
The default is `<pytest_config_dir>/tests` if it exists,
81
80
where `<pytest_config_dir>` is replaced by the directory containing the Pytest configuration file, if any.
81
+
This directory is used to search through all test files for `external()` calls and to check whether the currently saved external objects are still used in the source.
82
+
It is therefore required if you want to *trim* unused externals.
0 commit comments