tailbone/tests/views/test_people.py
Lance Edgar dd176a5e9e feat: add first wutta-based master, for PersonView
still opt-in-only at this point, the traditional tailbone-native
master is used by default.

new wutta master is not feature complete yet.  but at least things
seem to render and form posts work okay..

when enabled, this uses a "completely" wutta-based stack for the view,
grid and forms.  but the underlying DB is of course rattail, and the
templates are still traditional/tailbone.
2024-08-15 16:05:53 -05:00

18 lines
465 B
Python

# -*- coding: utf-8; -*-
from tailbone.views import users as mod
from tests.util import WebTestCase
class TestPersonView(WebTestCase):
def make_view(self):
return mod.PersonView(self.request)
def test_includeme(self):
self.pyramid_config.include('tailbone.views.people')
def test_includeme_wutta(self):
self.config.setdefault('tailbone.use_wutta_views', 'true')
self.pyramid_config.include('tailbone.views.people')