Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed May 14, 2024
1 parent ac2913c commit e74b84d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions georiviere/contribution/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,9 @@ def test_detail_custom_contribution_admin_view(self):
args=[self.contrib_with_attachments.pk])
response = self.client.get(url_detail)
self.assertEqual(response.status_code, 200)

def test_add_custom_contribution_admin_view(self):
""" Unable to add custom type field directly by admin """
url_add = reverse('admin:contribution_customcontribution_add')
response = self.client.get(url_add)
self.assertEqual(response.status_code, 200)

0 comments on commit e74b84d

Please sign in to comment.