head	1.19;
access;
symbols
	pkgsrc-2026Q3:1.19.0.2
	pkgsrc-2026Q3-base:1.19
	pkgsrc-2026Q2:1.17.0.2
	pkgsrc-2026Q2-base:1.17
	pkgsrc-2026Q1:1.14.0.2
	pkgsrc-2026Q1-base:1.14
	pkgsrc-2025Q4:1.12.0.2
	pkgsrc-2025Q4-base:1.12
	pkgsrc-2025Q3:1.9.0.2
	pkgsrc-2025Q3-base:1.9
	pkgsrc-2025Q2:1.8.0.4
	pkgsrc-2025Q2-base:1.8
	pkgsrc-2025Q1:1.8.0.2
	pkgsrc-2025Q1-base:1.8
	pkgsrc-2024Q4:1.1.0.2
	pkgsrc-2024Q4-base:1.1;
locks; strict;
comment	@# @;


1.19
date	2026.09.03.11.47.41;	author adam;	state Exp;
branches;
next	1.18;
commitid	W4auDTx4RfEGzaUG;

1.18
date	2026.07.01.07.36.04;	author adam;	state Exp;
branches;
next	1.17;
commitid	StW9Q07MEswReVLG;

1.17
date	2026.04.30.11.08.10;	author adam;	state Exp;
branches;
next	1.16;
commitid	1UdjGNhMeIDbpYDG;

1.16
date	2026.04.20.13.26.08;	author adam;	state Exp;
branches;
next	1.15;
commitid	eisF7QNlmwusuHCG;

1.15
date	2026.03.30.07.39.15;	author adam;	state Exp;
branches;
next	1.14;
commitid	gwDx5ByeZsmkfYzG;

1.14
date	2026.03.05.09.55.29;	author adam;	state Exp;
branches;
next	1.13;
commitid	pb3rX4Dk3LDQNLwG;

1.13
date	2026.02.17.12.45.10;	author adam;	state Exp;
branches;
next	1.12;
commitid	qEDDZQFJIzyTfJuG;

1.12
date	2025.11.16.10.39.18;	author adam;	state Exp;
branches;
next	1.11;
commitid	J6uWY6sayvl6yLiG;

1.11
date	2025.11.04.11.53.00;	author adam;	state Exp;
branches;
next	1.10;
commitid	BqEwh01piUFblehG;

1.10
date	2025.10.03.12.14.26;	author adam;	state Exp;
branches;
next	1.9;
commitid	yRKjzxB5APFmu7dG;

1.9
date	2025.08.12.06.14.24;	author adam;	state Exp;
branches;
next	1.8;
commitid	B6vnQCdqGYMsap6G;

1.8
date	2025.03.13.15.10.37;	author adam;	state Exp;
branches;
next	1.7;
commitid	mAw6h5juMDnq1VMF;

1.7
date	2025.03.04.05.15.02;	author adam;	state Exp;
branches;
next	1.6;
commitid	ZaQaej5L8GHZ0ILF;

1.6
date	2025.02.26.09.42.46;	author adam;	state Exp;
branches;
next	1.5;
commitid	ODheG5Z3F5APGXKF;

1.5
date	2025.02.05.20.47.31;	author adam;	state Exp;
branches;
next	1.4;
commitid	4IpZoqzvfFYI2kIF;

1.4
date	2025.01.16.08.31.43;	author adam;	state Exp;
branches;
next	1.3;
commitid	7g6X9VzWNigcCGFF;

1.3
date	2025.01.14.08.38.20;	author adam;	state Exp;
branches;
next	1.2;
commitid	nFz9Ws9CqJDpIqFF;

1.2
date	2025.01.09.10.32.25;	author adam;	state Exp;
branches;
next	1.1;
commitid	lKbWC5wnelGqvNEF;

1.1
date	2024.11.11.09.00.47;	author wiz;	state Exp;
branches;
next	;
commitid	T38KU7Bw1A6NTcxF;


desc
@@


1.19
log
@py-inline-snapshot: updated to 0.35.4

0.35.4 — 2026-08-11

Fixed

- Prevented `--inline-snapshot=trim` from changing snapshots when a test body
  fails or pytest is limited with `-k`, a test path, or a test node ID. Skipped
  tests and fixture teardown errors do not prevent trimming. A message now
  explains why trimming was disabled when it was requested implicitly. An
  explicit `--inline-snapshot=trim` overrides this safeguard.

- Fixed a crash during session finalization when pytest's capture plugin is disabled.
@
text
@$NetBSD: distinfo,v 1.18 2026/07/01 07:36:04 adam Exp $

BLAKE2s (inline_snapshot-0.35.4.tar.gz) = 1ce1a8d942317bf918373d4d508092323e13004decee74fc664b5b54aafeba42
SHA512 (inline_snapshot-0.35.4.tar.gz) = 8e3e7537b21c012607337eb3792f79e2c96fb4befb034b8079453c1bdbfd58f8ceb494b9008be9eabce449e76e9eb6e6bb492e2cbacb14508abbe8226297d178
Size (inline_snapshot-0.35.4.tar.gz) = 2537089 bytes
@


1.18
log
@py-inline-snapshot: updated to 0.34.2

0.34.2

Fixed

- Fixed snapshot updates when pytest reuses stale assertion-rewrite cache files after a test folder is moved, which could leave cached code objects pointing at the old source path

0.34.1

Fixed

- Fixed `snapshot_arg()` to use the `fix` category (instead of `create`) when creating an argument with an existing non-ellipsis default argument value.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.17 2026/04/30 11:08:10 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.34.2.tar.gz) = 338aa9e007da38cc94f33afd236180c56a202185ff7a4997377685b9d691a6e2
SHA512 (inline_snapshot-0.34.2.tar.gz) = fc2a388aa70e991de641d19ab97c7313dd982248af25013f97313517e1bfd673086f73d60318316c0312c21c6703c567519e2e3a7baeeb14ad5a324c047f59ae
Size (inline_snapshot-0.34.2.tar.gz) = 2641142 bytes
@


1.17
log
@py-inline-snapshot: updated to 0.32.7

0.32.7 — 2026-04-23

Fixed

- Fixed snapshot comparison for dicts where keys are dataclass instances (or other custom objects used as dict keys), which previously caused corrupted snapshots — either collapsing multiple entries into one or appending duplicate keys on subsequent runs.
- Fixed tuple snapshot updates to compare elements positionally rather than using sequence alignment, so existing expressions (e.g. `3 + 3`) are preserved when elements are removed from or added to a tuple.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.16 2026/04/20 13:26:08 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.32.7.tar.gz) = 4645ae495eefcb563f94724af6ea358b81730c8fb3b22fe32f8afa750e08675d
SHA512 (inline_snapshot-0.32.7.tar.gz) = 2e417a21e9fa1d315981ab449c3682a3d925035cb6d5dc66cfb77f635e46c12fce9727aaa0c9ad37aeb6e1aa1a3f2fa3a9326e6c0f9e68777bc0f7a62dcd7228
Size (inline_snapshot-0.32.7.tar.gz) = 2630267 bytes
@


1.16
log
@py-inline-snapshot: updated to 0.32.6

0.32.6 — 2026-04-10

Fixed

- Pydantic models, attrs and dataclasses with `NewType`-typed fields now generate correct snapshots that wrap the field value with the `NewType` constructor (e.g. `Something(some_id=SomeID(1))` instead of `Something(some_id=1)`). This could only be fixed for Python >= 3.10.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.15 2026/03/30 07:39:15 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.32.6.tar.gz) = 3809106119dc240a2cda819126b0b2d3194e5a2655a4864a02761fe745a1cdf9
SHA512 (inline_snapshot-0.32.6.tar.gz) = 853b0091e28244fd6d493a1a3d19ff947ce96b424f8e4700ec1f1e82c70fbda5113ee3b8b76f37efc74a80f14b999ff3f9c156936b3c626d67407216d00a8b3e
Size (inline_snapshot-0.32.6.tar.gz) = 2627401 bytes
@


1.15
log
@py-inline-snapshot: updated to 0.32.5

0.32.5 — 2026-03-13

- Fixed a bug where tuples used as snapshot keys caused problems because they had the same hash value
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.14 2026/03/05 09:55:29 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.32.5.tar.gz) = a50b8e9bc4b7514e750aec8562cdb1b2c5bd18bd4e49085caf7f8a38e42164bd
SHA512 (inline_snapshot-0.32.5.tar.gz) = a5f4878a89a24ef8bd246ec652095363092f7127cc9135a63f6b2695be80593a67adb4b098a5f6f887fcbc566b48325bd4e3cf7be16aed13193ff7e0e6e31409
Size (inline_snapshot-0.32.5.tar.gz) = 2626796 bytes
@


1.14
log
@py-inline-snapshot: updated to 0.32.4

 0.32.4 — 2026-03-01

Added

- Added `context_managers` parameter to `Example.run_inline()`, allowing tests to inject context managers (e.g. `unittest.mock.patch`) that are active during `show_report()`.

Fixed

- Fixed `UsageError("unmanaged values can not be compared with snapshots")` raised during session teardown when using `-k` to filter tests. This was caused by inline-snapshot trying to update snapshots that were never compared. This is a rare edge case that caused problems when matchers were used, so it has been removed.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.13 2026/02/17 12:45:10 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.32.4.tar.gz) = e6999f7371193f6dec1cc930b3976b7f43ec90832544826c3cb634c98849a4a4
SHA512 (inline_snapshot-0.32.4.tar.gz) = 9738339178996f7f45e7fc1f2f554f59847065ee15591d2ef09dae57e9a8ea27025f78e7258ee27d0a0856cfb5a3834650cfcf547430106e75b22bab67c2dd1f
Size (inline_snapshot-0.32.4.tar.gz) = 2626703 bytes
@


1.13
log
@py-inline-snapshot: updated to 0.32.1

0.32.1 — 2026-02-17

Fixed

- Fixed handling of `datetime` and `time` objects with timezone information. The `tzinfo` parameter is now properly included in snapshots, and `timezone.utc` is represented with the correct import (`from datetime import timezone`).

- Fixed customize hook registration to properly check if objects are functions before inspecting the `inline_snapshot_impl` attribute, preventing potential attribute errors when scanning conftest modules.

0.32.0 — 2026-02-13

Removed

- removed support for python 3.8 because it is end-of-life

Added

- `pathlib.Path/PurePath` values are now never stored as `Posix/WindowsPath` or their Pure variants, which improves the writing of platform independent tests.

- Support for [import statement generation](https://15r10nk.github.io/inline-snapshot/latest/plugin/#inline_snapshot.plugin.Builder.create_code) for all types and user-customized code.
- Added a new way to customize snapshot creation with [`@@customize`](https://15r10nk.github.io/inline-snapshot/latest/plugin/#inline_snapshot.plugin.InlineSnapshotPluginSpec.customize).
- Added a [plugin system](https://15r10nk.github.io/inline-snapshot/latest/plugin/#creating-a-plugin-package) which allows you to reuse customizations across multiple projects.
- Added support for [conditional external](https://15r10nk.github.io/inline-snapshot/latest/plugin/#conditional-external-objects) storage to automatically store values in external files based on custom criteria (e.g., string length, data size).
- Added built-in handlers for `datetime.datetime`, `date`, `time`, and `timedelta` that generate clean snapshots with proper imports.
- Generates `__file__` instead of the filename string of the current source file.
- Uses dirty-equals `IsNow()` instead of the current datetime when the time value equals the current time.

Deprecated

- Deprecated `@@customize_repr` which can be replaced with `@@customize`.

Fixed

- `raises` catches BaseException instead of Exception. This ensures that SystemExit and KeyboardInterrupt are also caught.

- pytest --color flag is now respected
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.12 2025/11/16 10:39:18 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.32.1.tar.gz) = 09ebd3fd1d196951e1a68e9657198d73ac007f2a87d151d308b8f2a260c85d79
SHA512 (inline_snapshot-0.32.1.tar.gz) = c91b426c1186d236e958c5a1b6bc87b66f35ba989db6b22607ce2867debd01c22600ee9c52211a22654480ac2caaff099c269ef3d487d599064cd9329b215266
Size (inline_snapshot-0.32.1.tar.gz) = 2624124 bytes
@


1.12
log
@py-inline-snapshot: updated to 0.31.1

0.31.1 — 2025-11-07

Fixed

- Format commands with pipelines (using `|`) now properly fail when any command
  in the pipeline returns a non-zero exit code. Previously, only the last
  command's exit code was considered, which could allow formatting to succeed
  even when intermediate commands failed.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.11 2025/11/04 11:53:00 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.31.1.tar.gz) = 56ccbfe6b2bfe386fb2cc454fc277a2cd9afb9e2bcf2e048b3fcc3e39312a841
SHA512 (inline_snapshot-0.31.1.tar.gz) = d1b33f9b10b02444e651e73461f25b98c5c70def13a19acf0a3e6c89ed4a47cb967ca1bb583d3aa63a26893478e3d4064f8d91ad63026c539dee66a42091efa2
Size (inline_snapshot-0.31.1.tar.gz) = 2606338 bytes
@


1.11
log
@py-inline-snapshot: updated to 0.31.0

0.31.0 — 2025-10-27

Changed

- **BREAKING CHANGE:** An exception is now raised when you use `external()` in files that are not inside your `tests/` directory (or any other directory that you can configure with [tool.inline-snapshot.test-dir](https://15r10nk.github.io/inline-snapshot/latest/configuration/#test-dir)).

- Users are now notified if they use the same UUID for multiple external snapshots, which can happen when copying one test as a template for a new test. The snapshots should be reset to an empty `external()` and recreated with inline-snapshot.

Fixed

- Updated `--snapshot` flag to `--inline-snapshot` in session hints

- The lookup for external snapshots has been improved

0.30.1 — 2025-10-20

Fixed

- Disable ensure ascii in json.dump to support non-ASCII characters in external files

0.30.0 — 2025-10-15

Added

- The `test-dir` config option can now also be a list of paths

- added Python 3.14 support
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.10 2025/10/03 12:14:26 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.31.0.tar.gz) = acca71a75d1fa710540ea887b4aeb88102ca9685cfd36e4907d04fd1924a6194
SHA512 (inline_snapshot-0.31.0.tar.gz) = 5938c6ae0f30becd0b6ec02e85d1cdfefa51f791fe0f16018f6c278bd4535d7ba86719950d7df0378e3116492c3e24a1f1165940a75be0577e0a6c17f98fc76c
Size (inline_snapshot-0.31.0.tar.gz) = 2600041 bytes
@


1.10
log
@py-inline-snapshot: updated to 0.29.2

0.29.2
- fixed string formatting with black which caused invalid snapshots

0.29.1
Changed
- `Example.run_inline` can now be used with `["--inline-snapshot=disable"]`.

Fixed
- `--inline-snapshot=report` now shows the same changes for external snapshots as `--inline-snapshot=review`
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.9 2025/08/12 06:14:24 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.29.2.tar.gz) = f67f7dbcd353e9c8572671d206669785e6805f5d5f0086d3a27b864c9e510ad0
SHA512 (inline_snapshot-0.29.2.tar.gz) = c2197ff1681601d19793d3db0cc577dc26c494398a85a5e08712ecd8208c74d099d7669e66cbde3b1789626331c0eb7fb3d883de31d84ad2eef5bc1d8fa5b771
Size (inline_snapshot-0.29.2.tar.gz) = 2596750 bytes
@


1.9
log
@py-inline-snapshot: updated to 0.27.2

0.27.2 — 2025-08-11

Changed

- Improved documentation for `inline_snapshot.testing.Example`.

Fixed

- inline-snapshot generates no longer triple quoted strings when it fixes cases like this


0.27.1 — 2025-08-08

Fixed

- Added explicit type hints to the `outsource()` function


0.27.0 — 2025-08-05

Added

- Added [`inline_snapshot.extra.Transformed`](https://15r10nk.github.io/inline-snapshot/latest/extra/#inline_snapshot.extra.Transformed) and [`inline_snapshot.extra.transformation`](https://15r10nk.github.io/inline-snapshot/latest/extra/#inline_snapshot.extra.transformation) which can be used to transform values inside of snapshots.

- exposed `@@declare_unmanaged` which allows you to create your own unmanaged types.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.8 2025/03/13 15:10:37 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.27.2.tar.gz) = 7e5cc703faf6f47488998b5108e19f2b90dae9d48dfdf2fbde8d22fc8cba3c76
SHA512 (inline_snapshot-0.27.2.tar.gz) = 68e58853236a3a9323873f6f052f5abd06a18a0649eafa73b81c6f6b41b4913fe93dbf4a4355986676d89a0ff03ede3e3891b5daa6cae1b97baf8756ae344033
Size (inline_snapshot-0.27.2.tar.gz) = 347133 bytes
@


1.8
log
@py-inline-snapshot: updated to 0.20.6

0.20.6 — 2025-03-13

Fixed

- Do not skip snapshots in conditional marked xfail tests.
  ``` python
  @@pytest.mark.xfail(False, reason="...")
  def test_a():
      assert 5 == snapshot(3)  # <- this will be fixed


  @@pytest.mark.xfail(True, reason="...")
  def test_b():
      assert 5 == snapshot(3)  # <- this not
  ```

0.20.5 — 2025-03-04

Fixed

- correct normalization of "python3.9" to "python" in tests
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.7 2025/03/04 05:15:02 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.20.6.tar.gz) = d190da139821d6048a2f4a67395930f2736a683272a1ef11dfd03685092977b5
SHA512 (inline_snapshot-0.20.6.tar.gz) = c420c7a2761aaf8aac61d3837a25dc2356abfd2e9d0c3d1eaf09f1f9ea81fa8d51672b6e4f2f463a1fe01b078399895722561aacceaabd340f73b6dfac7957c5
Size (inline_snapshot-0.20.6.tar.gz) = 92536 bytes
@


1.7
log
@py-inline-snapshot: updated to 0.20.4

0.20.4 — 2025-03-03

Fixed
- Prevent a crash if a value cannot be copied and a UsageError is raised.

0.20.3 — 2025-02-28

Fixed
- Use the black API directly to format python code.
  This solves issues with the upcomming click 8.2.0
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.6 2025/02/26 09:42:46 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.20.4.tar.gz) = 07a8110891ea4c3a811d868719e8afcfb14f48386e9ff00684f4829bb0b7fda7
SHA512 (inline_snapshot-0.20.4.tar.gz) = 6296336ab569a3e9022ea32c1d8fafa61319f41fd17cb1ce0f9ce6e319998f58a57f423d31579b269bf06e414cb60f388dd06427e4f9b2037af241c68f3c7262
Size (inline_snapshot-0.20.4.tar.gz) = 92164 bytes
@


1.6
log
@py-inline-snapshot: updated to 0.20.2

0.20.2 — 2025-02-13

Fixed

- snapshots inside tests which are marked as xfail are now ignored
- Fixed a crash caused by the following code:

   snapshot(tuple())
   # or
   snapshot(dict())
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.5 2025/02/05 20:47:31 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.20.2.tar.gz) = 61c33d46a9f1659fc0e7117c182ab2e199c38b261209a2ec8d142cc4adbeeb91
SHA512 (inline_snapshot-0.20.2.tar.gz) = e749efea54bdca1f399aa81335e65ab0e48887de6d4a9aa9905086886bdd44ef31eaf95c75edd5ee1e6ee011e31c450fb077d09f49415653e5c8e19a3ad4a944
Size (inline_snapshot-0.20.2.tar.gz) = 91060 bytes
@


1.5
log
@py-inline-snapshot: updated to 0.20.1

0.20.1 — 2025-02-04

Fixed

- Fixed a windows bug with the readline module

0.20.0 — 2025-02-01

Changed

- pytest assert rewriting works now together with inline-snapshot if you use `cpython>=3.11`
- `...` is now a special value to *create* snapshot values.
   The value change in `assert [5,4] == snapshot([5,...])` is now a *create* (previously it was a *fix*)

Fixed

- fixed some issues with dataclass arguments
- fixed an issue where --inline-snapshot=review discarded the user input and never formatted
  the code if you used cpython 3.13.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.4 2025/01/16 08:31:43 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.20.1.tar.gz) = de451fb302f35b9aa136885ab1fe56f9ca825e241010b9c00b0924177a15c4be
SHA512 (inline_snapshot-0.20.1.tar.gz) = 41df474a0f4a0e93d20a6729e5c8a93bd36b796f42a10c087144f816641df3680c905ca5b72aac923a7db782730e111a85b0594987b00470dc5cf33cfd8305fe
Size (inline_snapshot-0.20.1.tar.gz) = 89634 bytes
@


1.4
log
@py-inline-snapshot: updated to 0.19.3

0.19.3 — 2025-01-15

Fixed
- raise no assertion for positional arguments inside constructor methods.

0.19.2 — 2025-01-15

Fixed
- fixed a crash when you changed the snapshot to use a custom constructor method for dataclass/pydantic models.

    example:
    ``` python
    from inline_snapshot import snapshot
    from pydantic import BaseModel


    class A(BaseModel):
        a: int

        @@classmethod
        def from_str(cls, s):
            return cls(a=int(s))


    def test_something():
        assert A(a=2) == snapshot(A.from_str("1"))
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.3 2025/01/14 08:38:20 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.19.3.tar.gz) = 6491011c2a10461125d31219a883b04f651fbea0edc2ef0387df8a1732c40b7e
SHA512 (inline_snapshot-0.19.3.tar.gz) = b1f3a0123a1f17ffb85cb296861e3558057d45a8a576d72b2dca1ad1ce3151d4354b6bf86f9e0fb21d941d7ee708fd33c3961fdd1c0bad4c7368b720388fcf85
Size (inline_snapshot-0.19.3.tar.gz) = 88636 bytes
@


1.3
log
@py-inline-snapshot: updated to 0.19.1

0.19.1 — 2025-01-12

Added

- added the optional `inline-snapshot[dirty-equals]` dependency to depend on the dirty-equals version which works in combination with inline-snapshot.

Fixed

- snapshots with pydantic models can now be compared multiple times

    ``` python
    class A(BaseModel):
        a: int


    def test_something():
        for _ in [1, 2]:
            assert A(a=1) == snapshot(A(a=1))
    ```

0.19.0 — 2025-01-10

Added

- You can now specify which tool you want to use to format your code by setting a `format-command` in your [configuration](https://15r10nk.github.io/inline-snapshot/latest/configuration/#format-command).

Changed

- **BREAKING-CHANGE** you have to install `inline-snapshot[black]` now if you want to format your code like in the previous versions. This option is not required if you use a `format-command`.

Fixed

- Load default config values even if `[tool.inline-snapshot]` is missing.
  This makes the documented default shortcuts `--review` and `--fix` work.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.2 2025/01/09 10:32:25 adam Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.19.1.tar.gz) = 8502dbfe7c088c491129ddd99de0234ad9a909921db81167eb1d1a2561ccb6e4
SHA512 (inline_snapshot-0.19.1.tar.gz) = 3750de436a5b19002728df954d4b60e30f7fd6ff0ae49e1a0268cf61d5ba40b809ccaf2b8474b9c3a2b9195a9b0edb7ec98dc4d29af77738fab997e566890bd5
Size (inline_snapshot-0.19.1.tar.gz) = 88072 bytes
@


1.2
log
@py-inline-snapshot: updated to 0.18.2

0.18.2 — 2025-01-02

Changed

- added `[dependency-groups]` to *pyproject.toml* and use uv and pytest to run tests in CI.

Fixed

- use '.model_fields' on pydantic model class and not instance. This fixes a deprecation warning in the upcomming pydantic v2.11

0.18.1 — 2024-12-22

Fixed

- uv is now only used during test time if you run the inline-snapshot tests with `pytest --use-uv`
  This solves a problem if you want to package inline-snapshot in distributions

0.18.0 — 2024-12-21

Added

- Support for a new `storage-dir` configuration option, to tell inline-snapshot where to store data files such as external snapshots.

Fixed

- pydantic v1 is supported again. pydantic v1 & v2 create now the same snapshots. You can use `.dict()` to get the same snapshots like in inline-snapshot-0.15.0 for pydantic v1.

    ``` python
    class M(BaseModel):
        name: str


    def test_pydantic():
        m = M(name="Tom")
        assert m == snapshot(M(name="Tom"))
        assert m.dict() == snapshot({"name": "Tom"})
    ```

- Find `pyproject.toml` file in parent directories, not just next to the Pytest configuration file.
@
text
@d1 1
a1 1
$NetBSD: distinfo,v 1.1 2024/11/11 09:00:47 wiz Exp $
d3 3
a5 3
BLAKE2s (inline_snapshot-0.18.2.tar.gz) = 599b6421cecee0fc8d551269d2103df25d83981afa6ab46cad6d2840f4746c43
SHA512 (inline_snapshot-0.18.2.tar.gz) = 6b370ee0a717834f361b712ee71434362a44e92688df298572a801bbf384d69bd37816b2aa1e701f77d72149fff2ec5da9fceb24980af15de807973451e161c9
Size (inline_snapshot-0.18.2.tar.gz) = 225777 bytes
@


1.1
log
@devel/py-inline-snapshot: import py-inline-snapshot-0.14.0

inline-snapshot can be used for different things:

* golden master/approval/snapshot testing. The idea is that you
  have a function with a currently unknown result and you want
  to write a tests, which ensures that the result does not change
  during refactoring.

* Compare things which are complex like lists with lot of numbers
  or complex data structures.

* Things which might change during the development like error
  messages.

inline-snapshot automates the process of recording, storing and
updating the value you want to compare with. The value is converted
with repr() and stored in the source file as argument of the
snapshot() function.
@
text
@d1 1
a1 1
$NetBSD$
d3 3
a5 3
BLAKE2s (inline_snapshot-0.14.0.tar.gz) = d2a24231688739ef3ac7a3123e1b54d92a9f9aac7f0b949add603453168b9ed9
SHA512 (inline_snapshot-0.14.0.tar.gz) = 32855dcd098c3e9b6a046752a3fc03c18b0df85e2cf338a928eadcd0e63bb784bdaca6855c954974ec7561e602ff3dd95ccdadb0c4f7dd1075d9d84245c171ef
Size (inline_snapshot-0.14.0.tar.gz) = 209662 bytes
@

