#238 Removed prints and fixed example

This commit is contained in:
Oleg A 2019-11-24 01:08:06 +03:00
parent a42252b5c6
commit 1305a06b24
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,8 @@ Basic link example:
Encoded link example:
>>> from aiogram.utils.deep_linking import get_start_link, decode_payload
>>> link = await get_start_link('foo', encode=True) # result: 'https://t.me/MyBot?start=Zm9v'
>>> data = decode_payload('Zm9v') # result: 'foo'
>>> # and decode it back:
>>> payload = decode_payload('Zm9v') # result: 'foo'
"""

View file

@ -60,7 +60,6 @@ class TestDeepLinking:
async def test_filter_encode_and_decode(self, payload):
_payload = filter_payload(payload)
encoded = encode_payload(_payload)
print(encoded)
decoded = decode_payload(encoded)
assert decoded == str(payload)