Fix imports

This commit is contained in:
Augustin Trancart 2020-04-17 18:28:48 +02:00
parent 726d147c12
commit ccda651298
4 changed files with 5 additions and 4 deletions

View file

@ -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):

View file

@ -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

View file

@ -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

View file

@ -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