@@ -157,7 +157,7 @@ def test_group_title_prefix_prog_replacement(build_outcome: str) -> None:
157
157
@pytest .mark .sphinx (buildername = "html" , testroot = "group-title-prefix-custom-subcommands" )
158
158
def test_group_title_prefix_custom_sub_commands (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
159
159
grp , anchor = opt_grp_name
160
- assert '<h2>complex Exclusive<a class="headerlink" href="#complex-exclusive "' in build_outcome
160
+ assert '<h2>complex Exclusive<a class="headerlink" href="#complex-Exclusive "' in build_outcome
161
161
assert '<h2>complex custom (f)<a class="headerlink" href="#complex-first-(f)"' in build_outcome
162
162
msg = '<h3>complex custom positional arguments<a class="headerlink" href="#complex-first-positional-arguments"'
163
163
assert msg in build_outcome
@@ -173,7 +173,7 @@ def test_group_title_prefix_custom_sub_commands(build_outcome: str, opt_grp_name
173
173
@pytest .mark .sphinx (buildername = "html" , testroot = "group-title-prefix-empty-subcommands" )
174
174
def test_group_title_prefix_empty_sub_commands (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
175
175
grp , anchor = opt_grp_name
176
- assert '<h2>complex Exclusive<a class="headerlink" href="#complex-exclusive "' in build_outcome
176
+ assert '<h2>complex Exclusive<a class="headerlink" href="#complex-Exclusive "' in build_outcome
177
177
assert '<h2>complex (f)<a class="headerlink" href="#complex-first-(f)"' in build_outcome
178
178
msg = '<h3>complex positional arguments<a class="headerlink" href="#complex-first-positional-arguments"'
179
179
assert msg in build_outcome
@@ -187,7 +187,7 @@ def test_group_title_prefix_empty_sub_commands(build_outcome: str, opt_grp_name:
187
187
@pytest .mark .sphinx (buildername = "html" , testroot = "group-title-empty-prefixes" )
188
188
def test_group_title_empty_prefixes (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
189
189
grp , anchor = opt_grp_name
190
- assert '<h2>Exclusive<a class="headerlink" href="#complex-exclusive "' in build_outcome
190
+ assert '<h2>Exclusive<a class="headerlink" href="#complex-Exclusive "' in build_outcome
191
191
assert '<h2>(f)<a class="headerlink" href="#complex-first-(f)"' in build_outcome
192
192
assert '<h3>positional arguments<a class="headerlink" href="#complex-first-positional-arguments"' in build_outcome
193
193
assert f'<h3>{ grp } <a class="headerlink" href="#complex-first-{ anchor } "' in build_outcome
@@ -198,7 +198,7 @@ def test_group_title_empty_prefixes(build_outcome: str, opt_grp_name: tuple[str,
198
198
def test_group_title_prefix_sub_command_replacement (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
199
199
grp , anchor = opt_grp_name
200
200
assert f'<h2>bar { grp } <a class="headerlink" href="#bar-{ anchor } "' in build_outcome
201
- assert '<h2>bar Exclusive<a class="headerlink" href="#bar-exclusive "' in build_outcome
201
+ assert '<h2>bar Exclusive<a class="headerlink" href="#bar-Exclusive "' in build_outcome
202
202
assert '<h2>bar baronlyroot (f)<a class="headerlink" href="#bar-root-first-(f)"' in build_outcome
203
203
assert '<h3>bar baronlyroot first positional arguments<a class="headerlink"' in build_outcome
204
204
@@ -207,3 +207,9 @@ def test_group_title_prefix_sub_command_replacement(build_outcome: str, opt_grp_
207
207
def test_store_true_false (build_outcome : str ) -> None :
208
208
assert "False" not in build_outcome
209
209
assert "True" not in build_outcome
210
+
211
+
212
+ @pytest .mark .sphinx (buildername = "html" , testroot = "lower-upper-refs" )
213
+ def test_lower_upper_refs (build_outcome : str ) -> None :
214
+ assert '<p id="basic--d"><a class="reference internal" href="#basic--d" title="basic -d">' in build_outcome
215
+ assert '<p id="basic--D"><a class="reference internal" href="#basic--D" title="basic -D">' in build_outcome
0 commit comments