halfapi/tests/test_lib_routes.py

10 lines
277 B
Python

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