Skip to content

Commit

Permalink
Create SmartminTextMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
dodobas committed May 3, 2018
1 parent 56c036a commit ffb6389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smartmin/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from six.moves.urllib.parse import urlparse


class SmartminTest(TestCase):
class SmartminTestMixin(object):

def fetch_protected(self, url, user, post_data=None, failOnFormValidation=True):
"""
Expand Down Expand Up @@ -77,6 +77,10 @@ def assertNoFormErrors(self, response, post_data=None):
self.fail("Create failed with form errors: %s, Posted: %s" % (",".join(errors), post_data))


class SmartminTest(SmartminTestMixin, TestCase):
pass


class _CRUDLTest(SmartminTest):
"""
Base class for standard CRUDL test cases
Expand Down

0 comments on commit ffb6389

Please sign in to comment.