--- a/dev-requirements.txt Fri Jun 17 21:23:45 2016 +0800
+++ b/dev-requirements.txt Sat Jun 18 18:56:12 2016 +0800
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_viewer.py Sat Jun 18 18:56:12 2016 +0800
+from tornado.testing import AsyncHTTPTestCase
+from candolint.models import database, Project, Change, Check
+from viewer import CandolintViewer
+class ViewerTestCase(AsyncHTTPTestCase):
+ database.init(':memory:')
+ database.create_tables([Project, Change, Check], safe=True)
+ database.connect = Mock()
+ database.disconnect = Mock()
+ return CandolintViewer()