Added verbose to PhotosDB(), partial fix for #110

This commit is contained in:
Rhet Turnbull
2020-10-25 08:16:54 -07:00
parent 667c89e32c
commit d87b8f30a4
6 changed files with 170 additions and 333 deletions

View File

@@ -5,6 +5,7 @@ import os
import pytest
from click.testing import CliRunner
import osxphotos
from osxphotos.exiftool import get_exiftool_path
CLI_PHOTOS_DB = "tests/Test-10.15.1.photoslibrary"
@@ -419,6 +420,13 @@ CLI_EXPORT_UUID_FROM_FILE_FILENAMES = [
]
@pytest.fixture(autouse=True)
def reset_globals():
""" reset globals in __main__ that tests may have changed """
yield
osxphotos.__main__.VERBOSE = False
# determine if exiftool installed so exiftool tests can be skipped
try:
exiftool = get_exiftool_path()