sideshow/tests/web/test_app.py
Lance Edgar cc31592580 fix: allow config injection for sake of tests
now that wuttaweb sort of expects a db connection on startup
2025-07-06 12:49:06 -05:00

31 lines
708 B
Python

# -*- coding: utf-8; -*-
from unittest import TestCase
from asgiref.wsgi import WsgiToAsgi
from pyramid.router import Router
from wuttjamaican.testing import DataTestCase
from sideshow.web import app as mod
class TestMain(DataTestCase):
def test_coverage(self):
app = mod.main({}, **{'wutta_config': self.config})
self.assertIsInstance(app, Router)
class TestMakeWsgiApp(DataTestCase):
def test_coverage(self):
app = mod.make_wsgi_app(config=self.config)
self.assertIsInstance(app, Router)
class TestMakeAsgiApp(DataTestCase):
def test_coverage(self):
app = mod.make_asgi_app(config=self.config)
self.assertIsInstance(app, WsgiToAsgi)