Skip to content

Commit fbbb9cb

Browse files
committed
V6.0.0
1 parent 4b16969 commit fbbb9cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/core/test_log_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)