google takeout: support multiple locales
uses the known locales in google_takeout_parser to determine the expected paths for each locale, and performs a partial match on the paths to detect and use match_structure
This commit is contained in:
parent
1b187b2c1b
commit
93e475795d
1 changed files with 13 additions and 7 deletions
|
@ -64,13 +64,19 @@ def inputs() -> Sequence[Path]:
|
|||
return get_files(config.takeout_path)
|
||||
|
||||
|
||||
EXPECTED = (
|
||||
"My Activity",
|
||||
"Chrome",
|
||||
"Location History",
|
||||
"Youtube",
|
||||
"YouTube and YouTube Music",
|
||||
)
|
||||
try:
|
||||
from google_takeout_parser.locales.main import get_paths_for_functions
|
||||
|
||||
EXPECTED = tuple(get_paths_for_functions())
|
||||
|
||||
except ImportError:
|
||||
EXPECTED = (
|
||||
"My Activity",
|
||||
"Chrome",
|
||||
"Location History",
|
||||
"Youtube",
|
||||
"YouTube and YouTube Music",
|
||||
)
|
||||
|
||||
|
||||
google_takeout_version = str(getattr(google_takeout_parser, '__version__', 'unknown'))
|
||||
|
|
Loading…
Add table
Reference in a new issue