13 lines
479 B
Python
13 lines
479 B
Python
def test_router_includes():
|
|
"""Test that all routers are included in the app."""
|
|
from app.main import app
|
|
|
|
routes = [route.path for route in app.routes]
|
|
|
|
# Check that router prefixes are present
|
|
assert any("/users" in route for route in routes)
|
|
assert any("/cards" in route for route in routes)
|
|
assert any("/groups" in route for route in routes)
|
|
assert any("/aa" in route for route in routes)
|
|
assert any("/token" in route for route in routes)
|