@@ -2251,37 +2251,6 @@ def test_sign_mov_video_file_single(self):
22512251 self .assertIn ("Invalid" , json_data )
22522252 output .close ()
22532253
2254- def test_sign_file_tmn_wip (self ):
2255- temp_dir = tempfile .mkdtemp ()
2256- try :
2257- # Create a temporary output file path
2258- output_path = os .path .join (temp_dir , "signed_output.jpg" )
2259-
2260- # Use the sign_file method
2261- builder = Builder (self .manifestDefinition )
2262- builder .sign_file (
2263- self .testPath ,
2264- output_path ,
2265- self .signer
2266- )
2267-
2268- # Verify the output file was created
2269- self .assertTrue (os .path .exists (output_path ))
2270-
2271- # Read the signed file and verify the manifest
2272- with open (output_path , "rb" ) as file :
2273- reader = Reader ("image/jpeg" , file )
2274- json_data = reader .json ()
2275- self .assertIn ("Python Test" , json_data )
2276- # Needs trust configuration to be set up to validate as Trusted,
2277- # or validation_status on read reports `signing certificate untrusted`
2278- # which makes the manifest validation_state become Invalid.
2279- self .assertIn ("Invalid" , json_data )
2280-
2281- finally :
2282- # Clean up the temporary directory
2283- shutil .rmtree (temp_dir )
2284-
22852254 def test_sign_file_video (self ):
22862255 temp_dir = tempfile .mkdtemp ()
22872256 try :
0 commit comments