@@ -157,7 +157,7 @@ def test_group_title_prefix_prog_replacement(build_outcome: str) -> None:
157157@pytest .mark .sphinx (buildername = "html" , testroot = "group-title-prefix-custom-subcommands" )
158158def test_group_title_prefix_custom_sub_commands (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
159159 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
161161 assert '<h2>complex custom (f)<a class="headerlink" href="#complex-first-(f)"' in build_outcome
162162 msg = '<h3>complex custom positional arguments<a class="headerlink" href="#complex-first-positional-arguments"'
163163 assert msg in build_outcome
@@ -173,7 +173,7 @@ def test_group_title_prefix_custom_sub_commands(build_outcome: str, opt_grp_name
173173@pytest .mark .sphinx (buildername = "html" , testroot = "group-title-prefix-empty-subcommands" )
174174def test_group_title_prefix_empty_sub_commands (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
175175 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
177177 assert '<h2>complex (f)<a class="headerlink" href="#complex-first-(f)"' in build_outcome
178178 msg = '<h3>complex positional arguments<a class="headerlink" href="#complex-first-positional-arguments"'
179179 assert msg in build_outcome
@@ -187,7 +187,7 @@ def test_group_title_prefix_empty_sub_commands(build_outcome: str, opt_grp_name:
187187@pytest .mark .sphinx (buildername = "html" , testroot = "group-title-empty-prefixes" )
188188def test_group_title_empty_prefixes (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
189189 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
191191 assert '<h2>(f)<a class="headerlink" href="#complex-first-(f)"' in build_outcome
192192 assert '<h3>positional arguments<a class="headerlink" href="#complex-first-positional-arguments"' in build_outcome
193193 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,
198198def test_group_title_prefix_sub_command_replacement (build_outcome : str , opt_grp_name : tuple [str , str ]) -> None :
199199 grp , anchor = opt_grp_name
200200 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
202202 assert '<h2>bar baronlyroot (f)<a class="headerlink" href="#bar-root-first-(f)"' in build_outcome
203203 assert '<h3>bar baronlyroot first positional arguments<a class="headerlink"' in build_outcome
204204
@@ -207,3 +207,9 @@ def test_group_title_prefix_sub_command_replacement(build_outcome: str, opt_grp_
207207def test_store_true_false (build_outcome : str ) -> None :
208208 assert "False" not in build_outcome
209209 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