zulip/zerver/webhooks/hellosign
Steve Howell 7fbe08f515 webhook tests: Introduce get_payload.
We introduce get_payload for the relatively
exceptional cases where webhooks return payloads
as dicts.

Having a simple "str" type for get_body will
allow us to extract test helpers that use
payloads from get_body() without the ugly
`Union[str, Dict[str, str]]` annotations.

I also tightened up annotations in a few places
where we now call get_payload (using Dict[str, str]
instead of Dict[str, Any]).

In the zendesk test I explicitly stringify
one of the parameters to satisfy mypy.
2020-08-24 12:34:46 -07:00
..
fixtures webhooks/hellosign: Rewrite the integration from scratch. 2018-10-04 12:16:06 -07:00
__init__.py
doc.md webhooks: Update macros to specify custom topics and default PMs. 2018-03-18 10:53:45 -07:00
tests.py webhook tests: Introduce get_payload. 2020-08-24 12:34:46 -07:00
view.py python: Replace ujson with orjson. 2020-08-11 10:55:12 -07:00