Skip to content

Commit

Permalink
Adds unit test for improver.api (#2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoseleyS authored Sep 27, 2024
1 parent cc8fa30 commit f6c2578
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions improver_tests/test_api.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit f6c2578

Please sign in to comment.