From 3ebadf763bca96b0bea2956dfd89eb5aa4f4bc39 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 30 May 2016 19:18:23 -0400 Subject: [PATCH] Add clean up method to OrganizationModelTestCase --- mayan/apps/organizations/tests/test_models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mayan/apps/organizations/tests/test_models.py b/mayan/apps/organizations/tests/test_models.py index 56438d6bd5..817cdab833 100644 --- a/mayan/apps/organizations/tests/test_models.py +++ b/mayan/apps/organizations/tests/test_models.py @@ -7,12 +7,16 @@ from ..models import Organization from .literals import TEST_ORGANIZATION_LABEL, TEST_ORGANIZATION_EDITED_LABEL -class OrganizationTestCase(TestCase): +class OrganizationModelTestCase(TestCase): def setUp(self): self.organization = Organization.objects.create( label=TEST_ORGANIZATION_LABEL ) + def tearDown(self): + self.organization.delete() + Organization.objects.clear_cache() + def test_basic(self): queryset = Organization.objects.get_for_now()