Skip to content

Commit 596ab11

Browse files
authored
test: cover full-time HN lead headers (#386)
1 parent c57cd79 commit 596ab11

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tests/unit/test_job_lead_sources.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,22 @@ def test_heuristic_rejects_full_time_role_with_customer_contract() -> None:
203203
assert classification.contact_email == "stefan.akatyschew@anoritech.com"
204204

205205

206+
def test_heuristic_recognizes_full_time_header_with_smart_contracts() -> None:
207+
classification = classify_contractor_lead_heuristic(
208+
"Category Labs | https://www.category.xyz/ | Remote and NYC | Full Time | "
209+
"$200K USD+\nCategory Labs builds a high-performance EVM for smart "
210+
"contracts. Senior Software Engineer (C++ / Rust)."
211+
)
212+
213+
assert classification.is_contractor_friendly is False
214+
assert classification.posting_type is JobPostingType.FULL_TIME
215+
assert classification.tags == ["full-time"]
216+
assert (
217+
classification.rationale
218+
== "Explicit full-time employment with no contract option."
219+
)
220+
221+
206222
def test_heuristic_accepts_role_open_to_full_time_or_contract() -> None:
207223
classification = classify_contractor_lead_heuristic(
208224
"Acme | Engineer | Full-time or contract | Remote"

0 commit comments

Comments
 (0)