# HG changeset patch # User Mads Kiilerich # Date 2015-01-06 00:54:36 # Node ID 7a9a231d365dd3ad4ec0c98c10bc5e6b76b03fc3 # Parent 0f96804480c38cf363be3cf14344a666cc3cc1f2 tests: fix logic for disabling/enabling ldap tests diff --git a/kallithea/tests/functional/test_admin_auth_settings.py b/kallithea/tests/functional/test_admin_auth_settings.py --- a/kallithea/tests/functional/test_admin_auth_settings.py +++ b/kallithea/tests/functional/test_admin_auth_settings.py @@ -23,7 +23,7 @@ class TestAuthSettingsController(TestCon def test_ldap_save_settings(self): self.log_user() - if ldap_lib_installed: + if not ldap_lib_installed: raise SkipTest('skipping due to missing ldap lib') params = self._enable_plugins('kallithea.lib.auth_modules.auth_internal,kallithea.lib.auth_modules.auth_ldap') @@ -53,7 +53,7 @@ class TestAuthSettingsController(TestCon def test_ldap_error_form_wrong_port_number(self): self.log_user() - if ldap_lib_installed: + if not ldap_lib_installed: raise SkipTest('skipping due to missing ldap lib') params = self._enable_plugins('kallithea.lib.auth_modules.auth_internal,kallithea.lib.auth_modules.auth_ldap') @@ -80,7 +80,7 @@ class TestAuthSettingsController(TestCon def test_ldap_error_form(self): self.log_user() - if ldap_lib_installed: + if not ldap_lib_installed: raise SkipTest('skipping due to missing ldap lib') params = self._enable_plugins('kallithea.lib.auth_modules.auth_internal,kallithea.lib.auth_modules.auth_ldap')