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):
277277
278278def  test_plain_enum_datetime ():
279279    class  MyEnum (Enum ):
280-         a  =  datetime .datetime .fromisoformat ('2024-01-01T00:00:00Z ' )
280+         a  =  datetime .datetime .fromisoformat ('2024-01-01T00:00:00 ' )
281281
282282    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 
285285
286286
287287def  test_plain_enum_complex ():
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments