From: Rodney Ewing Date: Wed, 10 Jul 2013 21:10:48 +0000 (-0700) Subject: skip test if python-ldap is not installed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b1ac6795922bded7e8dbe8dcf769e57b410a4915;p=mediagoblin.git skip test if python-ldap is not installed --- diff --git a/mediagoblin/tests/test_ldap.py b/mediagoblin/tests/test_ldap.py index ec6da467..2f9a1372 100644 --- a/mediagoblin/tests/test_ldap.py +++ b/mediagoblin/tests/test_ldap.py @@ -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):