def test_redirect(self):
        request_handler.stub_me()

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

        assert result == '/test_page/'
예제 #2
0
def index(request):
    page, context = handle_request(request)
    context['transaction_key'] = 'requested'
    return request_handler.handle_request(request, lambda x: context, page)
예제 #3
0
def index(request):
    return request_handler.handle_request(request, handle_request, 'adddauerauftrag.html')
예제 #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')
예제 #6
0
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'uebersicht_dauerauftrag.html')
예제 #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')
예제 #9
0
def index(request):
    return request_handler.handle_request(request, _handle_request, 'uebersicht_gemeinsam.html')
예제 #10
0
def index(request):
    return request_handler.handle_request(request, handle_request,
                                          'addgemeinsam.html')
예제 #11
0
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'dashboard.html')
예제 #12
0
def index(request):
    return request_handler.handle_request(request, _handle_request,
                                          'gemeinsamabrechnen.html')