my.pdfs: reorganize tests a bit, fix mypy

This commit is contained in:
Dima Gerasimov 2021-03-30 20:44:49 +01:00 committed by karlicoss
parent 5c38872efc
commit e7604c188e
6 changed files with 23 additions and 17 deletions

View file

@ -32,10 +32,8 @@ def prepare(tmp_path: Path):
def _prepare_google_config(tmp_path: Path):
testdata = Path(__file__).absolute().parent.parent / 'testdata'
assert testdata.exists(), testdata
track = one(testdata.rglob('italy-slovenia-2017-07-29.json'))
from .common import testdata
track = one(testdata().rglob('italy-slovenia-2017-07-29.json'))
# todo ugh. unnecessary zipping, but at the moment takeout provider doesn't support plain dirs
import zipfile