From ead86806d489bc14fbdfc4ff63f3b103b405bd55 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 30 May 2016 06:18:26 -0400 Subject: [PATCH] Add explicit organization deletion to the common generic test. --- mayan/apps/common/tests/test_views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mayan/apps/common/tests/test_views.py b/mayan/apps/common/tests/test_views.py index d2530fb79e..4e2e85f929 100644 --- a/mayan/apps/common/tests/test_views.py +++ b/mayan/apps/common/tests/test_views.py @@ -7,6 +7,7 @@ from django.http import HttpResponse from django.template import Context, Template from django.test import TestCase +from organizations.models import Organization from organizations.utils import create_default_organization from permissions import Permission from permissions.models import Role @@ -46,6 +47,8 @@ class GenericViewTestCase(TestCase): self.client.logout() if self.has_test_view: urlpatterns.pop(0) + Organization.objects.all().delete() + Organization.objects.clear_cache() def add_test_view(self, test_object): from mayan.urls import urlpatterns