Skip to content

Commit 7d8f8fd

Browse files
author
Ofir Gordon
committed
test links checker
1 parent e12df85 commit 7d8f8fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/doc_tests/test_docs_links.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def check_link(_url, branch_name):
4242
print(f"The substring '/{branch_name}/' was not found.")
4343
raise Exception()
4444

45-
repo_root = f'https://github.com/sony/model_optimization/blob/{branch_name}/'
45+
repo_root = f'model_optimization/blob/{branch_name}/'
4646
abs_path = os.path.join(repo_root, link_path)
4747

48-
assert os.path.isfile(abs_path), f"Missing file: {link_path}"
48+
assert os.path.isfile(abs_path), f"Missing file: {abs_path}"
4949
else:
5050
try:
5151
response = requests.head(_url)

0 commit comments

Comments
 (0)