Beispiel #1
0
def testAcumuladores():
    #app.logger.info("TESTEAR ACUMULADORES")
    if request.method == 'GET':
        #app.logger.info("\tGET")
        return render_template("TestAcumuladores.html")
    else:
        #app.logger.info("\tPOST")
        test = TestAcumuladores()
        if validarDatosAcumuladores(request, test):
            #app.logger.info("\tDATOS VALIDOS")
            test.testear()
            #app.logger.info(test)
            test.save()
        return render_template("TestAcumuladores.html", test=test)