diff --git a/app/tests_unit.py b/app/tests_unit.py index 5192308e..e3448ce7 100644 --- a/app/tests_unit.py +++ b/app/tests_unit.py @@ -259,6 +259,16 @@ def test_invalid_email_not_ending_with_com(self): self.assertIn("El email debe tener un formato vĂ¡lido y ser de la forma nombre@vesoft.com", errors.values()) + def test_phone_number_without_54(self): + client_data = { + "name": "Juan Sebastian Veron", + "phone": "2245556789", + "city": "La Plata", + "email": "brujita75@vetsoft.com", + } + errors = validate_client(client_data) + self.assertIn("phone", errors) + self.assertEqual(errors["phone"], "El telefono debe comenzar con 54") class MedicineModelTest(TestCase): """