2020-10-07 09:52:23 +02:00
|
|
|
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
|
2020-10-07 15:51:24 +02:00
|
|
|
for route in gen_starlette_routes({
|
2021-05-28 22:30:48 +02:00
|
|
|
'dummy_domain': routers }):
|
2020-10-07 09:52:23 +02:00
|
|
|
|
|
|
|
assert isinstance(route, Route)
|