12 lines
278 B
Python
12 lines
278 B
Python
from pathlib import Path
|
|
import sys
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
|
|
from app.main import app
|
|
|
|
|
|
def test_next_item_route_is_registered():
|
|
paths = {route.path for route in app.routes}
|
|
assert "/api/v1/session/{session_id}/next_item" in paths
|