Add guarded promoted YOLO activation
This commit is contained in:
@@ -4,7 +4,7 @@ from pathlib import Path
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_detection_operator_profiles_define_explicit_non_default_yolo_candidates() -> None:
|
||||
def test_detection_operator_profiles_define_explicit_yolo_candidates_and_promoted_profile() -> None:
|
||||
profiles = ROOT / "frontend" / "src" / "components" / "detection" / "detectionProfiles.ts"
|
||||
source = profiles.read_text(encoding="utf-8")
|
||||
|
||||
@@ -15,7 +15,10 @@ def test_detection_operator_profiles_define_explicit_non_default_yolo_candidates
|
||||
assert "confidenceThreshold: 0.15" in source
|
||||
assert "confidenceThreshold: 0.35" in source
|
||||
assert "defaultApproved: false" in source
|
||||
assert "defaultApproved: true" in source
|
||||
assert "promotionRecommendation: 'none'" in source
|
||||
assert "promotionRecommendation: 'promote_candidate'" in source
|
||||
assert "pure-empty gate passed" in source
|
||||
assert "false-positive pressure" in source
|
||||
|
||||
|
||||
@@ -29,6 +32,7 @@ def test_detection_lab_surfaces_profiles_as_deliberate_operator_actions() -> Non
|
||||
assert "profile.displayName" in lab
|
||||
assert "profile.confidenceThreshold" in lab
|
||||
assert "Candidate only - not default-approved" in lab
|
||||
assert "default-approved" in lab
|
||||
assert "Apply profile" in lab
|
||||
assert "onApplyOperatorProfile(profile)" in lab
|
||||
assert "Recommended starting threshold: 0.25" not in lab
|
||||
|
||||
Reference in New Issue
Block a user