aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'okupy/tests/integration/test_lists.py')
-rw-r--r--okupy/tests/integration/test_lists.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/okupy/tests/integration/test_lists.py b/okupy/tests/integration/test_lists.py
index a9ad99e..e6360a9 100644
--- a/okupy/tests/integration/test_lists.py
+++ b/okupy/tests/integration/test_lists.py
@@ -14,13 +14,18 @@ class ListsIntegrationTests(TestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.client = Client()
self.mockldap.start()
- self.ldapobject = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
+ self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
def tearDown(self):
self.mockldap.stop()
+ del self.ldapobj
def test_devlist_page_uses_correct_template(self):
response = self.client.get('/devlist/')