forked from phoenix/litellm-mirror
test: fix documentation tests
This commit is contained in:
parent
8ec0e8cbc4
commit
195112565d
2 changed files with 6 additions and 2 deletions
|
@ -45,7 +45,9 @@ print(env_keys)
|
||||||
# Parse the documentation to extract documented keys
|
# Parse the documentation to extract documented keys
|
||||||
repo_base = "./"
|
repo_base = "./"
|
||||||
print(os.listdir(repo_base))
|
print(os.listdir(repo_base))
|
||||||
docs_path = "./docs/my-website/docs/proxy/configs.md" # Path to the documentation
|
docs_path = (
|
||||||
|
"../docs/my-website/docs/proxy/config_settings.md" # Path to the documentation
|
||||||
|
)
|
||||||
documented_keys = set()
|
documented_keys = set()
|
||||||
try:
|
try:
|
||||||
with open(docs_path, "r", encoding="utf-8") as docs_file:
|
with open(docs_path, "r", encoding="utf-8") as docs_file:
|
||||||
|
|
|
@ -34,7 +34,9 @@ for root, dirs, files in os.walk(repo_base):
|
||||||
# Parse the documentation to extract documented keys
|
# Parse the documentation to extract documented keys
|
||||||
repo_base = "./"
|
repo_base = "./"
|
||||||
print(os.listdir(repo_base))
|
print(os.listdir(repo_base))
|
||||||
docs_path = "./docs/my-website/docs/proxy/configs.md" # Path to the documentation
|
docs_path = (
|
||||||
|
"./docs/my-website/docs/proxy/config_settings.md" # Path to the documentation
|
||||||
|
)
|
||||||
documented_keys = set()
|
documented_keys = set()
|
||||||
try:
|
try:
|
||||||
with open(docs_path, "r", encoding="utf-8") as docs_file:
|
with open(docs_path, "r", encoding="utf-8") as docs_file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue