Skip to content

Commit e29cef8

Browse files
Permit emitting pydantic inputs in snapshot tests
1 parent 413a47d commit e29cef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/fixtures/codegen_snapshot_fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def validate_codegen(
2020
target_path: str,
2121
client_name: str,
2222
protocol_version: Literal["v1.1", "v2.0"],
23+
typeddict_inputs: bool = True,
2324
) -> None:
2425
snapshot.snapshot_dir = snapshot_dir
2526
files: dict[Path, UnclosableStringIO] = {}
@@ -35,7 +36,7 @@ def file_opener(path: Path) -> TextIO:
3536
target_path=target_path,
3637
client_name=client_name,
3738
file_opener=file_opener,
38-
typed_dict_inputs=True,
39+
typed_dict_inputs=typeddict_inputs,
3940
method_filter=None,
4041
protocol_version=protocol_version,
4142
)

0 commit comments

Comments
 (0)