Hide POIs, show overlay state, remove zoom button, rotate vpn
This commit is contained in:
parent
35276d34fa
commit
bce34b73de
32 changed files with 1137 additions and 186 deletions
|
|
@ -31,7 +31,7 @@ def test_run_sources_runs_every_source_and_isolates_failures():
|
|||
order.append("zoo")
|
||||
|
||||
errors: list[str] = []
|
||||
scraper._run_sources(zoo, [("rightmove", rm), ("onthemarket", otm)], errors)
|
||||
scraper._run_sources(zoo, [("rightmove", rm), ("onthemarket", otm)], errors, set())
|
||||
|
||||
assert set(order) == {"rm", "otm", "zoo"}
|
||||
# The failing source is recorded but did not stop the others.
|
||||
|
|
@ -45,14 +45,14 @@ def test_run_sources_records_zoopla_failure():
|
|||
def zoo():
|
||||
raise ValueError("zoo down")
|
||||
|
||||
scraper._run_sources(zoo, [], errors)
|
||||
scraper._run_sources(zoo, [], errors, set())
|
||||
assert any("zoopla" in e and "zoo down" in e for e in errors)
|
||||
|
||||
|
||||
def test_run_sources_handles_no_background_runners():
|
||||
ran = []
|
||||
errors: list[str] = []
|
||||
scraper._run_sources(lambda: ran.append("z"), [], errors)
|
||||
scraper._run_sources(lambda: ran.append("z"), [], errors, set())
|
||||
assert ran == ["z"]
|
||||
assert errors == []
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ def test_run_sources_handles_no_background_runners():
|
|||
def test_run_sources_handles_zoopla_absent():
|
||||
ran = []
|
||||
errors: list[str] = []
|
||||
scraper._run_sources(None, [("rightmove", lambda: ran.append("rm"))], errors)
|
||||
scraper._run_sources(None, [("rightmove", lambda: ran.append("rm"))], errors, set())
|
||||
assert ran == ["rm"]
|
||||
assert errors == []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue