--- a/tests/test_viewer.py Sat Jun 18 22:30:42 2016 +0800
+++ b/tests/test_viewer.py Sat Jun 18 22:45:43 2016 +0800
from viewer import CandolintViewer
+ database.init(':memory:')
+ database.create_tables([Project, Change, Check], safe=True)
+ database.connect = Mock()
+ database.close = Mock()
class ViewerTestCase(AsyncHTTPTestCase):
- database.init(':memory:')
- database.create_tables([Project, Change, Check], safe=True)
- database.connect = Mock()
- database.disconnect = Mock()