diff --git a/.travis.yml b/.travis.yml index 37004a2..82ebd0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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;' diff --git a/example/app.py b/example/app.py index 74fc172..ee2e38e 100644 --- a/example/app.py +++ b/example/app.py @@ -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():