chore: reuse json util #712 (#713)

This commit is contained in:
Oleg A 2021-10-06 00:59:43 +03:00 committed by GitHub
parent daf085ff9e
commit 100848b889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 5 deletions

View file

@ -26,7 +26,7 @@ class FakeTelegram(aresponses.ResponsesMockServer):
@staticmethod
def parse_data(message_data):
import json
from aiogram.utils import json
from aiogram.utils.payload import _normalize
_body = '{"ok":true,"result":' + json.dumps(_normalize(message_data)) + '}'