halfapi/tests/test_lib_routes.py

10 lines
277 B
Python
Raw Permalink Normal View History

from starlette.routing import Route
from halfapi.lib.routes import gen_starlette_routes
def test_gen_starlette_routes():
2021-05-28 22:30:48 +02:00
from .dummy_domain import routers
for route in gen_starlette_routes({
2021-05-28 22:30:48 +02:00
'dummy_domain': routers }):
assert isinstance(route, Route)