28
28
"""
29
29
30
30
any_whitespace = re .compile (r"\s*" )
31
- ref_tests = list ( Path (__file__ ).with_name ("ref" ).glob ("*.txt" ))
31
+ ref_tests = [( p . name , p ) for p in Path (__file__ ).with_name ("ref" ).glob ("*.txt" )]
32
32
ref_xfails = {
33
33
"ref_fluent_attrs.txt" : sys .version_info < (3 , 8 ),
34
34
"ref_fluent_call.txt" : sys .version_info < (3 , 8 ),
@@ -47,8 +47,8 @@ def assert_links(file: Path, links: list):
47
47
assert s == link
48
48
49
49
50
- @pytest .mark .parametrize (" file" , ref_tests )
51
- def test_references (file : Path , tmp_path : Path ):
50
+ @pytest .mark .parametrize (( "name" , " file") , ref_tests )
51
+ def test_references (name : str , file : Path , tmp_path : Path ):
52
52
"""
53
53
Basic extension tests for reference building.
54
54
@@ -72,6 +72,7 @@ def test_references(file: Path, tmp_path: Path):
72
72
links = []
73
73
74
74
files = {"conf.py" : default_conf + conf , "index.rst" : index }
75
+ print (f"Building file { name } ." )
75
76
result_dir = _sphinx_build (tmp_path , "html" , files )
76
77
77
78
assert_links (result_dir / "index.html" , links )
0 commit comments