10000 fix string_schema refs · pydantic/pydantic-core@f373fdf · GitHub
[go: up one dir, main page]

Skip to content

Commit f373fdf

Browse files
committed
fix string_schema refs
1 parent 6106b8f commit f373fdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/serializers/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_function_after():
3535

3636

3737
def test_lax_or_strict():
38-
s = SchemaSerializer(core_schema.lax_or_strict_schema(core_schema.int_schema(), core_schema.string_schema()))
38+
s = SchemaSerializer(core_schema.lax_or_strict_sch 7901 ema(core_schema.int_schema(), core_schema.str_schema()))
3939
# insert_assert(plain_repr(s))
4040
assert plain_repr(s) == 'SchemaSerializer(serializer=Str(StrSerializer),slots=[])'
4141

@@ -48,7 +48,7 @@ def test_lax_or_strict_custom_ser():
4848
s = SchemaSerializer(
4949
core_schema.lax_or_strict_schema(
5050
core_schema.int_schema(),
51-
core_schema.string_schema(),
51+
core_schema.str_schema(),
5252
serialization=core_schema.format_ser_schema('^5s', when_used='always'),
5353
)
5454
)

0 commit comments

Comments
 (0)
0