tests: fix test per changes in wuttaweb
This commit is contained in:
parent
24a62b5e83
commit
36ec626c7f
1 changed files with 4 additions and 7 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue