diff --git a/search/tests/test_insert.py b/search/tests/test_insert.py index d17adaa..5a6fa34 100644 --- a/search/tests/test_insert.py +++ b/search/tests/test_insert.py @@ -8,6 +8,10 @@ import numpy as np import h5py import os +from pathlib import Path +from urllib.request import urlretrieve +import logging + def get_data(data_part, **config): return np.array( @@ -25,7 +29,7 @@ def get_data(data_part, **config): def download(src, dst): if not os.path.exists(dst): os.makedirs(Path(dst).parent, exist_ok=True) - LOG.info("downloading %s -> %s..." % (src, dst)) + logging.info("downloading %s -> %s..." % (src, dst)) urlretrieve(src, dst)