mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 23:37:18 +00:00
13 lines
388 B
Python
13 lines
388 B
Python
from aiohttp import web
|
|
|
|
from ahriman.core.configuration import Configuration
|
|
from ahriman.web.routes import setup_routes
|
|
|
|
|
|
def test_setup_routes(application: web.Application, configuration: Configuration) -> None:
|
|
"""
|
|
must generate non empty list of routes
|
|
"""
|
|
setup_routes(application, configuration.getpath("web", "static_path"))
|
|
assert application.router.routes()
|