mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 14:22:11 +08:00
12 lines
318 B
Python
12 lines
318 B
Python
from openpilot.common.params import UnknownKeyName
|
|
from openpilot.starpilot.common.safe_mode import _apply_value
|
|
|
|
|
|
class RemovedParamStore:
|
|
def get(self, key):
|
|
raise UnknownKeyName(key)
|
|
|
|
|
|
def test_apply_value_ignores_removed_param():
|
|
assert not _apply_value(RemovedParamStore(), "RemovedParam", "stale value")
|