diff options
author | 2013-09-20 15:41:54 +0300 | |
---|---|---|
committer | 2013-09-20 15:41:54 +0300 | |
commit | 2f2b1f7df028fb6848b1116e29e92c9bafc535bb (patch) | |
tree | 68393771c248466d57a601068af98a5f84ea0ba7 | |
parent | s/self.ldapobject/self.ldapobj/g (diff) | |
download | identity.gentoo.org-2f2b1f7df028fb6848b1116e29e92c9bafc535bb.tar.gz identity.gentoo.org-2f2b1f7df028fb6848b1116e29e92c9bafc535bb.tar.bz2 identity.gentoo.org-2f2b1f7df028fb6848b1116e29e92c9bafc535bb.zip |
delete ldapobj after test execution
-rw-r--r-- | okupy/tests/integration/test_index.py | 1 | ||||
-rw-r--r-- | okupy/tests/integration/test_lists.py | 1 | ||||
-rw-r--r-- | okupy/tests/integration/test_login.py | 1 | ||||
-rw-r--r-- | okupy/tests/integration/test_settings.py | 1 | ||||
-rw-r--r-- | okupy/tests/integration/test_signup.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_auth.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_index.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_ldapuser.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_lists.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_login.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_secondary_password.py | 1 | ||||
-rw-r--r-- | okupy/tests/unit/test_signup.py | 1 |
12 files changed, 12 insertions, 0 deletions
diff --git a/okupy/tests/integration/test_index.py b/okupy/tests/integration/test_index.py index 8444186..b39c074 100644 --- a/okupy/tests/integration/test_index.py +++ b/okupy/tests/integration/test_index.py @@ -20,6 +20,7 @@ class IndexIntegrationTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_redirect_to_login_for_anonymous(self): response = self.client.get('/') diff --git a/okupy/tests/integration/test_lists.py b/okupy/tests/integration/test_lists.py index b304b36..0984055 100644 --- a/okupy/tests/integration/test_lists.py +++ b/okupy/tests/integration/test_lists.py @@ -21,6 +21,7 @@ class ListsIntegrationTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_devlist_page_uses_correct_template(self): response = self.client.get('/devlist/') diff --git a/okupy/tests/integration/test_login.py b/okupy/tests/integration/test_login.py index 2cd6f17..a799cb0 100644 --- a/okupy/tests/integration/test_login.py +++ b/okupy/tests/integration/test_login.py @@ -21,6 +21,7 @@ class LoginIntegrationTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_login_page_uses_correct_template(self): response = self.client.get('/login/') diff --git a/okupy/tests/integration/test_settings.py b/okupy/tests/integration/test_settings.py index 12931ef..531bb40 100644 --- a/okupy/tests/integration/test_settings.py +++ b/okupy/tests/integration/test_settings.py @@ -20,6 +20,7 @@ class SettingsIntegrationTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_profile_settings_page_uses_correct_template(self): response = self.client.post('/login/', vars.LOGIN_ALICE) diff --git a/okupy/tests/integration/test_signup.py b/okupy/tests/integration/test_signup.py index e848a0b..240ef98 100644 --- a/okupy/tests/integration/test_signup.py +++ b/okupy/tests/integration/test_signup.py @@ -20,6 +20,7 @@ class SignupIntegrationTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_signup_page_uses_correct_template(self): response = self.client.get('/signup/') diff --git a/okupy/tests/unit/test_auth.py b/okupy/tests/unit/test_auth.py index a5b005c..4618bba 100644 --- a/okupy/tests/unit/test_auth.py +++ b/okupy/tests/unit/test_auth.py @@ -25,6 +25,7 @@ class AuthSSLUnitTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_valid_certificate_authenticates_alice(self): request = set_request(uri='/login') diff --git a/okupy/tests/unit/test_index.py b/okupy/tests/unit/test_index.py index e85df7e..352a7ef 100644 --- a/okupy/tests/unit/test_index.py +++ b/okupy/tests/unit/test_index.py @@ -22,6 +22,7 @@ class IndexUnitTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_index_url_resolves_to_index_view(self): found = resolve('/') diff --git a/okupy/tests/unit/test_ldapuser.py b/okupy/tests/unit/test_ldapuser.py index 82ba5c4..7a5665f 100644 --- a/okupy/tests/unit/test_ldapuser.py +++ b/okupy/tests/unit/test_ldapuser.py @@ -29,6 +29,7 @@ class LDAPUserUnitTests(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_return_unicode_username(self): alice = LDAPUser.objects.get(username='alice') diff --git a/okupy/tests/unit/test_lists.py b/okupy/tests/unit/test_lists.py index ca0f74f..783792b 100644 --- a/okupy/tests/unit/test_lists.py +++ b/okupy/tests/unit/test_lists.py @@ -21,6 +21,7 @@ class ListsUnitTests(OkupyTestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_devlist_url_resolves_to_lists_view(self): found = resolve('/devlist/') diff --git a/okupy/tests/unit/test_login.py b/okupy/tests/unit/test_login.py index c2acaa2..ad4905a 100644 --- a/okupy/tests/unit/test_login.py +++ b/okupy/tests/unit/test_login.py @@ -31,6 +31,7 @@ class LoginUnitTests(OkupyTestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_incorrect_user_raises_login_failed(self): request = set_request(uri='/login', post=vars.LOGIN_WRONG, diff --git a/okupy/tests/unit/test_secondary_password.py b/okupy/tests/unit/test_secondary_password.py index b9fbc38..73b574b 100644 --- a/okupy/tests/unit/test_secondary_password.py +++ b/okupy/tests/unit/test_secondary_password.py @@ -26,6 +26,7 @@ class SecondaryPassword(TestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_secondary_password_gets_added_in_session(self): request = set_request(uri='/', user=vars.USER_ALICE) diff --git a/okupy/tests/unit/test_signup.py b/okupy/tests/unit/test_signup.py index ac87e05..c0ca1ea 100644 --- a/okupy/tests/unit/test_signup.py +++ b/okupy/tests/unit/test_signup.py @@ -27,6 +27,7 @@ class SignupUnitTests(OkupyTestCase): def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_username_already_exists_in_ldap(self): _form = vars.SIGNUP_TESTUSER.copy() |