From 9ccc404526a0b1daf90106538d9cb53e805c974f Mon Sep 17 00:00:00 2001 From: Ramesh Padmanabhaiah <22363102+codeforester@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:53:47 -0700 Subject: [PATCH] api: define testing module exports --- lib/python/base_cli/testing.py | 3 +++ tests/test_public_api.py | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/python/base_cli/testing.py b/lib/python/base_cli/testing.py index c60f6d4..36dc7ec 100644 --- a/lib/python/base_cli/testing.py +++ b/lib/python/base_cli/testing.py @@ -13,6 +13,9 @@ from click.testing import Result +__all__ = ["invoke"] + + _INVOKE_CWD_LOCK = RLock() diff --git a/tests/test_public_api.py b/tests/test_public_api.py index ce56f99..626e96c 100644 --- a/tests/test_public_api.py +++ b/tests/test_public_api.py @@ -160,6 +160,7 @@ def test_module_all_surfaces_are_explicit(self) -> None: }, ) self.assertEqual(set(deprecations.__all__), {"BaseCliDeprecationWarning", "deprecated"}) + self.assertEqual(base_cli.testing.__all__, ["invoke"]) def test_entry_points_have_docstrings(self) -> None: self.assertTrue(base_cli.App.__doc__)