Remove unused get_user_profile_by_email() imports.

This commit is contained in:
Steve Howell 2017-05-08 08:54:11 -07:00 committed by Tim Abbott
parent 3b2a3601c1
commit b609911656
9 changed files with 15 additions and 11 deletions

View File

@ -8,7 +8,6 @@ import ujson
from typing import Any
from zerver.lib.attachments import user_attachments
from zerver.lib.test_helpers import get_user_profile_by_email
from zerver.lib.test_classes import ZulipTestCase
from zerver.models import Attachment

View File

@ -6,7 +6,7 @@ from zerver.lib.actions import do_create_user, do_deactivate_user, \
do_change_user_email, do_change_avatar_fields, do_change_bot_owner, \
do_regenerate_api_key
from zerver.lib.test_classes import ZulipTestCase
from zerver.models import RealmAuditLog, get_realm, get_user_profile_by_email
from zerver.models import RealmAuditLog, get_realm
from datetime import timedelta
from django.contrib.auth.password_validation import validate_password

View File

@ -16,8 +16,10 @@ from zerver.lib.test_classes import (
)
from zerver.models import (
get_display_recipient, get_stream, get_user_profile_by_email,
Recipient, get_realm,
get_display_recipient,
get_realm,
get_stream,
Recipient
)
from zerver.lib.actions import (

View File

@ -36,7 +36,6 @@ from zerver.lib.test_classes import (
from zerver.lib.test_runner import slow
from zerver.models import (
get_user_profile_by_email,
Message,
Realm,
Recipient,

View File

@ -17,7 +17,6 @@ from zerver.lib.actions import compute_mit_user_fullname
from zerver.lib.test_classes import (
ZulipTestCase,
)
from zerver.models import get_user_profile_by_email
import DNS
import mock

View File

@ -17,7 +17,11 @@ from zerver.lib.notifications import handle_missedmessage_emails
from zerver.lib.actions import render_incoming_message, do_update_message
from zerver.lib.message import access_message
from zerver.lib.test_classes import ZulipTestCase
from zerver.models import get_user_profile_by_email, Recipient, UserMessage, UserProfile
from zerver.models import (
Recipient,
UserMessage,
UserProfile,
)
class TestMissedMessages(ZulipTestCase):
def normalize_string(self, s):

View File

@ -14,8 +14,10 @@ from django.conf import settings
from django.http import HttpResponse
from zerver.models import PushDeviceToken, UserProfile, Message
from zerver.models import get_user_profile_by_email, receives_online_notifications, \
receives_offline_notifications
from zerver.models import (
receives_offline_notifications,
receives_online_notifications,
)
from zerver.lib import push_notifications as apn
from zerver.lib.response import json_success
from zerver.lib.test_classes import (

View File

@ -13,7 +13,7 @@ from typing import Any, Callable, Dict, List, Mapping, Tuple
from zerver.lib.test_helpers import simulated_queue_client
from zerver.lib.test_classes import ZulipTestCase
from zerver.models import get_client, get_user_profile_by_email, UserActivity
from zerver.models import get_client, UserActivity
from zerver.worker import queue_processors
class WorkerTest(ZulipTestCase):

View File

@ -10,7 +10,6 @@ from django.test import override_settings
from django.template import Template, Context
from django.template.loader import get_template
from zerver.models import get_user_profile_by_email
from zerver.lib.test_helpers import get_all_templates
from zerver.lib.test_classes import (
ZulipTestCase,