mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-27 16:43:59 +08:00
Use a typed failure callback in HKG admission regression
This commit is contained in:
@@ -125,8 +125,11 @@ def test_latest_panda_fault_veto_stays_live(cp):
|
||||
|
||||
|
||||
def test_unknown_ducktype_never_serializes_or_caches():
|
||||
def unexpected_copy():
|
||||
raise AssertionError('unknown CP must not be serialized')
|
||||
|
||||
cp = SimpleNamespace(brand='hyundai', carFingerprint='KIA_EV9', schema=None,
|
||||
copy=lambda: pytest.fail('unknown CP must not be serialized'))
|
||||
copy=unexpected_copy)
|
||||
assert vehicle.native_admission_key(cp) is None
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "325c00c77adb6543594adf49e70a5884bc676dad40b4c23f1abf4157c0dbde51", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "9a0184a063f68cb782667240119b99c1eb0b4786d285659a05f7d6b776136d32", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user