From b7ed156c62a50a2e84f70a04fb51280a99ad58f1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Oct 2023 16:18:35 -0500 Subject: [PATCH] tests(register_role_mapping): Basic examples w/o kwargs --- tests/test_docutils_roles.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_docutils_roles.py b/tests/test_docutils_roles.py index d7d5af65..c188204d 100644 --- a/tests/test_docutils_roles.py +++ b/tests/test_docutils_roles.py @@ -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": ( @@ -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(