zulip/zerver
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
..
actions message_edit: Support sending notifications with topic changes. 2022-10-11 11:35:41 -07:00
data_import slack: Skip files where file_access: access_denied. 2022-10-11 10:53:16 -07:00
integration_fixtures/nagios
lib test_classes: Create a dedicate helper for query count check. 2022-10-17 11:32:52 -07:00
management python: Clean up getattr, setattr, delattr calls with literal names. 2022-10-10 08:40:28 -07:00
migrations migrations: Remove noop realm filters operations. 2022-10-14 17:52:28 -07:00
openapi api-docs: Update examples of queue_id for uuid format. 2022-10-13 10:08:42 -07:00
tests test_classes: Create a dedicate helper for query count check. 2022-10-17 11:32:52 -07:00
tornado python: Replace avoidable uses of __special__ attributes. 2022-10-10 08:32:29 -07:00
views message_edit: Support sending notifications with topic changes. 2022-10-11 11:35:41 -07:00
webhooks python: Mark dict parameters with defaults as read-only. 2022-10-06 13:48:28 -07:00
worker python: Use format string for logging str(obj). 2022-10-10 08:32:29 -07:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py templates: Rename `OPEN_GRAPH` variables to `PAGE` or `PAGE_METADATA`. 2022-09-06 14:57:06 -07:00
decorator.py python: Clean up getattr, setattr, delattr calls with literal names. 2022-10-10 08:40:28 -07:00
filters.py
forms.py forms: Fix another 500 error on realm creation with invalid email. 2022-09-19 14:12:32 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py python: Clean up getattr, setattr, delattr calls with literal names. 2022-10-10 08:40:28 -07:00
models.py cache: Only cache list results of QuerySets, not the QuerySet itself. 2022-10-12 22:25:48 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00