summaryrefslogtreecommitdiff
path: root/tests/pkgs/fixtureapp/__init__.py
blob: ffc8adb4a7ea9feb32527cb5afacf47be0d1c82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def includeme(config):
    config.add_view('.views.fixture_view')
    config.add_view('.views.exception_view', context=RuntimeError)
    config.add_view('.views.protected_view', name='protected.html')
    config.add_view('.views.erroneous_view', name='error.html')
    config.add_view(
        '.views.fixture_view',
        name='dummyskin.html',
        request_type='.views.IDummy',
    )
    from .models import fixture, IFixture

    config.registry.registerUtility(fixture, IFixture)
    config.add_view('.views.fixture_view', name='another.html')