Skip to content

Commit

Permalink
tests(register_role_mapping): Basic examples w/o kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 29, 2023
1 parent d31db3a commit b7ed156
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_docutils_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ 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"})

register_role_mapping(
{
"gh": (
Expand All @@ -133,6 +135,12 @@ def test_register_role_mapping() -> None:
}
)

register_role_mapping(
{
"ex": "tests.test_docutils_roles.MySphinxLikeRole",
}
)


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

0 comments on commit b7ed156

Please sign in to comment.