zulip/zerver
Sahil Batra 9a03a78e3d test_users: Use delivery_email instead of email to generate gravatar url.
We always use delivery_email to generate gravatar_url, but in
test_admin_api_hide_emails we were passing email to get_gravatar_url
and matched with the avatar_url field of the fetched user object.

The tests were passing because the email_address_is_realm_public
was using old realm object and thus email field was incorrectly
set to delivery_email even when email_address_visibility was set
to EMAIL_ADDRESS_VISIBILITY_ADMINS.

This commit fixes the test to pass delivery_email to get_gravatar_url.
2021-10-29 16:19:55 -07:00
..
data_import slack import: Fix requests.get usage of get_slack_api_data. 2021-10-07 11:46:23 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib realm: Create RealmUserDefault object for internal realm. 2021-10-29 16:19:55 -07:00
management python: Remove re.UNICODE flag (redundant in Python 3). 2021-10-22 13:42:29 -07:00
migrations linkifiers: Explicitly only check format strings after verifying as a URL. 2021-10-22 13:00:20 -07:00
openapi openapi: Document remove-attachment endpoint. 2021-10-29 15:01:50 -07:00
tests test_users: Use delivery_email instead of email to generate gravatar url. 2021-10-29 16:19:55 -07:00
tornado lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
views realm: Rename plan type constants to be more descriptive. 2021-10-19 12:20:39 -07:00
webhooks webhooks/github: Include discussion ID in messages. 2021-10-26 17:52:57 -07:00
worker queue_processors: Disable timeouts with PushNotificationsWorker. 2021-10-21 08:59:56 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py auth: Add login buttons for web public access. 2021-10-05 16:30:40 -07:00
decorator.py push_notifications: Provide a hint when the server is not registered. 2021-10-19 12:17:30 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py auth: Make the deactivated user error message clearer. 2021-09-10 10:47:15 -07:00
logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
middleware.py lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
models.py typo: Fix models.py grammatical error. 2021-10-22 13:44:26 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00