Skip to content

Commit 2cc10a9

Browse files
Update test harness for syrupy 5. (#291)
Specifically, `_file_extension` was renmaed to `file_extension`, so all snapshots were being emitted as `.raw` files.
1 parent 7ea3e1b commit 2cc10a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = [
3434
dev = [
3535
"coverage[toml]>=6.5",
3636
"pytest>=8.0.2",
37-
"syrupy>=4.6.1",
37+
"syrupy>=5.0.0",
3838
]
3939

4040
# Dependencies for examples.

python/tests/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class TypeScriptSchemaSnapshotExtension(SingleFileSnapshotExtension):
1414
_write_mode = WriteMode.TEXT
15-
_file_extension = "schema.d.ts"
15+
file_extension = "schema.d.ts"
1616

1717
@override
1818
def serialize(self, data: TypeScriptSchemaConversionResult, *,

0 commit comments

Comments
 (0)