Skip to content

Commit f5a61d5

Browse files
authored
update readme link test (openvinotoolkit#947)
1 parent 2715514 commit f5a61d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/test_notebooks.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ def test_readme():
3535
"""
3636
Test that all notebooks have a README file and exist in the Notebooks README
3737
"""
38-
notebooks_readme_path = Path("notebooks/README.md")
38+
notebooks_readme_path = Path("README.md")
3939
notebooks_readme = notebooks_readme_path.read_text(encoding="utf-8")
4040
for item in Path("notebooks").iterdir():
4141
if item.is_dir():
4242
# item is a notebook directory
43-
notebook_dir = item.relative_to("notebooks")
43+
notebook_dir = item.relative_to(Path("notebooks"))
4444
if str(notebook_dir)[0].isdigit():
4545
assert "README.md" in [
4646
filename.name for filename in item.iterdir()
4747
], f"README not found in {item}"
4848
assert (
49-
str(notebook_dir) in notebooks_readme
49+
str(item.relative_to(notebooks_readme_path.parent)) in notebooks_readme
5050
), f"{item} not found in notebooks README: {notebooks_readme_path}"
5151

5252

0 commit comments

Comments
 (0)