File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 11import  gc 
22import  unittest 
33
4+ import  pytest 
45import  torch 
56
67from  diffusers  import  (
@@ -68,3 +69,19 @@ def test_single_file_format_inference_is_same_as_pretrained(self):
6869        assert  (
6970            numpy_cosine_similarity_distance (image_from_pretrained .flatten (), image_from_single_file .flatten ()) <  1e-3 
7071        )
72+ 
73+     @pytest .mark .xfail ( 
74+         condition = True , 
75+         reason = "Test fails because of mismatches in the configs but it is very hard to properly fix this considering downstream usecase." , 
76+         strict = True , 
77+     ) 
78+     def  test_single_file_components_with_original_config (self ):
79+         super ().test_single_file_components_with_original_config ()
80+ 
81+     @pytest .mark .xfail ( 
82+         condition = True , 
83+         reason = "Test fails because of mismatches in the configs but it is very hard to properly fix this considering downstream usecase." , 
84+         strict = True , 
85+     ) 
86+     def  test_single_file_components_with_original_config_local_files_only (self ):
87+         super ().test_single_file_components_with_original_config_local_files_only ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments