mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
replace casperjs with selenium
This commit is contained in:
24
tests/common/common.py
Normal file
24
tests/common/common.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import os
|
||||
if os.getenv('CI_BASE_URL'):
|
||||
BASE_URL = os.getenv('CI_BASE_URL')
|
||||
else:
|
||||
BASE_URL = u'http://127.0.0.1:8000'
|
||||
|
||||
if os.getenv('CI_USERNAME'):
|
||||
USERNAME = os.getenv('CI_USERNAME')
|
||||
else:
|
||||
USERNAME = u'test@test.com'
|
||||
|
||||
if os.getenv('CI_PASSWORD'):
|
||||
PASSWORD = os.getenv('CI_PASSWORD')
|
||||
else:
|
||||
PASSWORD = u'testtest'
|
||||
|
||||
def getBaseUrl():
|
||||
return BASE_URL
|
||||
|
||||
def getUserName():
|
||||
return USERNAME
|
||||
|
||||
def getPassword():
|
||||
return PASSWORD
|
Reference in New Issue
Block a user