fix: allow config injection for sake of tests

now that wuttaweb sort of expects a db connection on startup
This commit is contained in:
Lance Edgar 2025-07-06 12:49:06 -05:00
parent 36ec626c7f
commit cc31592580
3 changed files with 9 additions and 9 deletions

View file

@ -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)