From b1ac6795922bded7e8dbe8dcf769e57b410a4915 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 10 Jul 2013 14:10:48 -0700 Subject: [PATCH] skip test if python-ldap is not installed --- mediagoblin/tests/test_ldap.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.25.1