Skip to content

Commit

Permalink
Adds unit test for improver.api
Browse files Browse the repository at this point in the history
  • Loading branch information
MoseleyS committed Sep 25, 2024
1 parent cc8fa30 commit 9d7e692
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions improver_tests/test_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from improver import api
import pytest


@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 9d7e692

Please sign in to comment.