|
|
@ -8,6 +8,7 @@ __author__ = "prakash" |
|
|
|
__date__ = "12/03/25" |
|
|
|
|
|
|
|
from fastapi.testclient import TestClient |
|
|
|
|
|
|
|
from docs_src.custom_api_router.tutorial001 import app |
|
|
|
|
|
|
|
client = TestClient(app) |
|
|
@ -31,4 +32,4 @@ def test_route_name(): |
|
|
|
assert response.status_code == 200 |
|
|
|
response_json = response.json() |
|
|
|
assert response_json["route_name"] == "Global.Model.Item.create-item" |
|
|
|
assert response_json["router_class"] == "AppRouter" |
|
|
|
assert response_json["router_class"] == "AppRouter" |
|
|
|