[#184]: session token keywords moved to separate repo; session token

tests slightly refactored

Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
anastasia prasolova 2022-05-27 17:42:42 +03:00 committed by Anastasia Prasolova
parent 3e31c527d2
commit e489b43d63
6 changed files with 124 additions and 77 deletions

View file

@ -101,6 +101,10 @@ def json_reencode(data: str):
'''
return base58.b58encode(base64.b64decode(data)).decode("utf-8")
def encode_for_json(data: str):
return base64.b64encode(base58.b58decode(data)).decode('utf-8')
def decode_common_fields(data: dict):
'''
Despite of type (simple/complex Object, Storage Group, etc) every Object