Add test view mixin to check for responses content types. Relates to GitLab issue #311.
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user