tests: fix test per changes in wuttaweb

This commit is contained in:
Lance Edgar 2025-07-06 12:24:12 -05:00
parent 24a62b5e83
commit 36ec626c7f

View file

@ -1,22 +1,19 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
import os
from unittest import TestCase from unittest import TestCase
from asgiref.wsgi import WsgiToAsgi from asgiref.wsgi import WsgiToAsgi
from pyramid.router import Router from pyramid.router import Router
from wuttjamaican.testing import DataTestCase
from sideshow.web import app as mod from sideshow.web import app as mod
here = os.path.dirname(__file__) class TestMain(DataTestCase):
example_conf = os.path.join(here, 'example.conf')
class TestMain(TestCase):
def test_coverage(self): def test_coverage(self):
app = mod.main({}, **{'wutta.config': example_conf}) app = mod.main({}, **{'wutta_config': self.config})
self.assertIsInstance(app, Router) self.assertIsInstance(app, Router)