mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 08:16:07 +00:00
@@ -2,9 +2,9 @@ import os
|
|||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
BASE_URL = os.getenv('SEAHUB_TEST_BASE_URL', 'http://127.0.0.1:8000')
|
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')
|
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')
|
ADMIN_PASSWORD = os.getenv('SEAHUB_TEST_ADMIN_PASSWORD', 'adminadmin')
|
||||||
|
|
||||||
if os.getenv('SEAHUB_TEST_IS_PRO', '') == '':
|
if os.getenv('SEAHUB_TEST_IS_PRO', '') == '':
|
||||||
|
@@ -73,7 +73,7 @@ class LoginTest(BaseTestCase):
|
|||||||
def test_redirect_to_other_host_after_success_login(self):
|
def test_redirect_to_other_host_after_success_login(self):
|
||||||
from django.utils.http import urlquote
|
from django.utils.http import urlquote
|
||||||
resp = self.client.post(
|
resp = self.client.post(
|
||||||
reverse('auth_login') + '?next=' + urlquote('http://foo.com'),
|
reverse('auth_login') + '?next=' + urlquote('http://example.org'),
|
||||||
{'login': self.user.username,
|
{'login': self.user.username,
|
||||||
'password': self.user_password}
|
'password': self.user_password}
|
||||||
)
|
)
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
: ${PYTHON=python3}
|
: ${PYTHON=python3}
|
||||||
|
|
||||||
: ${SEAHUB_TEST_USERNAME="test@seafiletest.com"}
|
: ${SEAHUB_TEST_USERNAME="test@example.com"}
|
||||||
: ${SEAHUB_TEST_PASSWORD="testtest"}
|
: ${SEAHUB_TEST_PASSWORD="testtest"}
|
||||||
: ${SEAHUB_TEST_ADMIN_USERNAME="admin@seafiletest.com"}
|
: ${SEAHUB_TEST_ADMIN_USERNAME="admin@example.com"}
|
||||||
: ${SEAHUB_TEST_ADMIN_PASSWORD="adminadmin"}
|
: ${SEAHUB_TEST_ADMIN_PASSWORD="adminadmin"}
|
||||||
|
|
||||||
export SEAHUB_TEST_USERNAME
|
export SEAHUB_TEST_USERNAME
|
||||||
|
Reference in New Issue
Block a user