Skip to content

Commit

Permalink
more test - codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Erdmann committed Feb 27, 2025
1 parent 444331a commit 657e56e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pysteps/postprocessing/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
Interface for the postprocessing module.
Support postprocessing types:
- ensmeblestats
- diagnostics
.. currentmodule:: pysteps.postprocessing.interface
.. autosummary::
Expand Down Expand Up @@ -101,10 +105,6 @@ def discover_postprocessors():
f"{plugintype}s",
entry_point.attrs,
)
else:
raise ValueError(
f"Unknown module {entry_point.module_name} in the entrypoint {entry_point.name}"
)


def print_postprocessors_info(module_name, interface_methods, module_methods):
Expand Down
4 changes: 4 additions & 0 deletions pysteps/tests/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,16 @@ def method_getter(name):
# Test for invalid argument type
with pytest.raises(TypeError):
pysteps.postprocessing.interface.get_method("mean", None)
with pytest.raises(TypeError):
pysteps.postprocessing.interface.get_method(None, "ensemblestats")

# Test for invalid method types
with pytest.raises(ValueError):
pysteps.postprocessing.interface.get_method("mean", "forecast")

# Test print
pysteps.postprocessing.postprocessors_info()


def test_motion_interface():
"""Test the motion module interface."""
Expand Down

0 comments on commit 657e56e

Please sign in to comment.