- Allow snapshot files to be modified before being written #149
- Add typed enums support for TypeFormatter #163
- Add support for python 3.12 by using importlib instead of imp #168
- adding super().setUp() call to unittest.TestCase #169
- Require Python 3.5+
- Sort written snapshots.
- Extract Django TestRunner to a mixin so it can be used with alternative base classes.
- Handle SortedDict with keys other than strings.
- Fix error when snapshotting mock Calls objects.
- Fix formatting of
float("nan")
andfloat("inf")
. - Adopt a valid PEP-508 version range for fastdiff.
- Documentation improvements.
- Add tests and changelog to sdist.
- Add named snapshots #18
- Add support for file snapshots #54
- Hide empty output in the Django test runner #60
- Fix snapshot-update with nose #19
- Fix comparisons again objects stored as GenericRepr #20
- Fix setting snapshot_should_update on other TestCases #33
- Fix using non-ASCII characters #31
- Fix fail silently when snapshot files are invalid #45
- Remove unused snapshots in the Django runner #43
- Fix python3 multiline unicode snapshots #46
- Fix checks against falsy snapshots #50
- Various fixes in GenericFormatter and collection formatters #82
- Fix pytest parameterize for multiline strings #87
- Documentation improvements.
- Add wheel distribution #11
- Combine build scripts into a Makemile #83
- Update fastdiff version
- Add django support. Closes #1
- Add
snapshottest.django.TestRunner
- Add
snapshottest.django.TestCase
- Add
--snapshot-update
to django test command. You can usepython manage.py test --snapshot-update
- Add
- Fix #3, all dicts are sorted before saving it and before comparing.
- Drop support for
python 3.3
. Since django don't support that version of python. - Since all dicts are sorted, this cloud be a breaking change for your tests.
Use the
--snapshot-update
option to update your tests