Fix fsmcontextproxy update (#755)

* Create test case for invalid 'FSMContextProxy.update()' function

* Fix invalid 'FSMContextProxy.update()' function

* Verify that written data has been stored and read back correctly
This commit is contained in:
Cyril Margorin 2021-12-01 03:43:12 +03:00 committed by GitHub
parent bccfca7cae
commit d646e19852
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -408,6 +408,8 @@ class FSMContextProxy:
def update(self, data=None, **kwargs):
self._check_closed()
if data is None:
data = {}
self._data.update(data, **kwargs)
def pop(self, key, default=None):