Decode HTML entities in freehire titles and companies, and separate the region ids in the searches help
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a9c387c130
commit
10dec33dce
3 files changed
+12
-4
No files matched your search
@@ -129,6 +129,13 @@ def test_it_refuses_a_hit_without_a_title_an_id_or_a_web_link() -> None:
|
||||
assert found[0]["url"] == "https://x.example/d" and found[0]["places"] == []
|
||||
|
||||
|
||||
def test_a_title_and_a_company_have_their_entities_decoded() -> None:
|
||||
hit = {"public_slug": "a", "title": "IoT Certification & License Manager",
|
||||
"company": "Ben & Jerry's", "url": "https://x.example/a"}
|
||||
row = freehire.rows({"data": [hit]}, "")[0]
|
||||
assert (row["title"], row["company"]) == ("IoT Certification & License Manager", "Ben & Jerry's")
|
||||
|
||||
|
||||
def test_it_asks_for_countries_work_mode_and_the_text_in_html() -> None:
|
||||
asked: list[str] = []
|
||||
freehire.page(_stock(250, 250, asked), "", None,
|
||||
|
||||
Reference in new issue
Block a user