Add BaseAPITestCase class that invalidates the permission and smart settings caches.

Use BaseAPITestCase for all API test cases.
This commit is contained in:
Roberto Rosario
2017-02-16 21:12:55 -04:00
parent 81e090f375
commit 80f64d7fcf
16 changed files with 101 additions and 70 deletions

View File

@@ -2,10 +2,10 @@ from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_api.tests import BaseAPITestCase
class CommonAPITestCase(APITestCase):
class CommonAPITestCase(BaseAPITestCase):
def test_content_type_list_view(self):
response = self.client.get(reverse('rest_api:content-type-list'))
self.assertEqual(response.status_code, 200)