diff --git a/test/conftest.py b/test/conftest.py index 05c8174..dbd63d7 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -167,11 +167,25 @@ def get_testable_routes(): if method in {"HEAD", "OPTIONS"}: continue - routes.append((method, route.path, route.status_code, route.response_model)) + routes.append( + ( + method, + route.path, + route.status_code, + route.response_model, + route.summary, + ) + ) return routes # with open("endpoints.txt", "w") as f: # for ep in get_testable_routes(): -# f.write(f"[{ep[0]}]{ep[1]}({ep[2]}) -> {ep[2]}: {ep[3]}\n") +# f.write(f"[{ep[0]}]({ep[1]}) -> {ep[2]}: {ep[3]}\n") +# +# +### Docstring formatted output ### +# with open("endpoints.txt", "w") as f: +# for ep in get_testable_routes(): +# f.write(f"- [{ep[0]}]({ep[1]}): []: {ep[4]}\n")