Try using an older version of mongoengine during build to get python 2.5 tests to pass

This commit is contained in:
Matt Wright
2012-06-20 16:51:09 -04:00
parent 7f2a05c364
commit 0a8ee87319
2 changed files with 5 additions and 9 deletions
+2 -1
View File
@@ -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
View File
@@ -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():