zulip/zerver/tests
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
..
images Update types of images accepted as avatars. 2016-07-26 16:36:47 +05:30
__init__.py Fix missing zerver/tests/__init__.py. 2016-04-11 22:34:22 -07:00
test_alert_words.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_attachments.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_audit_log.py Switch change_tos_version to use RealmAuditLog. 2017-05-29 15:24:01 -07:00
test_auth_backends.py Replace iago@zulip.com with example_email('iago'). 2017-05-24 19:37:36 -07:00
test_bots.py tests: Fix str/Text mypy issues in various tests. 2017-05-24 15:19:38 -07:00
test_bugdown.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_compatibility.py mobile: Add an endpoint for checking compatibility. 2017-02-03 09:55:34 -08:00
test_custom_profile_data.py tests: Remove get_user_profile_by_email from numerous tests. 2017-05-24 15:19:20 -07:00
test_decorators.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_docs.py test_docs: Add tests to ensure all integrations present. 2017-05-10 11:30:32 -07:00
test_email_change.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_email_mirror.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_events.py messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
test_export.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_external.py tests: Replace mit_user().email with mit_email(). 2017-05-24 12:44:43 -07:00
test_home.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_hotspots.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_i18n.py testing: Reset active language. 2017-05-24 11:35:17 -07:00
test_link_embed.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_logging_handlers.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_management_commands.py create_realm: Fix heading for creating an organization. 2017-04-27 11:12:09 -07:00
test_messages.py testing: Invalidate cache before counting queries. 2017-05-30 17:28:41 +05:00
test_middleware.py tests: Extract zerver/tests/test_middleware.py. 2017-03-08 03:57:37 -08:00
test_muting.py tests: Remove get_user_profile_by_email from most tests. 2017-05-24 13:05:19 -07:00
test_narrow.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_new_users.py test: Add test_notify_realm_of_new_user. 2017-05-28 19:14:52 -07:00
test_notifications.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_outgoing_webhook_system.py lint: Fix trailing newlines in outgoing webhook tests. 2017-05-25 16:28:11 -07:00
test_presence.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_push_notifications.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_queue_worker.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_reactions.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_realm.py Replace iago@zulip.com with example_email('iago'). 2017-05-24 19:37:36 -07:00
test_realm_domains.py Replace iago@zulip.com with example_email('iago'). 2017-05-24 19:37:36 -07:00
test_realm_emoji.py realm_emoji.py: Allow an user to delete an emoji uploaded by them. 2017-05-29 20:21:25 -07:00
test_realm_filters.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_report.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_retention.py messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
test_service_bot_system.py bots: Add additional service bot tests. 2017-05-25 15:00:51 -07:00
test_sessions.py tests: Fix str/Text mypy issues in various tests. 2017-05-24 15:19:38 -07:00
test_settings.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_signup.py Replace cordelia@zulip.com with example_email('cordelia'). 2017-05-24 19:37:36 -07:00
test_subs.py webhooks: Add outgoing webhook bot user to development database. 2017-05-29 16:01:23 -07:00
test_templates.py messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
test_timestamp.py Replace timezone.utc with timezone_utc. 2017-04-16 12:28:56 -07:00
test_tornado.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_tutorial.py tests: Remove get_user_profile_by_email from most tests. 2017-05-24 13:05:19 -07:00
test_type_debug.py pep8: Add compliance with rule E261 to test_type_debug.py. 2017-05-07 23:21:50 -07:00
test_typing.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_unread.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_upload.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_urls.py pep8: Add compliance with rule E261 to test_urls.py. 2017-05-18 03:00:32 +05:30
test_users.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_zephyr.py bots: Move zephyr-related files to api/integrations/zephyr/. 2017-05-26 15:07:02 -07:00
tests.py retention-period: Add retention period to front-end admin organization settings. 2017-03-25 17:57:18 -07:00