mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-09 11:22:35 +08:00
Polish up tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from tests.test_app.sqlalchemy import create_app
|
from tests.test_app.sqlalchemy import create_app
|
||||||
|
|
||||||
|
|||||||
@@ -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.mongoengine import MongoEngine
|
||||||
from flask.ext.security import Security, UserMixin, RoleMixin, \
|
from flask.ext.security import Security, UserMixin, RoleMixin, \
|
||||||
|
|||||||
@@ -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.sqlalchemy import SQLAlchemy
|
||||||
from flask.ext.security import Security, UserMixin, RoleMixin, \
|
from flask.ext.security import Security, UserMixin, RoleMixin, \
|
||||||
|
|||||||
Reference in New Issue
Block a user