mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-27 16:10:11 +08:00
Try using an older version of mongoengine during build to get python 2.5 tests to pass
This commit is contained in:
+2
-1
@@ -7,8 +7,9 @@ python:
|
||||
|
||||
install:
|
||||
- pip install . --quiet --use-mirrors
|
||||
- pip install nose Flask-SQLAlchemy Flask-MongoEngine py-bcrypt MySQL-python --quiet --use-mirrors
|
||||
- "if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then pip install importlib simplejson --quiet --use-mirrors; fi"
|
||||
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install mongoengine==0.6.5 --quiet --use-mirrors; fi"
|
||||
- pip install nose Flask-SQLAlchemy Flask-MongoEngine py-bcrypt MySQL-python --quiet --use-mirrors
|
||||
|
||||
before_script:
|
||||
- mysql -e 'create database flask_security_test;'
|
||||
|
||||
+3
-8
@@ -30,14 +30,9 @@ def create_users():
|
||||
('joe@lp.com', 'password', ['editor'], True),
|
||||
('jill@lp.com', 'password', ['author'], True),
|
||||
('tiya@lp.com', 'password', [], False)):
|
||||
current_app.security.datastore.create_user(**{
|
||||
'email': u[0],
|
||||
'password': u[1],
|
||||
'roles': u[2],
|
||||
'active': u[3],
|
||||
'authentication_token':
|
||||
'123abc'
|
||||
})
|
||||
current_app.security.datastore.create_user(
|
||||
email=u[0], password=u[1], roles=u[2], active=u[3],
|
||||
authentication_token='123abc')
|
||||
|
||||
|
||||
def populate_data():
|
||||
|
||||
Reference in New Issue
Block a user