test-api: Fix tests to work with subdomains.

This commit is contained in:
Tim Abbott 2017-10-02 13:12:58 -07:00
parent 5a27a4cf1c
commit f05719e335
1 changed files with 2 additions and 2 deletions

View File

@ -21,11 +21,11 @@ django.setup()
from zerver.models import get_user, get_realm from zerver.models import get_user, get_realm
with test_server_running(): with test_server_running(external_host='zulipdev.com:9981'):
email = 'iago@zulip.com' # Iago is an admin email = 'iago@zulip.com' # Iago is an admin
realm = get_realm("zulip") realm = get_realm("zulip")
api_key = get_user(email, realm).api_key api_key = get_user(email, realm).api_key
site = 'http://127.0.0.1:9981' site = 'http://zulip.zulipdev.com:9981'
client = Client( client = Client(
email=email, email=email,