Skip to content

Commit

Permalink
wip: fixing backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Franceschini committed Feb 6, 2025
1 parent 50814ff commit 724b3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/globaleaks/utils/file_analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _scan_file(self, file_name: str, data_bytes: bytes) -> EnumStateFile:
logging.error(e)
return EnumStateFile.pending

def wrap_scanning(self, file_name: str, data_bytes: bytes, antivirus_enabled:bool=True) -> EnumStateFile:
def wrap_scanning(self, file_name: str, data_bytes: bytes, antivirus_enabled:bool=False) -> EnumStateFile:
if not antivirus_enabled:
return EnumStateFile.pending

Expand All @@ -33,7 +33,7 @@ def wrap_scanning(self, file_name: str, data_bytes: bytes, antivirus_enabled:boo
data_bytes=data_bytes
)

def read_file_for_scanning(self, fp, file_name, state, antivirus_enabled: bool = True):
def read_file_for_scanning(self, fp, file_name, state, antivirus_enabled: bool = False):
status_file = EnumStateFile.verified
if state == EnumStateFile.infected.name:
raise errors.FileInfectedDownloadPermissionDenied
Expand Down

0 comments on commit 724b3bb

Please sign in to comment.