update tz/via_location tests

This commit is contained in:
Sean Breckenridge 2022-04-25 19:07:02 -07:00
parent f8d891c1cf
commit 749f488d90

View file

@ -1,6 +1,5 @@
from datetime import datetime, timedelta, date, timezone from datetime import datetime, timedelta, date, timezone
from pathlib import Path from pathlib import Path
import sys
import pytest # type: ignore import pytest # type: ignore
import pytz # type: ignore import pytz # type: ignore
@ -80,7 +79,7 @@ def prepare(tmp_path: Path):
from .common import reset_modules from .common import reset_modules
reset_modules() reset_modules()
LTZ._FASTER = True LTZ.config.fast = True
from .location import _prepare_google_config from .location import _prepare_google_config
google = _prepare_google_config(tmp_path) google = _prepare_google_config(tmp_path)
@ -98,7 +97,8 @@ def prepare(tmp_path: Path):
class time: class time:
class tz: class tz:
pass # just rely on the default.. class via_location:
pass # just rely on the defaults...
import my.core.cfg as C import my.core.cfg as C
with C.tmp_config() as config: with C.tmp_config() as config: