diff --git a/doc/DENYLIST.md b/doc/DENYLIST.md index 43c275d..d57b8b1 100644 --- a/doc/DENYLIST.md +++ b/doc/DENYLIST.md @@ -72,7 +72,7 @@ For more info on all.py: https://github.com/karlicoss/HPI/blob/master/doc/MODULE_DESIGN.org#allpy -This would typically be used in an overriden `all.py` file, or in a one-off script +This would typically be used in an overridden `all.py` file, or in a one-off script which you may want to filter out some items from a source, progressively adding more items to the denylist as you go. diff --git a/tests/location_fallback.py b/tests/location_fallback.py index 0d291c2..b64fde8 100644 --- a/tests/location_fallback.py +++ b/tests/location_fallback.py @@ -38,7 +38,7 @@ def test_ip_fallback() -> None: # basic tests - # try estimating slightlight before the first IP + # try estimating slightly before the first IP est = list(via_ip.estimate_location(datetime(2020, 1, 1, 11, 59, 59, tzinfo=timezone.utc))) assert len(est) == 0 @@ -50,7 +50,7 @@ def test_ip_fallback() -> None: est = list(via_ip.estimate_location(datetime(2020, 1, 1, 12, 0, 0, tzinfo=timezone.utc) + via_ip.config.for_duration + timedelta(seconds=1))) assert len(est) == 0 - # on 2/1/2020, theres one IP if before 16:30 + # on 2/1/2020, threes one IP if before 16:30 est = list(via_ip.estimate_location(datetime(2020, 2, 1, 12, 30, 0, tzinfo=timezone.utc))) assert len(est) == 1 @@ -104,7 +104,7 @@ def test_ip_fallback() -> None: raw_est = list(_iter_estimate_from(use_dt, (via_ip.estimate_location, via_home.estimate_location))) assert len(raw_est) == 2 - # shouldnt raise value error + # shouldn't raise value error all_est = all.estimate_location(use_dt) # should have used the IP from via_ip since it was more accurate assert all_est.datasource == "via_ip"