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
Syrupy is a zero-dependency [pytest](https://docs.pytest.org/en/latest/) snapshot plugin. It enables developers to write tests which assert immutability of computed results.
14
14
15
15
## Motivation
16
16
17
-
The most popular snapshot test plugin compatible with pytest has some core limitations which this package attempts to address by upholding some key values:
17
+
Syrupy upholds three principles:
18
18
19
19
- Extensible: If a particular data type is not supported, users should be able to easily and quickly add support.
20
20
- Idiomatic: Snapshot testing should fit naturally among other test cases in pytest, e.g. `assert x == snapshot` vs. `snapshot.assert_match(x)`.
@@ -26,23 +26,14 @@ The most popular snapshot test plugin compatible with pytest has some core limit
26
26
python -m pip install syrupy
27
27
```
28
28
29
-
### Migration from snapshottest
30
-
31
-
You cannot use syrupy alongside snapshottest due to argument conflicts. To ease migration, we've made syrupy aware of snapshottest call syntax. Simply uninstall snapshottest and remove old snapshots:
Syrupy will always be compatible with the latest version of Python and Pytest. If you're running an old version of Python or Pytest, you will need to use an older major version of Syrupy:
41
32
42
33
| Syrupy Version | Python Support | Pytest Support |
@@ -545,6 +536,17 @@ See [#675](https://github.com/syrupy-project/syrupy/issues/675) for the original
545
536
546
537
_We welcome contributions to patch these known limitations._
547
538
539
+
## Migrating from another tool
540
+
541
+
### From snapshottest
542
+
543
+
You cannot use syrupy alongside snapshottest due to argument conflicts. To ease migration, we've made syrupy aware of snapshottest call syntax. Simply uninstall snapshottest and remove old snapshots:
0 commit comments