Path to this page:
Subject: CVS commit: pkgsrc/devel/py-inline-snapshot
From: Adam Ciarcinski
Date: 2025-01-16 09:31:43
Message id: 20250116083143.A81DEFC7D@cvs.NetBSD.org
Log Message:
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"))
Files: