From 4e41f4ec5e90cd6288f80a2eb957bf9dc89e635d Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Fri, 24 Aug 2012 00:47:41 -0400 Subject: [PATCH] Polish up tests --- tests/__init__.py | 2 ++ tests/test_app/mongoengine.py | 7 +++++++ tests/test_app/sqlalchemy.py | 8 ++++++++ 3 files changed, 17 insertions(+) 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, \