Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_integrante_form_valid(self):
- object = Habilidad.objects.get(id = 2)
- form = IntegranteForms(data={
- 'nombre':"Nombre",
- 'apellidos':"Apellido Apellido",
- 'rol':"Programador",
- 'salario':3000,
- 'correo':"asd@email.gmail",
- 'grado_dedicacion':0.6,
- 'habilidades': [object.pk]
- })
- self.assertTrue(form.is_valid())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement