feat: add basic "create order" feature, docs, tests

just the package API docs so far, narrative will come later
This commit is contained in:
Lance Edgar 2025-01-06 17:03:41 -06:00
parent 89265f0240
commit ef07d30a85
86 changed files with 7749 additions and 35 deletions

34
tests/web/test_app.py Normal file
View file

@ -0,0 +1,34 @@
# -*- coding: utf-8; -*-
import os
from unittest import TestCase
from asgiref.wsgi import WsgiToAsgi
from pyramid.router import Router
from sideshow.web import app as mod
here = os.path.dirname(__file__)
example_conf = os.path.join(here, 'example.conf')
class TestMain(TestCase):
def test_coverage(self):
app = mod.main({}, **{'wutta.config': example_conf})
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)