|
@@ -6,6 +6,7 @@ from flask.ext.sqlalchemy import SQLAlchemy
|
|
|
import unittest
|
|
|
import doctest
|
|
|
import json
|
|
|
+import sys
|
|
|
|
|
|
|
|
|
|
|
@@ -77,7 +78,7 @@ class TestCase(unittest.TestCase):
|
|
|
test_cfg={
|
|
|
'TESTING': True,
|
|
|
'WTF_CSRF_ENABLED': False,
|
|
|
- 'SQLALCHEMY_DATABASE_URI': 'sqlite://',
|
|
|
+ 'SQLALCHEMY_DATABASE_URI': 'sqlite:///',
|
|
|
}
|
|
|
test_cfg.update(kwargs)
|
|
|
return create_app(test_cfg)
|
|
@@ -86,7 +87,8 @@ class TestCase(unittest.TestCase):
|
|
|
self.app = self.create_app()
|
|
|
self.client = self.app.test_client()
|
|
|
with self.app.app_context():
|
|
|
- db.create_all()
|
|
|
+ print(db)
|
|
|
+ db.create_all()
|
|
|
self._ctx = self.app.test_request_context()
|
|
|
self._ctx.push()
|
|
|
|