Fixed unit tests
This commit is contained in:
@@ -162,7 +162,7 @@ class DocumentService:
|
||||
PyMongoError: If database operation fails
|
||||
"""
|
||||
# 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_type = self._detect_file_type(file_path)
|
||||
mime_type = self._detect_mime_type(file_bytes)
|
||||
|
||||
Reference in New Issue
Block a user