def test_redirect(self):
        request_handler.stub_me()

        result = request_handler.handle_request(
            PostRequest({'redirect': 'test_page'}), lambda x: {}, 'nothing')

        assert result == '/test_page/'
Exemplo n.º 2
0
def index(request):
    page, context = handle_request(request)
    context['transaction_key'] = 'requested'
    return request_handler.handle_request(request, lambda x: context, page)
Exemplo n.º 3
0
def index(request):
    return request_handler.handle_request(request, handle_request, 'adddauerauftrag.html')
Exemplo n.º 4
0
def index(request):
    return request_handler.handle_request(request, handle_request,
                                          'addausgabe.html')
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'uebersicht_jahr.html')
Exemplo n.º 6
0
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'uebersicht_dauerauftrag.html')
Exemplo n.º 7
0
def index(request):
    return request_handler.handle_request(request, handle_request,
                                          'addeinnahme.html')
def abrechnen(request):
    return request_handler.handle_request(request, _abrechnen,
                                          'present_abrechnung.html')
Exemplo n.º 9
0
def index(request):
    return request_handler.handle_request(request, _handle_request, 'uebersicht_gemeinsam.html')
Exemplo n.º 10
0
def index(request):
    return request_handler.handle_request(request, handle_request,
                                          'addgemeinsam.html')
Exemplo n.º 11
0
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'dashboard.html')
Exemplo n.º 12
0
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'gemeinsamabrechnen.html')