diff --git a/src/hamcrest/__init__.py b/src/hamcrest/__init__.py index a4a393cb..11a504f2 100644 --- a/src/hamcrest/__init__.py +++ b/src/hamcrest/__init__.py @@ -1,7 +1,13 @@ from hamcrest.core import * +from hamcrest.core import __all__ as _core_vars from hamcrest.library import * +from hamcrest.library import __all__ as _library_vars __version__ = "2.0.3.dev0" __author__ = "Chris Rose" __copyright__ = "Copyright 2020 hamcrest.org" __license__ = "BSD, see License.txt" + +__all__ = [] +__all__.extend(_core_vars) +__all__.extend(_library_vars) diff --git a/src/hamcrest/core/__init__.py b/src/hamcrest/core/__init__.py index d71b14b7..a578f365 100644 --- a/src/hamcrest/core/__init__.py +++ b/src/hamcrest/core/__init__.py @@ -4,3 +4,21 @@ __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" + +__all__ = [ + "assert_that", + "all_of", + "any_of", + "anything", + "calling", + "described_as", + "equal_to", + "instance_of", + "is_", + "is_not", + "none", + "not_", + "not_none", + "raises", + "same_instance", +] diff --git a/src/hamcrest/core/core/__init__.py b/src/hamcrest/core/core/__init__.py index 6f452c16..3bb11209 100644 --- a/src/hamcrest/core/core/__init__.py +++ b/src/hamcrest/core/core/__init__.py @@ -15,3 +15,20 @@ __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" + +__all__ = [ + "all_of", + "any_of", + "anything", + "calling", + "described_as", + "equal_to", + "instance_of", + "is_", + "is_not", + "none", + "not_", + "not_none", + "raises", + "same_instance", +] diff --git a/src/hamcrest/library/collection/__init__.py b/src/hamcrest/library/collection/__init__.py index d06b8181..bf07a66e 100644 --- a/src/hamcrest/library/collection/__init__.py +++ b/src/hamcrest/library/collection/__init__.py @@ -13,3 +13,18 @@ __author__ = "Chris Rose" __copyright__ = "Copyright 2013 hamcrest.org" __license__ = "BSD, see License.txt" + +__all__ = [ + "contains", + "contains_exactly", + "contains_inanyorder", + "empty", + "has_entries", + "has_entry", + "has_item", + "has_items", + "has_key", + "has_value", + "is_in", + "only_contains", +]