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():
|
|
|
|
from . import dummy_domain
|
2020-10-07 15:51:24 +02:00
|
|
|
for route in gen_starlette_routes({
|
2020-10-07 09:52:23 +02:00
|
|
|
'dummy_domain': dummy_domain }):
|
|
|
|
|
|
|
|
assert isinstance(route, Route)
|