Fix WebHook dispatch for local sites
Review Request #8229 — Created June 10, 2016 and submitted
WebHooks dispatched from events triggered from local sites would fail
because the WebAPIEncoder would not have access to the local site to
completelocal_site_reversecalls. We now pass in the name of the
local site to ourFakeHTTPRequestclass and store it on the instance
wherelocal_site_reversecan find it. New unit tests have been added
to test each signal that triggers WebHook dispatch with a local site.
- Saw that WebHooks fired when creating and updating review requests for
local sites. - Ran unit tests.
Tool: Pyflakes Processed Files: reviewboard/notifications/webhooks.py reviewboard/notifications/tests.py Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/webhooks.py reviewboard/notifications/tests.py