File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ def test_readme():
35
35
"""
36
36
Test that all notebooks have a README file and exist in the Notebooks README
37
37
"""
38
- notebooks_readme_path = Path ("notebooks/ README.md" )
38
+ notebooks_readme_path = Path ("README.md" )
39
39
notebooks_readme = notebooks_readme_path .read_text (encoding = "utf-8" )
40
40
for item in Path ("notebooks" ).iterdir ():
41
41
if item .is_dir ():
42
42
# item is a notebook directory
43
- notebook_dir = item .relative_to ("notebooks" )
43
+ notebook_dir = item .relative_to (Path ( "notebooks" ) )
44
44
if str (notebook_dir )[0 ].isdigit ():
45
45
assert "README.md" in [
46
46
filename .name for filename in item .iterdir ()
47
47
], f"README not found in { item } "
48
48
assert (
49
- str (notebook_dir ) in notebooks_readme
49
+ str (item . relative_to ( notebooks_readme_path . parent ) ) in notebooks_readme
50
50
), f"{ item } not found in notebooks README: { notebooks_readme_path } "
51
51
52
52
You can’t perform that action at this time.
0 commit comments