Clear a company's by-hand reason when a board is attached to it

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-29 19:27:55 +02:00
1 parent 940151bdc5
commit 2c3bce99e3
3 files changed
+14 -4

No files matched your search

+10
View File
@@ -83,6 +83,16 @@ def test_set_board_attaches_a_board_to_a_row_without_one(store: Store, boards: B
"ashby", "acme", "acme.example", "met them", "https://acme.example/careers")
def test_set_board_clears_the_reason_a_company_was_read_by_hand(
store: Store, boards: Boards) -> None:
store.add_company("Acme", careers_url="https://acme.example/careers", hand_reason="unread")
sources.set_board(store, "acme", "ashby:acme")
acme = store.company("acme")
assert acme is not None
# The link a person set stays; the reason goes with the board's arrival.
assert (acme.hand_reason, acme.careers_url) == ("", "https://acme.example/careers")
def test_set_board_replaces_a_board_and_closes_its_open_roles(
store: Store, boards: Boards) -> None:
old, _, _ = sources.set_board(store, "acme", "greenhouse:acme", name="Acme")