skip test if python-ldap is not installed
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 10 Jul 2013 21:10:48 +0000 (14:10 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Thu, 15 Aug 2013 23:02:24 +0000 (16:02 -0700)
mediagoblin/tests/test_ldap.py

index ec6da467442b277cba7fb42a0150949b0f9120e8..2f9a1372c2020651d5c8f6b8d117f90ffa6cd381 100644 (file)
@@ -23,6 +23,8 @@ from mediagoblin.db.base import Session
 from mediagoblin.tests.tools import get_app
 from mediagoblin.tools import template
 
+pytest.importorskip("ldap")
+
 
 @pytest.fixture()
 def ldap_plugin_app(request):