14 lines
642 B
Python
14 lines
642 B
Python
from app.main import app
|
|||
|
|
|
||
|
|
|
||
|
|
def test_promotion_material_routes_are_registered() -> None:
|
||
|
|
paths = set(app.openapi()["paths"])
|
||
|
|
|
||
|
|
assert "/api/v1/fund-promotion-materials" in paths
|
||
|
|
assert "/api/v1/fund-promotion-materials/{task_no}/inputs" in paths
|
||
|
|
assert "/api/v1/fund-promotion-materials/{task_no}/attachments" in paths
|
||
|
|
assert "/api/v1/fund-promotion-materials/{task_no}/generations" in paths
|
||
|
|
assert "/api/v1/fund-promotion-materials/{task_no}/compliance-checks" in paths
|
||
|
|
assert "/api/v1/fund-promotion-materials/{task_no}/reviews" in paths
|
||
|
|
assert "/api/v1/fund-promotion-materials/{task_no}/deliveries" in paths
|