zulip/analytics
Zixuan James Li 46329a2710 test_classes: Create a dedicate helper for query count check.
This adds a helper based on testing patterns of using the "queries_captured"
context manager with "assert_length" to check the number of queries
executed for preventing performance regression.

It explains the rationale of checking the query count through an
"AssertionError" and prints the queries captured as assert_length does,
but with a format optimized for displaying the queries in a more
readable manner.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-10-17 11:32:52 -07:00
..
lib analytics: Add Composable type annotations. 2022-07-30 06:46:34 -07:00
management analytics: Add summary statistic for upload/storage space in use. 2022-10-07 10:08:09 -07:00
migrations typing: Use BaseDatabaseSchemaEditor in place of DatabaseSchemaEditor. 2022-05-30 14:18:53 -07:00
tests test_classes: Create a dedicate helper for query count check. 2022-10-17 11:32:52 -07:00
views analytics: Add summary statistic for upload/storage space in use. 2022-10-07 10:08:09 -07:00
__init__.py
models.py models: Implicitly type model fields with django-stubs. 2022-10-05 16:15:56 -07:00
urls.py analytics: Use user IDs to get user activity summaries. 2021-10-13 15:30:27 -07:00