2021-11-30 11:20:26 +01:00
|
|
|
import importlib
|
|
|
|
|
2021-11-29 06:09:18 +01:00
|
|
|
def test_dummy_domain():
|
|
|
|
from . import dummy_domain
|
|
|
|
from .dummy_domain import acl
|
|
|
|
assert acl.public() is True
|
|
|
|
assert isinstance(acl.random(), int)
|
2021-12-13 12:40:40 +01:00
|
|
|
assert acl.private() is False
|
2021-11-30 11:20:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
from .dummy_domain import routers
|
|
|
|
from .dummy_domain.routers.arguments import get
|
|
|
|
from .dummy_domain.routers.abc.alphabet.TEST_uuid import get
|
|
|
|
from .dummy_domain.routers.abc.pinnochio import get
|
|
|
|
from .dummy_domain.routers.config import get
|
|
|
|
async_mod = importlib.import_module('dummy_domain.routers.async', '.')
|
|
|
|
fcts = ['get_abc_alphabet_TEST', 'get_abc_pinnochio', 'get_config', 'get_arguments']
|
|
|
|
for fct in fcts:
|
|
|
|
getattr(async_mod, fct)
|