zulip/zerver/webhooks/freshdesk
Steve Howell c235333041 test performance: Pass in users to api_* helpers.
This reduces query counts in some cases, since
we no longer need to look up the user again. In
particular, it reduces some noise when we
count queries for O(N)-related tests.

The query count is usually reduced by 2 per
API call.  We no longer need to look up Realm
and UserProfile.  In most cases we are saving
these lookups for the whole tests, since we
usually already have the `user` objects for
other reasons.  In a few places we are simply
moving where that query happens within the
test.

In some places I shorten names like `test_user`
or `user_profile` to just be `user`.
2020-03-11 14:18:29 -07:00
..
fixtures webhooks/freshdesk: Improve test coverage. 2018-10-04 12:16:06 -07:00
__init__.py
doc.md webhooks/freshdesk/doc.md: Remove unescape_rendered_html kludge. 2019-07-03 15:05:45 -07:00
tests.py test performance: Pass in users to api_* helpers. 2020-03-11 14:18:29 -07:00
view.py python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00