params: remove persistent params (#21975)

* cleanup constructors

* remove persistent_param

* remove test_persist_params_put_and_get
old-commit-hash: 3b752a307f
This commit is contained in:
Dean Lee
2021-08-21 07:57:45 +08:00
committed by GitHub
parent 6c19c29b6f
commit 29ec7b83bf
6 changed files with 12 additions and 22 deletions

View File

@@ -21,11 +21,6 @@ class TestParams(unittest.TestCase):
self.params.put("DongleId", "cb38263377b873ee")
assert self.params.get("DongleId") == b"cb38263377b873ee"
def test_persist_params_put_and_get(self):
p = Params(persistent_params=True)
p.put("DongleId", "cb38263377b873ee")
assert p.get("DongleId") == b"cb38263377b873ee"
def test_params_non_ascii(self):
st = b"\xe1\x90\xff"
self.params.put("CarParams", st)