Claudio Piña
PreguntaTengo el problema del status code:
AssertionError: False is not true : HTTP Status 301, 302, 303, 305, 307 expected but got 200
Main
if login_form.validate_on_submit(): username = login_form.username.data session['username']=username flash('Nombre ingresado exitosamente!') return redirect(url_for('index'))
test
def test_hello_post(self): form_fake = { 'username':'fake', 'password':'passfake' } response = self.client.post(url_for('hello', data=form_fake)) #import pdb; pdb.set_trace() self.assertRedirects(response, url_for('index'))
aiudaaa xD