1
0
mirror of synced 2024-11-22 17:24:23 +01:00

Bump the coverage back to 100%

This commit is contained in:
jvoisin 2018-09-01 16:58:34 +02:00
parent 8255293d1d
commit 907fc591cc

View File

@ -35,16 +35,16 @@ DEPENDENCIES = {
'mutagen': 'Mutagen', 'mutagen': 'Mutagen',
} }
def _get_exiftool_path() -> Optional[str]: def _get_exiftool_path() -> Optional[str]: # pragma: no cover
exiftool_path = '/usr/bin/exiftool' exiftool_path = '/usr/bin/exiftool'
if os.path.isfile(exiftool_path): if os.path.isfile(exiftool_path):
if os.access(exiftool_path, os.X_OK): # pragma: no cover if os.access(exiftool_path, os.X_OK):
return exiftool_path return exiftool_path
# ArchLinux # ArchLinux
exiftool_path = '/usr/bin/vendor_perl/exiftool' exiftool_path = '/usr/bin/vendor_perl/exiftool'
if os.path.isfile(exiftool_path): if os.path.isfile(exiftool_path):
if os.access(exiftool_path, os.X_OK): # pragma: no cover if os.access(exiftool_path, os.X_OK):
return exiftool_path return exiftool_path
return None return None