From 3fc42701afd56fd2e347b16d38879119104b71fa Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 6 Nov 2025 20:11:25 +0000 Subject: [PATCH] Update test harness for syrupy 5. Specifically, `_file_extension` was renmaed to `file_extension`, so all snapshots were being emitted as `.raw` files. --- python/pyproject.toml | 2 +- python/tests/utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index c040a73b..d6decc95 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ dev = [ "coverage[toml]>=6.5", "pytest>=8.0.2", - "syrupy>=4.6.1", + "syrupy>=5.0.0", ] # Dependencies for examples. diff --git a/python/tests/utilities.py b/python/tests/utilities.py index 427d8603..a8ca7270 100644 --- a/python/tests/utilities.py +++ b/python/tests/utilities.py @@ -11,7 +11,7 @@ class TypeScriptSchemaSnapshotExtension(SingleFileSnapshotExtension): _write_mode = WriteMode.TEXT - _file_extension = "schema.d.ts" + file_extension = "schema.d.ts" @override def serialize(self, data: TypeScriptSchemaConversionResult, *,