zulip/analytics/tests
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
..
__init__.py
test_activity_views.py test_classes: Create a dedicate helper for query count check. 2022-10-17 11:32:52 -07:00
test_counts.py models: Add denormalized .realm column to Message. 2022-10-07 10:09:38 -07:00
test_fixtures.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_stats_views.py tests: Refactor away result.json() calls with helpers. 2022-06-06 23:06:00 -07:00
test_support_views.py support: Correctly show Unspecified org type at /activity/support. 2022-07-29 14:56:34 -07:00