[tests] async router renamed to async_router

This commit is contained in:
Maxime Alves LIRMM 2022-02-10 12:30:49 +01:00
parent c3153921f7
commit a69d2b7639
3 changed files with 6 additions and 7 deletions

View File

@ -13,7 +13,6 @@ def test_dummy_domain():
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)
from .dummy_domain.routers.config import get
from .dummy_domain.routers import async_router
from .dummy_domain.routers.async_router import ROUTES, get_abc_alphabet_TEST, get_abc_pinnochio, get_config, get_arguments

View File

@ -24,8 +24,8 @@ def test_get_route(dummy_project, application_domain):
dummy_domain_routes = [
('config','GET'),
('config','GET'),
('async/abc/pinnochio','GET'),
('async/config','GET'),
('async_router/abc/pinnochio','GET'),
('async_router/config','GET'),
# ('abc/pinnochio','GET'),
# ('abc/alphabet','GET'),
]
@ -95,7 +95,7 @@ def test_arguments_route(dummy_project, application_domain):
assert r.status_code == 200
for key, val in arg.items():
assert r.json()[key] == str(val)
path = '/async/arguments'
path = '/async_router/arguments'
r = c.get(path)
assert r.status_code == 400
r = c.get(path, params={'foo':True})