zulip/zerver
Umair Khan 71f97b7bcb testing: Invalidate cache before counting queries.
To get accurate count of the queries, we should make sure that
caches don't come into play. If we count queries while caches are
filled, we will get a lower count. Caches are not supposed to be
persistent, so our test can also fail if cache is invalidated
during the course of the unit test.

This commit solves the problem with Stream cache. This cache comes
into play when we use `get_stream` function. If cache is valid,
we will not issue queries to Stream and Recipient table. I think
the problem was one of those rare occasions when the Stream cache
got invalidated during the course of the test, due to which query
count was increased by 2. After this commit, we intentially invalidate
the Stream cache.
2017-05-30 17:28:41 +05:00
..
fixtures bugdown: Fix the regex used for unicode emoji matching. 2017-05-16 09:05:42 -07:00
lib messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
management Switch change_full_name to use RealmAuditLog. 2017-05-29 15:22:08 -07:00
migrations Refactoring: Replace get_user_profile_by_email() in lib/upload.py 2017-05-23 12:37:49 -07:00
outgoing_webhooks Outgoing Webhook System: Add zerver/outgoing_webhooks. 2017-05-02 08:20:31 -07:00
templatetags templates: Support parametric Markdown macros for webhooks docs. 2017-05-24 17:00:19 -07:00
tests testing: Invalidate cache before counting queries. 2017-05-30 17:28:41 +05:00
tornado messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
views messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
webhooks webhooks/gosquared: Migrate docs to Markdown. 2017-05-28 18:44:00 -07:00
worker bots: Add queue and QueueProcessingWorker for embedded bots. 2017-05-25 15:00:51 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Add notifications on new logins to Zulip. 2017-03-25 16:50:52 -07:00
context_processors.py subdomains: Toggle various links with SUBDOMAINS_HOMEPAGE. 2017-05-15 21:54:35 -07:00
decorator.py mypy: correct user_passes_test first argument. 2017-05-25 15:41:48 -07:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
forms.py reset_password: Modify password reset email if email is in wrong realm. 2017-04-24 21:58:29 -07:00
logging_handlers.py logging_handlers: Fix tracebacks being emailed in subject lines. 2017-04-25 18:55:11 -07:00
middleware.py mypy: Fix missing import from recent mypy merge. 2017-05-25 16:22:19 -07:00
models.py mypy: Various strict-optional fixes in zerver. 2017-05-26 10:10:20 -07:00
signals.py Add a send_email function that takes a template_prefix and context. 2017-05-05 14:20:32 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py pep8: Add compliance with rule E261 to storage.py. 2017-05-07 23:21:50 -07:00