mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
tests: Add make_client() test helper.
This commit is contained in:
@@ -140,6 +140,11 @@ def queries_captured():
|
||||
TimeTrackingCursor.executemany = old_executemany # type: ignore # https://github.com/JukkaL/mypy/issues/1167
|
||||
|
||||
|
||||
def make_client(name):
|
||||
# type: (str) -> Client
|
||||
client, _ = Client.objects.get_or_create(name=name)
|
||||
return client
|
||||
|
||||
def find_key_by_email(address):
|
||||
# type: (text_type) -> text_type
|
||||
from django.core.mail import outbox
|
||||
|
||||
Reference in New Issue
Block a user