Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(docs): read only the first column of the router_settings reference table

yassinb5ad17e8482f
diff --git a/tests/documentation_tests/test_router_settings.py b/tests/documentation_tests/test_router_settings.py
index 75032f80dfa..7e3d0c07459 100644
--- a/tests/documentation_tests/test_router_settings.py
+++ b/tests/documentation_tests/test_router_settings.py
@@ -51,9 +51,7 @@ try:
if general_settings_section:
# Extract the table rows, which contain the documented keys
table_content = general_settings_section.group(1)
- doc_key_pattern = re.compile(
- r"\|\s*([^\|]+?)\s*\|"
- ) # Capture the key from each row of the table
+ doc_key_pattern = re.compile(r"^\|\s*([^\|]+?)\s*\|", re.MULTILINE)
documented_keys.update(doc_key_pattern.findall(table_content))
except Exception as e:
raise Exception(