11 lines
318 B
Python
11 lines
318 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 path, route in gen_starlette_routes({
|
||
|
'dummy_domain': dummy_domain }):
|
||
|
|
||
|
assert isinstance(path, str)
|
||
|
assert isinstance(route, Route)
|