sideshow/tests/web/test_app.py

32 lines
664 B
Python
Raw Normal View History

# -*- 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(TestCase):
def test_coverage(self):
app = mod.make_wsgi_app()
self.assertIsInstance(app, Router)
class TestMakeAsgiApp(TestCase):
def test_coverage(self):
app = mod.make_asgi_app()
self.assertIsInstance(app, WsgiToAsgi)