@@ -65,7 +65,8 @@ def test_make_glossary(schema_obj, schema_dir):
65
65
assert not any ([line .startswith (f'<a name="objects.{ i } ' ) for i in rules_only ])
66
66
67
67
68
- def test_make_filename_template (schema_obj , schema_dir ):
68
+ @pytest .mark .parametrize ("placeholders" , [True , False ])
69
+ def test_make_filename_template (schema_obj , schema_dir , placeholders ):
69
70
"""
70
71
Test whether:
71
72
@@ -76,7 +77,9 @@ def test_make_filename_template(schema_obj, schema_dir):
76
77
* All files under the datatype rules subdirectory have corresponding entries.
77
78
This may need to be updated for schema hierarchy changes.
78
79
"""
79
- filename_template = text .make_filename_template ("raw" , schema_obj , pdf_format = True )
80
+ filename_template = text .make_filename_template (
81
+ "raw" , schema_obj , placeholders = placeholders , pdf_format = True
82
+ )
80
83
81
84
# Test predefined substrings
82
85
expected_template_part = """
@@ -96,7 +99,9 @@ def test_make_filename_template(schema_obj, schema_dir):
96
99
datatype_count = len (datatypes )
97
100
datatype_bases = [f" { i } /" for i in datatypes ]
98
101
datatype_level = False
99
- datatype_file_start = " sub-<label>"
102
+ datatype_file_start = (
103
+ " sub-<label>" if not placeholders else " <matches>_"
104
+ )
100
105
datatype_bases_found = 0
101
106
for line in filename_template .split ("\n " ):
102
107
if datatype_level :
0 commit comments