Skip to content

Commit

Permalink
Add PermissionStatusMixin to SurveyCSVViewTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Oct 2, 2016
1 parent 021bd93 commit 8946bdc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion feder/questionaries/tests/test_questionaries.py
Expand Up @@ -81,7 +81,11 @@ def test_institutions(self):
self.assertContains(response, self.questionary.get_absolute_url())


class SurveyCSVView(ObjectMixin, TestCase):
class SurveyCSVViewTestCase(ObjectMixin, PermissionStatusMixin, TestCase):
permission = []
status_anonymous = 200
status_no_permission = 200

def get_url(self):
return reverse('questionaries:export',
kwargs={'pk': self.questionary.pk})
Expand Down

0 comments on commit 8946bdc

Please sign in to comment.