zulip/analytics
Zixuan James Li 426f8ce385 tests: Replace `HttpResponse` with `TestHttpResponse.`
Since `HttpResponse` is an inaccurate representation of the
monkey-patched response object returned by the Django test client, we
replace it with `_MonkeyPatchedWSGIResponse` as `TestHttpResponse`.

This replaces `HttpResponse` in zerver/tests, analytics/tests, coporate/tests,
zerver/lib/test_classes.py, and zerver/lib/test_helpers.py with
`TestHttpResponse`. Several files in zerver/tests are excluded
from this substitution.

This commit is auto-generated by a script, with manual adjustments on certain
files squashed into it.

This is a part of the django-stubs refactorings.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-06-08 11:25:03 -07:00
..
lib actions: Delete zerver.lib.actions. 2022-04-14 17:14:38 -07:00
management actions: Split out zerver.actions.create_realm. 2022-04-14 17:14:37 -07:00
migrations typing: Use BaseDatabaseSchemaEditor in place of DatabaseSchemaEditor. 2022-05-30 14:18:53 -07:00
tests tests: Replace `HttpResponse` with `TestHttpResponse.` 2022-06-08 11:25:03 -07:00
views python: Excise None from pointlessly nullable booleans. 2022-04-27 12:40:14 -07:00
__init__.py
models.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
urls.py analytics: Use user IDs to get user activity summaries. 2021-10-13 15:30:27 -07:00