diff --git a/tests/location_fallback.py b/tests/location_fallback.py index b64fde8..aad33ee 100644 --- a/tests/location_fallback.py +++ b/tests/location_fallback.py @@ -90,7 +90,8 @@ def test_ip_fallback() -> None: from my.location.fallback.common import _iter_estimate_from raw_est = list(_iter_estimate_from(use_dt, (via_ip.estimate_location,))) assert len(raw_est) == 1 - assert raw_est[0].accuracy == 10_000 + assert raw_est[0].datasource == "via_ip" + assert raw_est[0].accuracy == 15_000 # passing home should give one home_est = list(_iter_estimate_from(use_dt, (via_home.estimate_location,))) diff --git a/tests/shared_config.py b/tests/shared_config.py index c8eec50..6b83a5a 100644 --- a/tests/shared_config.py +++ b/tests/shared_config.py @@ -41,6 +41,7 @@ def temp_config(temp_path: Path) -> Any: LTZ.config.fast = True class location: + home_accuracy = 30_000 home = ( # supports ISO strings ('2005-12-04' , (42.697842, 23.325973)), # Bulgaria, Sofia @@ -51,7 +52,7 @@ def temp_config(temp_path: Path) -> Any: ) # note: order doesn't matter, will be sorted in the data provider class via_ip: - pass + accuracy = 15_000 class gpslogger: pass