Generate AES KeyPair lazily (#687)

* Generate AES KeyPair lazily

* Fix coverage

* Update post-review

* Fix pragma

* Make json dumps consistent between python and orjson

* Add comment

* Add comments re json parameter in HttpClient
This commit is contained in:
Steven B
2024-01-23 15:29:27 +00:00
committed by GitHub
parent 718983c401
commit e233e377ad
4 changed files with 58 additions and 24 deletions

View File

@@ -225,7 +225,10 @@ class MockAesDevice:
else:
return self._inner_error_code
async def post(self, url, params=None, json=None, *_, **__):
async def post(self, url, params=None, json=None, data=None, *_, **__):
if data:
async for item in data:
json = json_loads(item.decode())
return await self._post(url, json)
async def _post(self, url, json):