From 6e28ee4a7411c749a33d8e0f209863d02755c997 Mon Sep 17 00:00:00 2001 From: Candela Date: Wed, 5 Jun 2024 13:24:57 -0300 Subject: [PATCH] Actualizo test de integracion --- app/tests_integration.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/tests_integration.py b/app/tests_integration.py index eb372071..09295171 100644 --- a/app/tests_integration.py +++ b/app/tests_integration.py @@ -137,20 +137,20 @@ def test_edit_user_with_valid_data_test(self): data={ "id": client.id, "name": "Juan Sebastian Veron", - "phone": "221456789", + "phone": "54221456789", "email": "brujita71@vetsoft.com", "city": "Berisso", }, ) # redirect after post - self.assertEqual(response.status_code, 200) + self.assertEqual(response.status_code, 302) editedClient = Client.objects.get(pk=client.id) self.assertEqual(editedClient.name, "Juan Sebastian Veron") self.assertEqual(editedClient.email, "brujita71@vetsoft.com") - self.assertEqual(editedClient.phone, "221456789") + self.assertEqual(editedClient.phone, "54221456789") self.assertEqual(editedClient.city, "Berisso") def test_edit_user_with_invalid_data_test_city(self): @@ -161,7 +161,7 @@ def test_edit_user_with_invalid_data_test_city(self): client = Client.objects.create( name="Guido Carrillo", city="La Plata", - phone="221456789", + phone="54221456789", email="brujita75@vetsoft.com", ) @@ -171,7 +171,7 @@ def test_edit_user_with_invalid_data_test_city(self): data={ "id": client.id, "name": "Juan Sebastian Veron", - "phone": "221456789", + "phone": "54221456789", "city": "Rosario", "email": "brujita75@vetsoft.com", }, @@ -189,8 +189,8 @@ def test_validation_invalid_name_client(self): reverse("clients_form"), data={ "name": "Juan Sebastian Veron 11", - "phone": "221555232", - "address": "13 y 44", + "phone": "54221555232", + "city": "La Plata", "email": "brujita75@hotmail.com", }, ) @@ -203,7 +203,7 @@ def test_user_cant_edit_client_with_empty_name(self): """ client=Client.objects.create( name="Juan Sebastian Veron", - phone="221555232", + phone="54221555232", city="La Plata", email="brujita75@hotmail.com", ) @@ -227,7 +227,7 @@ def test_user_cant_edit_client_with_incorrect_name(self): """ client=Client.objects.create( name="Juan Sebastian Veron", - phone="221555232", + phone="54221555232", city="La Plata", email="brujita75@hotmail.com", )