Add a base organization test case class.
This commit is contained in:
15
mayan/apps/organizations/tests/base.py
Normal file
15
mayan/apps/organizations/tests/base.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from ..models import Organization
|
||||
from ..utils import create_default_organization
|
||||
|
||||
|
||||
class OrganizationTestCase(TestCase):
|
||||
def setUp(self):
|
||||
create_default_organization()
|
||||
|
||||
def tearDown(self):
|
||||
Organization.objects.all().delete()
|
||||
Organization.objects.clear_cache()
|
||||
Reference in New Issue
Block a user