From c2680973064279e26a0383b2f3157a4a05343a1a Mon Sep 17 00:00:00 2001 From: luxferre Date: Thu, 11 Jun 2026 09:57:34 +0100 Subject: [PATCH] feat: helper for generating module docstrings --- test/conftest.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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")