Port to non-MacOS platforms (#1026)
* Port to non-MacOS platforms * Keep NFD normalization on macOS * Update locale_util.py Fix lint error from ruff (runs in CI) * Update query.py click.Option first arg needs to be a list (different than click.option) * Dynamically normalize Unicode paths in test * Fix missing import --------- Co-authored-by: Rhet Turnbull <rturnbull@gmail.com>
This commit is contained in:
@@ -5,12 +5,17 @@ from __future__ import annotations
|
||||
import os
|
||||
import time
|
||||
|
||||
import photoscript
|
||||
import pytest
|
||||
from click.testing import CliRunner
|
||||
|
||||
import osxphotos
|
||||
from osxphotos.cli.batch_edit import batch_edit
|
||||
from osxphotos.utils import is_macos
|
||||
|
||||
if is_macos:
|
||||
import photoscript
|
||||
from osxphotos.cli.batch_edit import batch_edit
|
||||
else:
|
||||
pytest.skip(allow_module_level=True)
|
||||
|
||||
# set timezone to avoid issues with comparing dates
|
||||
os.environ["TZ"] = "US/Pacific"
|
||||
|
||||
Reference in New Issue
Block a user