Skip to content
Snippets Groups Projects
Commit 5af18926 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Refactor to use the base view test class

parent 9e10157b
No related branches found
No related tags found
No related merge requests found
from django.test import TestCase, RequestFactory
from django.urls import reverse
from opentech.apply.funds.tests.factories import ApplicationSubmissionFactory
from opentech.apply.users.tests.factories import UserFactory, StaffFactory
from opentech.apply.utils.tests import BaseViewTestCase
......
from django.test import TestCase, RequestFactory
from django.urls import reverse
from opentech.apply.funds.tests.factories import ApplicationSubmissionFactory
......@@ -96,9 +95,10 @@ class UserReviewFormTestCase(BaseViewTestCase):
self.assertEqual(response.status_code, 403)
class ReviewDetailTestCase(BaseTestCase):
class ReviewDetailTestCase(BaseViewTestCase):
user_factory = StaffFactory
url_name = 'funds:submissions:reviews:{}'
base_view_name = 'review'
def get_kwargs(self, instance):
return {'pk': instance.id, 'submission_pk': instance.submission.id}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment