install_requires: python-ldap

This commit is contained in:
Kay0u 2019-12-22 18:16:54 +08:00
parent 6edc021f83
commit 6d255bd839
No known key found for this signature in database
GPG key ID: 7FF262C033518333
2 changed files with 3 additions and 2 deletions

View file

@ -34,6 +34,7 @@ setup(name='Moulinette',
'pytz',
'pyyaml',
'toml',
'python-ldap',
],
tests_require=[
'pytest',

View file

@ -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'],