File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -761,14 +761,15 @@ def test_is_older_than_x_days_edge_cases(self):
761761 def test_delete_file_edge_cases (self ):
762762 """Test delete_file with different file types"""
763763 # Test with non-existent file
764- non_existent = "/tmp/ non_existent_file_test.log"
764+ non_existent = os . path . join ( tempfile . gettempdir (), " non_existent_file_test.log")
765765 with pytest .raises (FileNotFoundError ):
766766 log_utils .delete_file (non_existent )
767767
768768 def test_gzip_file_error_handling (self ):
769769 """Test gzip_file_with_sufix error handling"""
770770 # Test with non-existent source file
771- result = log_utils .gzip_file_with_sufix ("/non/existent/file.log" , "test" )
771+ non_existent = os .path .join (tempfile .gettempdir (), "non_existent_gzip_test.log" )
772+ result = log_utils .gzip_file_with_sufix (non_existent , "test" )
772773 assert result is None
773774
774775 def test_remove_old_logs_edge_cases (self ):
You can’t perform that action at this time.
0 commit comments