File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 3030_MB : ByteSize = ByteSize (_KB * 1024 ) # in bytes
3131_GB : ByteSize = ByteSize (_MB * 1024 ) # in bytes
3232
33+ _logger = logging .getLogger (__name__ )
34+
3335# Dictionary to store start times of tests
3436_test_start_times = {}
3537
@@ -172,7 +174,13 @@ def large_server_file(
172174 upload_ram_usage = max (ram_statistics ) - min (ram_statistics ),
173175 )
174176
175- files_api .delete_file (uploaded_file .id )
177+ try :
178+ files_api .delete_file (uploaded_file .id )
179+ except osparc .ApiException :
180+ _logger .warning (
181+ f"Could not delete file on server in { file_with_number .__name__ } " ,
182+ exc_info = True ,
183+ )
176184
177185
178186@pytest .fixture
@@ -206,4 +214,10 @@ def file_with_number(
206214 server_file = files_api .upload_file (file )
207215 yield server_file
208216
209- files_api .delete_file (server_file .id )
217+ try :
218+ files_api .delete_file (server_file .id )
219+ except osparc .ApiException :
220+ _logger .warning (
221+ f"Could not delete file on server in { file_with_number .__name__ } " ,
222+ exc_info = True ,
223+ )
You can’t perform that action at this time.
0 commit comments