halfapi/tests/test_lib_routes.py

11 lines
318 B
Python
Raw Normal View History

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)