Skip to content

Commit c592d5b

Browse files
committed
tests(register_role_mapping): Basic examples w/o kwargs
1 parent 334921d commit c592d5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_docutils_roles.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def test_register_role_mapping() -> None:
109109
"""Assertions for register_role_mapping()."""
110110
register_role_mapping({})
111111

112+
register_role_mapping({"gh": "django_docutils.lib.roles.github.github_role"})
113+
112114
register_role_mapping(
113115
{
114116
"gh": (
@@ -135,6 +137,12 @@ def test_register_role_mapping() -> None:
135137
}
136138
)
137139

140+
register_role_mapping(
141+
{
142+
"ex": "tests.test_docutils_roles.MySphinxLikeRole",
143+
}
144+
)
145+
138146

139147
GH_ROLE_TESTS: list[RoleContentFixture] = [
140148
RoleContentFixture(

0 commit comments

Comments
 (0)