CI: better cleanup for modules in between tests

This commit is contained in:
Dima Gerasimov 2021-02-19 00:09:08 +00:00 committed by karlicoss
parent 94ace823e0
commit ddbb2e5f23
5 changed files with 41 additions and 12 deletions

View file

@ -77,6 +77,9 @@ def D(dstr: str) -> datetime:
# TODO copy pasted from location.py, need to extract some common provider
@pytest.fixture(autouse=True)
def prepare(tmp_path: Path):
from .common import reset_modules
reset_modules()
LTZ._FASTER = True
from .location import _prepare_google_config