Ask a host that cannot filter on remote for the agents' world where it takes the world in one read, and keep the per-office fold within one country, as ADR 1.2 and 1.4 have it
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
0c4f3c9bbe
commit
1976f6a353
4 files changed
+67
-14
No files matched your search
+14
-2
@@ -239,14 +239,26 @@ def test_folding_needs_the_same_title_a_link_and_texts_that_can_be_one_job() ->
|
||||
assert fold([pc("1", "Berlin", a), pc("2", "Munich", "")]).placed == {"2"}
|
||||
|
||||
|
||||
def test_the_per_place_fold_keeps_to_one_country() -> None:
|
||||
"""A federal sales role posted in Canberra and in Washington has alike
|
||||
text and is two openings; Berlin and Munich are one job in two offices.
|
||||
A row with no country joins either."""
|
||||
text = "Sell to federal agencies, run the public sector pipeline and partners."
|
||||
got = fold([replace(pc("au", "Canberra", text), country="AU"),
|
||||
replace(pc("us", "Washington", text), country="US"),
|
||||
pc("b", "Berlin", text), pc("m", "Munich", text),
|
||||
replace(pc("n", "", text), country="")])
|
||||
assert got.dup_of == {"au": None, "us": None, "b": None, "m": "b", "n": "au"}
|
||||
|
||||
|
||||
def test_a_remote_listing_is_not_folded_into_an_office_one() -> None:
|
||||
"""The kept role takes a copy's places, not its remote, so the gate would
|
||||
read "Remote, Germany" as an office role in Vienna and reject it for an
|
||||
agent that takes remote roles. Two remote listings still fold."""
|
||||
text = "We build the payment platform for our bank customers in Kotlin."
|
||||
office = replace(pc("v", "Vienna", text), country="AT")
|
||||
remote = replace(pc("r", "Remote, Germany", text), remote=True)
|
||||
other = replace(pc("s", "Remote, Spain", text), country="ES", remote=True)
|
||||
remote = replace(pc("r", "Remote, Berlin", text), remote=True)
|
||||
other = replace(pc("s", "Remote, Hamburg", text), remote=True)
|
||||
got = fold([office, remote, other])
|
||||
assert got.dup_of == {"v": None, "r": None, "s": "r"}
|
||||
assert got.placed == {"s"}
|
||||
|
||||
Reference in new issue
Block a user