Add test view mixin to check for responses content types. Relates to GitLab issue #311.

This commit is contained in:
Roberto Rosario
2016-10-21 03:41:15 -04:00
parent 91144a749f
commit a44c76165b
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -2,10 +2,10 @@ from __future__ import unicode_literals
from django.test import TestCase
from .mixins import OpenFileCheckMixin, TempfileCheckMixin
from .mixins import ContentTypeCheckMixin, OpenFileCheckMixin, TempfileCheckMixin
class BaseTestCase(OpenFileCheckMixin, TempfileCheckMixin, TestCase):
class BaseTestCase(ContentTypeCheckMixin, OpenFileCheckMixin, TempfileCheckMixin, TestCase):
"""
This is the most basic test case class any test in the project should use.
"""