File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -277,11 +277,11 @@ class MyEnum(Enum):
277
277
278
278
def test_plain_enum_datetime ():
279
279
class MyEnum (Enum ):
280
- a = datetime .datetime .fromisoformat ('2024-01-01T00:00:00Z ' )
280
+ a = datetime .datetime .fromisoformat ('2024-01-01T00:00:00 ' )
281
281
282
282
v = SchemaValidator (core_schema .enum_schema (MyEnum , list (MyEnum .__members__ .values ())))
283
- assert v .validate_python (datetime .datetime .fromisoformat ('2024-01-01T00:00:00Z ' )) is MyEnum .a
284
- assert v .validate_json ('"2024-01-01T00:00:00Z "' ) is MyEnum .a
283
+ assert v .validate_python (datetime .datetime .fromisoformat ('2024-01-01T00:00:00 ' )) is MyEnum .a
284
+ assert v .validate_json ('"2024-01-01T00:00:00 "' ) is MyEnum .a
285
285
286
286
287
287
def test_plain_enum_complex ():
You can’t perform that action at this time.
0 commit comments