From 7c6e0b799d2f2e8f7524228377422d4c650dabdb Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Thu, 4 May 2023 14:41:34 -0400 Subject: [PATCH] Add check for __all__ items --- tests/{test_about.py => test_meta.py} | 7 +++++++ 1 file changed, 7 insertions(+) rename tests/{test_about.py => test_meta.py} (85%) diff --git a/tests/test_about.py b/tests/test_meta.py similarity index 85% rename from tests/test_about.py rename to tests/test_meta.py index 192a22f..6a09625 100644 --- a/tests/test_about.py +++ b/tests/test_meta.py @@ -31,3 +31,10 @@ def test_about(): ) is True ) + + +def test_all(): + """Test that the string entries in ``__all__`` are correct""" + + for item in peewee_plus.__all__: + assert hasattr(peewee_plus, item)