Skip to content

Releases: 15r10nk/inline-snapshot

v0.14.0

10 Nov 21:45
Compare
Choose a tag to compare

Added

  • command line shortcuts can be defined to simplify your workflows. --review and --fix are defined by default. See the documentation for details.

Removed

  • removed the "Programming Language :: Python :: Implementation :: PyPy" classifier which was incorrect, because inline-snapshot can not fix snapshots on pypy.
    inline-snapshot now enforces --inline-snapshot=disable when used with an implementation other than cpython, which allows it to be used in packages that want to support pypy.

Changed

  • --inline-snapshot=create/fix/trim/update will no longer show reports for other categories.
    You can use --inline-snapshot=create,report if you want to use the old behaviour.

Full Changelog: v0.13.4...v0.14.0

v0.13.4

07 Nov 08:18
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.3...v0.13.4

v0.13.3

24 Sep 13:21
Compare
Choose a tag to compare

Fixed

  • removed non-optional dirty-equals dependency (#118)

v0.13.2

24 Sep 09:20
Compare
Choose a tag to compare

Changed

  • star-expressions in list or dicts where never valid and cause a warning now.
        other=[2]
        assert [5,2]==snapshot([5,*other])
    

Fixed

  • A snapshot which contains an dirty-equals expression can now be compared multiple times.

    def test_something():
        greeting = "hello"
        for name in ["alex", "bob"]:
            assert (name, greeting) == snapshot((IsString(), "hello"))

v0.13.1

18 Sep 19:13
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.0...v0.13.1

v0.13.0

10 Sep 18:27
Compare
Choose a tag to compare

The new prints function allows you to snapshot the output of your code.

from inline_snapshot import snapshot
from inline_snapshot.extra import prints
import sys

def test_prints():
    with prints(
        stdout=snapshot("hello world\n"), stderr=snapshot("some error\n")
    ):
        print("hello world")
        print("some error", file=sys.stderr)

I started also a list of all third-party extensions

What's Changed

Full Changelog: v0.12.1...v0.13.0

v0.12.1

05 Aug 19:49
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.12.0...v0.12.1

v0.12.0

22 Jul 20:07
Compare
Choose a tag to compare

What's Changed

  • feat: implement inline_snapshot.extra.raises by @15r10nk in #102
  • feat: added inline_snapshot.testing.Example which can be used to test 3rd-party extensions by @15r10nk in #95
  • chore: use hatch by @15r10nk in #101

Full Changelog: v0.11.0...v0.12.0

v0.11.0

07 Jul 06:55
Compare
Choose a tag to compare

What's Changed

  • support for enum.Enum, enum.Flag, type and omitting of default values
  • feat: customize repr (#73) by @15r10nk in #85

Full Changelog: v0.10.2...v0.11.0

v0.10.2

28 May 06:58
Compare
Choose a tag to compare

What's Changed

  • fix: changed how --inline-snapshot=disable works in combination with xdist by @15r10nk in #93
  • fix: Fix typo, rename theme with them by @patrick91 in #92
  • docs: fix docu generation in ci by @15r10nk in #94

Full Changelog: v0.10.1...v0.10.2