mirror of https://github.com/zulip/zulip.git
4691028097
In the GitHub integration we established that for many integrations, we can directly map the fixture filename to the set of required headers and by following a simple naming convention we can greatly ease the logic involved in fixture_to_headers method required . So to prevent the need for duplicating the logic used by the GitHub integration, we created a method called `get_http_headers_from_filename` which will take the name of the HTTP header (key) and then return a corresponding method (in a decorator-like fashion) which could then be equated to fixture_to_headers in headers.py. The GitHub integration was modified to use this method and the docs were updated to suggest using this when possible. |
||
---|---|---|
.. | ||
__init__.py | ||
common.py | ||
git.py |