mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-14 02:45:44 +00:00
parent
8576b101a0
commit
5dde8000f4
tests
@ -2,9 +2,9 @@ import os
|
||||
import urllib.parse
|
||||
|
||||
BASE_URL = os.getenv('SEAHUB_TEST_BASE_URL', 'http://127.0.0.1:8000')
|
||||
USERNAME = os.getenv('SEAHUB_TEST_USERNAME', 'test@seafiletest.com')
|
||||
USERNAME = os.getenv('SEAHUB_TEST_USERNAME', 'test@example.com')
|
||||
PASSWORD = os.getenv('SEAHUB_TEST_PASSWORD', 'testtest')
|
||||
ADMIN_USERNAME = os.getenv('SEAHUB_TEST_ADMIN_USERNAME', 'admin@seafiletest.com')
|
||||
ADMIN_USERNAME = os.getenv('SEAHUB_TEST_ADMIN_USERNAME', 'admin@example.com')
|
||||
ADMIN_PASSWORD = os.getenv('SEAHUB_TEST_ADMIN_PASSWORD', 'adminadmin')
|
||||
|
||||
if os.getenv('SEAHUB_TEST_IS_PRO', '') == '':
|
||||
|
@ -73,7 +73,7 @@ class LoginTest(BaseTestCase):
|
||||
def test_redirect_to_other_host_after_success_login(self):
|
||||
from django.utils.http import urlquote
|
||||
resp = self.client.post(
|
||||
reverse('auth_login') + '?next=' + urlquote('http://foo.com'),
|
||||
reverse('auth_login') + '?next=' + urlquote('http://example.org'),
|
||||
{'login': self.user.username,
|
||||
'password': self.user_password}
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
: ${PYTHON=python3}
|
||||
|
||||
: ${SEAHUB_TEST_USERNAME="test@seafiletest.com"}
|
||||
: ${SEAHUB_TEST_USERNAME="test@example.com"}
|
||||
: ${SEAHUB_TEST_PASSWORD="testtest"}
|
||||
: ${SEAHUB_TEST_ADMIN_USERNAME="admin@seafiletest.com"}
|
||||
: ${SEAHUB_TEST_ADMIN_USERNAME="admin@example.com"}
|
||||
: ${SEAHUB_TEST_ADMIN_PASSWORD="adminadmin"}
|
||||
|
||||
export SEAHUB_TEST_USERNAME
|
||||
|
Loading…
Reference in New Issue
Block a user