mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
install_requires: python-ldap
This commit is contained in:
parent
6edc021f83
commit
6d255bd839
2 changed files with 3 additions and 2 deletions
1
setup.py
1
setup.py
|
@ -34,6 +34,7 @@ setup(name='Moulinette',
|
|||
'pytz',
|
||||
'pyyaml',
|
||||
'toml',
|
||||
'python-ldap',
|
||||
],
|
||||
tests_require=[
|
||||
'pytest',
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue