diff --git a/tests/__init__.py b/tests/__init__.py index 3392fab..9742239 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + from unittest import TestCase from tests.test_app.sqlalchemy import create_app diff --git a/tests/test_app/mongoengine.py b/tests/test_app/mongoengine.py index e1efdec..eb61df4 100644 --- a/tests/test_app/mongoengine.py +++ b/tests/test_app/mongoengine.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- + +import sys +import os + +sys.path.pop(0) +sys.path.insert(0, os.getcwd()) from flask.ext.mongoengine import MongoEngine from flask.ext.security import Security, UserMixin, RoleMixin, \ diff --git a/tests/test_app/sqlalchemy.py b/tests/test_app/sqlalchemy.py index 555af75..04896a0 100644 --- a/tests/test_app/sqlalchemy.py +++ b/tests/test_app/sqlalchemy.py @@ -1,3 +1,11 @@ +# -*- coding: utf-8 -*- + +import sys +import os + +sys.path.pop(0) +sys.path.insert(0, os.getcwd()) + from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.security import Security, UserMixin, RoleMixin, \