Skip to content
Browse files

fixups

  • Loading branch information...
1 parent 8f09e23 commit 5b36d25599d337bf412ee91fb974718785a4da81 @niallo committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 hagalund/tests.py
View
3 hagalund/tests.py
@@ -8,8 +8,6 @@ def setUp(self):
from hagalund import main
app = main({}, **{"mako.directories":"dragpushpullcom:templates"})
- from webtest import TestApp
- self.testapp = TestApp(app)
self.settings = app.registry.settings
self.db = self.settings['mongodb_conn'][self.settings["mongodb.db_name"]]
@@ -19,6 +17,7 @@ def tearDown(self):
def test_my_view(self):
from hagalund.views import my_view
request = testing.DummyRequest()
+ request.db = self.db
info = my_view(request)
self.assertEqual(info['project'], 'hagalund')

0 comments on commit 5b36d25

Please sign in to comment.
Something went wrong with that request. Please try again.