Align EV9 stopping marker test contract

This commit is contained in:
Dom
2026-10-23 01:29:12 -05:00
parent 22b2f2a898
commit d048a8eb98
2 changed files with 11 additions and 5 deletions
@@ -34,12 +34,18 @@ def context(**fields):
class TestEV9Stopping(unittest.TestCase):
def test_only_exact_long_profile_gets_policy_and_stock_siblings_stay_unmodified(self):
assert policy_for(cp(), .01) is not None
for marker in (0, 32):
with self.subTest(admitted_marker=marker):
admitted = cp()
admitted.alternativeExperience = marker
self.assertIsNotNone(policy_for(admitted, .01))
for identity in (CAR.KIA_EV9, CAR.HYUNDAI_IONIQ_5_PE, CAR.HYUNDAI_IONIQ_6):
self.assertIsNone(policy_for(params(candidate=identity), .01))
malformed = cp()
malformed.alternativeExperience = 32
self.assertIsNone(policy_for(malformed, .01))
for marker in (1, 33, 64):
with self.subTest(invalid_marker=marker):
malformed = cp()
malformed.alternativeExperience = marker
self.assertIsNone(policy_for(malformed, .01))
def test_actual_loop_release_hysteresis_reset_and_lead_fast_path(self):
loop = LongControl(cp())
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "3f3d31e4154b23c5b9591d61b3cf9799c485a830cfd6ab9ddd33a7a5028a4c0d", "schema_version": 1}
{"protected_inventory_sha256": "c2147a005d3047a225dfb659ec41a7cc02689146785844bc62dbc580a9259f76", "schema_version": 1}