Skip to content

Commit

Permalink
tests(register_role_mapping): More coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 29, 2023
1 parent 7e6be67 commit 421a588
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_docutils_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ def test_register_role_mapping() -> None:
"""Assertions for register_role_mapping()."""
register_role_mapping({})

register_role_mapping(
{
"gh": (
"django_docutils.lib.roles.github.github_role",
{
"lowercase": True,
"innernodeclass": "docutils.nodes.inline",
"warn_dangling": True,
},
),
}
)


GH_ROLE_TESTS: list[RoleContentFixture] = [
RoleContentFixture(
Expand Down

0 comments on commit 421a588

Please sign in to comment.