forked from frlp-utn-ingsoft/vetsoft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a6adaf
commit 6e28ee4
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": "[email protected]", | ||
"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, "[email protected]") | ||
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="[email protected]", | ||
) | ||
|
||
|
@@ -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": "[email protected]", | ||
}, | ||
|
@@ -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": "[email protected]", | ||
}, | ||
) | ||
|
@@ -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="[email protected]", | ||
) | ||
|
@@ -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="[email protected]", | ||
) | ||
|