aboutsummaryrefslogtreecommitdiff
path: root/okupy
diff options
context:
space:
mode:
authorPavlos Ratis <dastergon@gentoo.org>2013-09-20 16:11:23 +0300
committerPavlos Ratis <dastergon@gentoo.org>2013-09-20 16:11:23 +0300
commitfba5fabffc64d4f97f960bbf9b4f53638c32ef2b (patch)
treef74536811c9ab6e44f241e9da6372a5c18df839e /okupy
parentdelete ldapobj after test execution (diff)
downloadidentity.gentoo.org-fba5fabffc64d4f97f960bbf9b4f53638c32ef2b.tar.gz
identity.gentoo.org-fba5fabffc64d4f97f960bbf9b4f53638c32ef2b.tar.bz2
identity.gentoo.org-fba5fabffc64d4f97f960bbf9b4f53638c32ef2b.zip
add tearDownClass
Diffstat (limited to 'okupy')
-rw-r--r--okupy/tests/integration/test_index.py4
-rw-r--r--okupy/tests/integration/test_lists.py4
-rw-r--r--okupy/tests/integration/test_login.py4
-rw-r--r--okupy/tests/integration/test_settings.py4
-rw-r--r--okupy/tests/integration/test_signup.py4
-rw-r--r--okupy/tests/unit/test_auth.py4
-rw-r--r--okupy/tests/unit/test_index.py4
-rw-r--r--okupy/tests/unit/test_ldapuser.py4
-rw-r--r--okupy/tests/unit/test_lists.py4
-rw-r--r--okupy/tests/unit/test_login.py4
-rw-r--r--okupy/tests/unit/test_secondary_password.py4
-rw-r--r--okupy/tests/unit/test_signup.py4
12 files changed, 48 insertions, 0 deletions
diff --git a/okupy/tests/integration/test_index.py b/okupy/tests/integration/test_index.py
index b39c074..cec706d 100644
--- a/okupy/tests/integration/test_index.py
+++ b/okupy/tests/integration/test_index.py
@@ -13,6 +13,10 @@ class IndexIntegrationTests(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()
diff --git a/okupy/tests/integration/test_lists.py b/okupy/tests/integration/test_lists.py
index 0984055..e6360a9 100644
--- a/okupy/tests/integration/test_lists.py
+++ b/okupy/tests/integration/test_lists.py
@@ -14,6 +14,10 @@ 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()
diff --git a/okupy/tests/integration/test_login.py b/okupy/tests/integration/test_login.py
index a799cb0..378c2e9 100644
--- a/okupy/tests/integration/test_login.py
+++ b/okupy/tests/integration/test_login.py
@@ -23,6 +23,10 @@ class LoginIntegrationTests(TestCase):
self.mockldap.stop()
del self.ldapobj
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def test_login_page_uses_correct_template(self):
response = self.client.get('/login/')
self.assertTemplateUsed(response, 'base.html')
diff --git a/okupy/tests/integration/test_settings.py b/okupy/tests/integration/test_settings.py
index 531bb40..94ef620 100644
--- a/okupy/tests/integration/test_settings.py
+++ b/okupy/tests/integration/test_settings.py
@@ -13,6 +13,10 @@ class SettingsIntegrationTests(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()
diff --git a/okupy/tests/integration/test_signup.py b/okupy/tests/integration/test_signup.py
index 240ef98..64e8d50 100644
--- a/okupy/tests/integration/test_signup.py
+++ b/okupy/tests/integration/test_signup.py
@@ -13,6 +13,10 @@ class SignupIntegrationTests(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()
diff --git a/okupy/tests/unit/test_auth.py b/okupy/tests/unit/test_auth.py
index 4618bba..586987b 100644
--- a/okupy/tests/unit/test_auth.py
+++ b/okupy/tests/unit/test_auth.py
@@ -19,6 +19,10 @@ class AuthSSLUnitTests(TestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
diff --git a/okupy/tests/unit/test_index.py b/okupy/tests/unit/test_index.py
index 352a7ef..9f71230 100644
--- a/okupy/tests/unit/test_index.py
+++ b/okupy/tests/unit/test_index.py
@@ -16,6 +16,10 @@ class IndexUnitTests(TestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
diff --git a/okupy/tests/unit/test_ldapuser.py b/okupy/tests/unit/test_ldapuser.py
index 7a5665f..4ca821f 100644
--- a/okupy/tests/unit/test_ldapuser.py
+++ b/okupy/tests/unit/test_ldapuser.py
@@ -23,6 +23,10 @@ class LDAPUserUnitTests(TestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
diff --git a/okupy/tests/unit/test_lists.py b/okupy/tests/unit/test_lists.py
index 783792b..8cdcb6f 100644
--- a/okupy/tests/unit/test_lists.py
+++ b/okupy/tests/unit/test_lists.py
@@ -15,6 +15,10 @@ class ListsUnitTests(OkupyTestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
diff --git a/okupy/tests/unit/test_login.py b/okupy/tests/unit/test_login.py
index ad4905a..f781741 100644
--- a/okupy/tests/unit/test_login.py
+++ b/okupy/tests/unit/test_login.py
@@ -25,6 +25,10 @@ class LoginUnitTests(OkupyTestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
diff --git a/okupy/tests/unit/test_secondary_password.py b/okupy/tests/unit/test_secondary_password.py
index 73b574b..62c9890 100644
--- a/okupy/tests/unit/test_secondary_password.py
+++ b/okupy/tests/unit/test_secondary_password.py
@@ -20,6 +20,10 @@ class SecondaryPassword(TestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]
diff --git a/okupy/tests/unit/test_signup.py b/okupy/tests/unit/test_signup.py
index c0ca1ea..dc43c74 100644
--- a/okupy/tests/unit/test_signup.py
+++ b/okupy/tests/unit/test_signup.py
@@ -21,6 +21,10 @@ class SignupUnitTests(OkupyTestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]