2025-01-06 17:03:41 -06:00
|
|
|
# -*- coding: utf-8; -*-
|
|
|
|
|
|
|
|
from unittest import TestCase
|
|
|
|
|
|
|
|
from asgiref.wsgi import WsgiToAsgi
|
|
|
|
from pyramid.router import Router
|
|
|
|
|
2025-07-06 12:24:12 -05:00
|
|
|
from wuttjamaican.testing import DataTestCase
|
2025-01-06 17:03:41 -06:00
|
|
|
|
2025-07-06 12:24:12 -05:00
|
|
|
from sideshow.web import app as mod
|
2025-01-06 17:03:41 -06:00
|
|
|
|
|
|
|
|
2025-07-06 12:24:12 -05:00
|
|
|
class TestMain(DataTestCase):
|
2025-01-06 17:03:41 -06:00
|
|
|
|
|
|
|
def test_coverage(self):
|
2025-07-06 12:24:12 -05:00
|
|
|
app = mod.main({}, **{'wutta_config': self.config})
|
2025-01-06 17:03:41 -06:00
|
|
|
self.assertIsInstance(app, Router)
|
|
|
|
|
|
|
|
|
2025-07-06 12:49:06 -05:00
|
|
|
class TestMakeWsgiApp(DataTestCase):
|
2025-01-06 17:03:41 -06:00
|
|
|
|
|
|
|
def test_coverage(self):
|
2025-07-06 12:49:06 -05:00
|
|
|
app = mod.make_wsgi_app(config=self.config)
|
2025-01-06 17:03:41 -06:00
|
|
|
self.assertIsInstance(app, Router)
|
|
|
|
|
|
|
|
|
2025-07-06 12:49:06 -05:00
|
|
|
class TestMakeAsgiApp(DataTestCase):
|
2025-01-06 17:03:41 -06:00
|
|
|
|
|
|
|
def test_coverage(self):
|
2025-07-06 12:49:06 -05:00
|
|
|
app = mod.make_asgi_app(config=self.config)
|
2025-01-06 17:03:41 -06:00
|
|
|
self.assertIsInstance(app, WsgiToAsgi)
|