From 8fc8edbaccbd1f55b6e3c92efbefb08de001d173 Mon Sep 17 00:00:00 2001 From: Leif Denby Date: Mon, 26 Oct 2026 19:42:33 +0100 Subject: [PATCH] Add import smoke test and drop removed loaders from __all__ The tests/ directory was empty after removing the properties test, so `pytest tests` failed with exit code 4 in CI. The new test also caught that `loaders` was still listed in mxalign.__all__ after its removal. Co-Authored-By: Claude Opus 5.5 --- src/mxalign/__init__.py | 1 - tests/test_import.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/test_import.py diff --git a/src/mxalign/__init__.py b/src/mxalign/__init__.py index 61576c3..1ce5e4f 100644 --- a/src/mxalign/__init__.py +++ b/src/mxalign/__init__.py @@ -19,7 +19,6 @@ "align_time", "align_space", "accessors", - "loaders", "transformations", "interpolations", ] diff --git a/tests/test_import.py b/tests/test_import.py new file mode 100644 index 0000000..b5873eb --- /dev/null +++ b/tests/test_import.py @@ -0,0 +1,11 @@ +import importlib + + +def test_import_package(): + import mxalign # noqa: F401 + + +def test_public_api_exists(): + mxalign = importlib.import_module("mxalign") + for name in mxalign.__all__: + assert hasattr(mxalign, name), f"mxalign.__all__ lists missing name {name!r}"