halfapi/tests/test_lib_routes.py
Maxime Alves LIRMM 3959e6d614 [tests] add dummy_domain as a testing dependency (because domains can't
be "not installed" in sys.path)
2020-10-07 15:51:24 +02:00

10 lines
275 B
Python

from starlette.routing import Route
from halfapi.lib.routes import gen_starlette_routes
def test_gen_starlette_routes():
from . import dummy_domain
for route in gen_starlette_routes({
'dummy_domain': dummy_domain }):
assert isinstance(route, Route)