mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Fix imports
This commit is contained in:
parent
726d147c12
commit
ccda651298
4 changed files with 5 additions and 4 deletions
|
@ -7,7 +7,7 @@ import os
|
|||
import shutil
|
||||
import pytest
|
||||
|
||||
from src.ldap_server import LDAPServer
|
||||
from .src.ldap_server import LDAPServer
|
||||
|
||||
|
||||
def patch_init(moulinette):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
try:
|
||||
import slapdtest
|
||||
from . import slapdtest
|
||||
except ImportError:
|
||||
import old_slapdtest as slapdtest
|
||||
from . import old_slapdtest as slapdtest
|
||||
import os
|
||||
from moulinette.authenticators import ldap as m_ldap
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import unittest
|
|||
os.environ["LDAPNOINIT"] = "1"
|
||||
|
||||
import ldap
|
||||
from urllib import quote_plus
|
||||
from urllib.parse import quote_plus
|
||||
|
||||
try:
|
||||
from shutil import which
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -13,6 +13,7 @@ deps =
|
|||
pytest-cov >= 2.7.1, < 3.0
|
||||
pytest-mock >= 1.10.4, < 2.0
|
||||
pytest-env >= 0.6.2, < 1.0
|
||||
python-ldap
|
||||
requests >= 2.22.0, < 3.0
|
||||
requests-mock >= 1.6.0, < 2.0
|
||||
toml >= 0.10, < 0.11
|
||||
|
|
Loading…
Add table
Reference in a new issue