diff --git a/improver_tests/test_api.py b/improver_tests/test_api.py new file mode 100644 index 0000000000..acdc5d3cfc --- /dev/null +++ b/improver_tests/test_api.py @@ -0,0 +1,13 @@ +# (C) Crown copyright, Met Office. All rights reserved. +# +# This file is part of IMPROVER and is released under a BSD 3-Clause license. +# See LICENSE in the root of the repository for full licensing details. +import pytest + +from improver import api + + +@pytest.mark.parametrize("module", (api.PROCESSING_MODULES.keys())) +def test_all_values_are_callable(module): + """Checks that each item in the PROCESSING_MODULES dict points to a callable object""" + assert callable(getattr(api, module))