fix: add "other" menu entry, plus docs/tests
This commit is contained in:
parent
ce54ca6bd6
commit
c2f76f6c97
20 changed files with 546 additions and 15 deletions
32
tests/web/test_app.py
Normal file
32
tests/web/test_app.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
from wuttjamaican.testing import FileTestCase, ConfigTestCase
|
||||
|
||||
from asgiref.wsgi import WsgiToAsgi
|
||||
from pyramid.router import Router
|
||||
|
||||
from sideshow_corepos.web import app as mod
|
||||
|
||||
|
||||
class TestMain(FileTestCase):
|
||||
|
||||
def test_basic(self):
|
||||
global_config = None
|
||||
myconf = self.write_file('my.conf', '')
|
||||
settings = {'wutta.config': myconf}
|
||||
app = mod.main(global_config, **settings)
|
||||
self.assertIsInstance(app, Router)
|
||||
|
||||
|
||||
class TestMakeWsgiApp(ConfigTestCase):
|
||||
|
||||
def test_basic(self):
|
||||
wsgi = mod.make_wsgi_app()
|
||||
self.assertIsInstance(wsgi, Router)
|
||||
|
||||
|
||||
class TestMakeAsgiApp(ConfigTestCase):
|
||||
|
||||
def test_basic(self):
|
||||
asgi = mod.make_asgi_app()
|
||||
self.assertIsInstance(asgi, WsgiToAsgi)
|
Loading…
Add table
Add a link
Reference in a new issue