From 6d255bd8396b46369ba4e02e48c63cb676ccc57d Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sun, 22 Dec 2019 18:16:54 +0800 Subject: [PATCH] install_requires: python-ldap --- setup.py | 1 + test/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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'],