Readers ashby to lever hand on the host's words; their word tables move to app/prep/hosts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a66aac95cf
commit
6c7ce1090d
37 files changed
+504
-171
No files matched your search
@@ -32,7 +32,7 @@ def test_rows_come_from_the_payload_with_descriptions_resolved() -> None:
|
||||
assert first["url"] == ("https://jobs.deel.com/klarna/job-details/"
|
||||
"21584046-56d5-44c4-8b18-7e15dc659827/overview")
|
||||
assert first["location"] == "Stockholm" and first["department"] == "Engineering"
|
||||
assert first["remote"] == "onsite"
|
||||
assert first["remote"] == "ON_SITE"
|
||||
assert first["description"].startswith("Klarna, briefly At Klarna")
|
||||
assert "<" not in first["description"] and "$" not in first["description"][:3]
|
||||
assert all(r["description"] for r in rows)
|
||||
@@ -41,18 +41,18 @@ def test_rows_come_from_the_payload_with_descriptions_resolved() -> None:
|
||||
"2026-09-07T12:33:38.484000+00:00"
|
||||
|
||||
|
||||
def test_several_locations_are_joined_and_remote_uses_the_stores_words() -> None:
|
||||
def test_several_locations_are_joined_and_remote_is_the_hosts_word() -> None:
|
||||
rows = {r["source_id"][:8]: r for r in deel.parse(PAGE, "klarna")}
|
||||
assert rows["a8be45ac"]["location"] == "Stockholm; London; Milan; Warsaw"
|
||||
assert rows["f96bb9d4"]["remote"] == "remote"
|
||||
assert rows["f96bb9d4"]["remote"] == "REMOTE"
|
||||
assert rows["f96bb9d4"]["location"] == "Ohio"
|
||||
# Every place is kept, in the host's order; the work arrangement is the
|
||||
# places' remote flag.
|
||||
assert rows["a8be45ac"]["places"] == [
|
||||
{"text": name, "remote": False} for name in ("Stockholm", "London", "Milan", "Warsaw")]
|
||||
assert rows["f96bb9d4"]["places"] == [{"text": "Ohio", "remote": True}]
|
||||
assert rows["f96bb9d4"]["employment"] == "contract" # "Consultant"
|
||||
assert rows["21584046"]["employment"] == "full_time"
|
||||
assert rows["f96bb9d4"]["employment"] == "Consultant"
|
||||
assert rows["21584046"]["employment"] == "Full-time"
|
||||
|
||||
|
||||
def test_pay_is_only_text_since_the_period_is_not_stated() -> None:
|
||||
|
||||
Reference in new issue
Block a user