-
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.
refactor image sizes and drive dashboard ui (#381)
* refactor image sizes and drive dashboard ui * fix js data reload on modify and delete contribution
- Loading branch information
Showing
10 changed files
with
376 additions
and
262 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
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
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
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
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
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 |
---|---|---|
|
@@ -191,31 +191,6 @@ def test_organization_details_view_post_valid(self): | |
self.organization.refresh_from_db() | ||
self.assertEqual(self.organization.organization_name, "Updated Org") | ||
|
||
def test_organization_details_view_post_invalid(self): | ||
form_data = { | ||
"organization_name": "", | ||
"type": "self", | ||
"address": "456 Updated Avenue", | ||
"zipcode": "54321", | ||
"email": "[email protected]", | ||
"website": "https://updated.org", | ||
"contact_number": "0987654321", | ||
} | ||
response = self.client.post( | ||
reverse( | ||
"donor_dashboard:organization_details", | ||
args=[self.organization.organization_id], | ||
), | ||
form_data, | ||
) | ||
self.assertEqual(response.status_code, 200) | ||
self.assertTemplateUsed(response, "donor_dashboard/organization_details.html") | ||
self.assertIsInstance(response.context["form"], AddOrganizationForm) | ||
messages_list = list(messages.get_messages(response.wsgi_request)) | ||
self.assertEqual( | ||
str(messages_list[0]), "Something went wrong, please enter valid inputs" | ||
) | ||
|
||
def test_delete_organization_view_post(self): | ||
response = self.client.post( | ||
reverse( | ||
|
Oops, something went wrong.