python-zulip-api/zulip/tests
Preet Mishra 9a4abb9f87 zulip: Add hash_util_decode() to decode server encoded URL excerpts.
This adds hash_util_decode() to decode a hash_util_encode() [present in
zulip/zulip's zerver/lib/url_encoding.py [1]] encoded string.

The intent is to facilitate code sharing among various python clients
(primarily, Zulip Terminal).

The string replacement before the `unquote` is to recoup for the custom
string replacements in zulip/zulip's zerver/lib/url_encoding.py [1].

Test added.

[1] See hash_util_encode() in https://github.com/zulip/zulip/blob/master/zerver/lib/url_encoding.py.
2020-08-25 16:08:32 -07:00
..
__init__.py mypy: zulip: Fix errors in tests/__init__.py. 2017-10-27 00:56:06 -04:00
test_default_arguments.py typing: Convert function type annotations to Python 3 style. 2020-04-18 20:31:14 -07:00
test_hash_util_decode.py zulip: Add hash_util_decode() to decode server encoded URL excerpts. 2020-08-25 16:08:32 -07:00