diff --git a/setup.py b/setup.py index e4c64cd4..f6dff5cc 100755 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ setup(name='Moulinette', 'pytz', 'pyyaml', 'toml', + 'python-ldap', ], tests_require=[ 'pytest', diff --git a/test/conftest.py b/test/conftest.py index c26bd99d..976d0259 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,6 +1,5 @@ """Pytest fixtures for testing.""" -import ldif import toml import yaml import json @@ -163,7 +162,8 @@ def test_toml(tmp_path): @pytest.fixture def test_ldif(tmp_path): test_file = tmp_path / "test.txt" - writer = ldif.LDIFWriter(open(str(test_file), 'wb')) + from ldif import LDIFWriter + writer = LDIFWriter(open(str(test_file), 'wb')) writer.unparse('mail=alice@example.com', { 'cn': ['Alice Alison'],