diff --git a/pyproject.toml b/pyproject.toml index 704fecc..f97482a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydantic2zod" -version = "0.1.0" +version = "0.1.1" description = "Pydantic to zod declaration compiler." authors = ["Povilas Balciunas "] documentation = "https://github.com/argyle-engineering/pydantic2zod" diff --git a/tests/snapshots/snap_test_compile.py b/tests/snapshots/snap_test_compile.py index 9b52da5..fd84b80 100644 --- a/tests/snapshots/snap_test_compile.py +++ b/tests/snapshots/snap_test_compile.py @@ -4,10 +4,9 @@ from snapshottest import Snapshot - snapshots = Snapshot() -snapshots['test_annotated_fields 1'] = ''' +snapshots["test_annotated_fields 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -20,9 +19,9 @@ salary: z.number().gt(1000).lt(10000), }).strict(); export type EmployeeType = z.infer; -''' +""" -snapshots['test_builtin_types 1'] = ''' +snapshots["test_builtin_types 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -39,9 +38,9 @@ ]), }).strict(); export type UserType = z.infer; -''' +""" -snapshots['test_class_variables_are_skipped 1'] = ''' +snapshots["test_class_variables_are_skipped 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -52,9 +51,9 @@ msg_type: z.string(), }).strict(); export type RpcMessageType = z.infer; -''' +""" -snapshots['test_generic_field_type_is_any_with_no_typevar_bounds 1'] = ''' +snapshots["test_generic_field_type_is_any_with_no_typevar_bounds 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -66,9 +65,9 @@ address: z.any(), }).strict(); export type UserType = z.infer; -''' +""" -snapshots['test_initializes_empty_dicts 1'] = ''' +snapshots["test_initializes_empty_dicts 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -81,9 +80,9 @@ created_at: z.number().int().default(0), }).strict(); export type ClassType = z.infer; -''' +""" -snapshots['test_initializes_empty_lists 1'] = ''' +snapshots["test_initializes_empty_lists 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -96,9 +95,9 @@ created_at: z.number().int().default(0), }).strict(); export type ClassType = z.infer; -''' +""" -snapshots['test_renames_models_based_on_given_rules 1'] = ''' +snapshots["test_renames_models_based_on_given_rules 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -121,9 +120,9 @@ classes: z.array(BaseClass), }).strict(); export type ModuleType = z.infer; -''' +""" -snapshots['test_user_defined_types_inheriting_from_str 1'] = ''' +snapshots["test_user_defined_types_inheriting_from_str 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -134,9 +133,9 @@ id: z.string(), }).strict(); export type UserType = z.infer; -''' +""" -snapshots['test_with_pydantic_model_config 1'] = ''' +snapshots["test_with_pydantic_model_config 1"] = """ /** * NOTE: automatically generated by the pydantic2zod compiler. */ @@ -162,4 +161,4 @@ ]), }).strict(); export type ModelType = z.infer; -''' +"""