fix: allow config injection for sake of tests
now that wuttaweb sort of expects a db connection on startup
This commit is contained in:
parent
36ec626c7f
commit
cc31592580
3 changed files with 9 additions and 9 deletions
|
@ -17,15 +17,15 @@ class TestMain(DataTestCase):
|
|||
self.assertIsInstance(app, Router)
|
||||
|
||||
|
||||
class TestMakeWsgiApp(TestCase):
|
||||
class TestMakeWsgiApp(DataTestCase):
|
||||
|
||||
def test_coverage(self):
|
||||
app = mod.make_wsgi_app()
|
||||
app = mod.make_wsgi_app(config=self.config)
|
||||
self.assertIsInstance(app, Router)
|
||||
|
||||
|
||||
class TestMakeAsgiApp(TestCase):
|
||||
class TestMakeAsgiApp(DataTestCase):
|
||||
|
||||
def test_coverage(self):
|
||||
app = mod.make_asgi_app()
|
||||
app = mod.make_asgi_app(config=self.config)
|
||||
self.assertIsInstance(app, WsgiToAsgi)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue