Fixed unit tests

This commit is contained in:
2025-09-22 22:48:49 +02:00
parent 010ef56f63
commit e17c4c7e7b

View File

@@ -162,7 +162,7 @@ class DocumentService:
PyMongoError: If database operation fails PyMongoError: If database operation fails
""" """
# Calculate automatic attributes # Calculate automatic attributes
file_bytes = file_bytes or self._read_file_bytes(file_path) file_bytes = file_bytes if file_bytes is not None else self._read_file_bytes(file_path)
file_hash = self._calculate_file_hash(file_bytes) file_hash = self._calculate_file_hash(file_bytes)
file_type = self._detect_file_type(file_path) file_type = self._detect_file_type(file_path)
mime_type = self._detect_mime_type(file_bytes) mime_type = self._detect_mime_type(file_bytes)