17
0
anag_factory 350b2a179f Accepting request 1353619 from devel:languages:python
- update to 0.33.0:
  * `snapshot_arg()`, which lets you move `snapshot()` calls from
    the call site into the helper function itself.
  * **Example.is_formatted()**: new method to check whether a
    Python file in the example is already Black-formatted.
  * **Example.run_inline**: exception strings in `raises` are now
    formatted the same way `inline_snapshot.extra.raises` does,
    which is shorter for small assertions like
    `raises=snapshot("UsageError: default value cannot be a
    Custom value")`.
  * **Example.run_inline**: the `raises`, `stderr`, and
    `changed_files` arguments are now handled with
    `snapshot_arg()`, so `snapshot()` is no longer needed at the
    call site. `raises` defaults to `"<no exception>"` and
    `changed_files` defaults to `{}`.
  * **Example.run_inline**: the `reported_categories` argument is
    now handled with `snapshot_arg()` and its type changed from
    `list[Category]` to `set[Category]`. It is now only asserted
    when the reported categories differ from the CLI flags passed
    via `args`.
  * Fixed `repr(external_file(...))` to use a path relative to
    the calling file instead of the absolute path, which also
    fixes incorrect reprs on Windows.

- update to 0.32.5:
  * Fixed a bug where tuples used as snapshot keys caused problems
    because they had the same hash value (#358)
- update to 0.32.4:
  * Added context_managers parameter to Example.run_inline()
  * Fixed UsageError during session teardown when using -k (#355)

OBS-URL: https://build.opensuse.org/request/show/1353619
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-inline-snapshot?expand=0&rev=10
2026-05-20 13:23:13 +00:00
2026-05-17 19:13:10 +00:00
2026-05-17 19:13:10 +00:00
2026-05-17 19:13:10 +00:00
S
Description
No description provided
8.9 MiB
Languages
RPM Spec 100%