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',
|
'pytz',
|
||||||
'pyyaml',
|
'pyyaml',
|
||||||
'toml',
|
'toml',
|
||||||
|
'python-ldap',
|
||||||
],
|
],
|
||||||
tests_require=[
|
tests_require=[
|
||||||
'pytest',
|
'pytest',
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""Pytest fixtures for testing."""
|
"""Pytest fixtures for testing."""
|
||||||
|
|
||||||
import ldif
|
|
||||||
import toml
|
import toml
|
||||||
import yaml
|
import yaml
|
||||||
import json
|
import json
|
||||||
|
@ -163,7 +162,8 @@ def test_toml(tmp_path):
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def test_ldif(tmp_path):
|
def test_ldif(tmp_path):
|
||||||
test_file = tmp_path / "test.txt"
|
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', {
|
writer.unparse('mail=alice@example.com', {
|
||||||
'cn': ['Alice Alison'],
|
'cn': ['Alice Alison'],
|
||||||
|
|
Loading…
Reference in a new issue