Skip to content

Commit 657e56e

Browse files
author
Felix Erdmann
committed
more test - codecov
1 parent 444331a commit 657e56e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pysteps/postprocessing/interface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
66
Interface for the postprocessing module.
77
8+
Support postprocessing types:
9+
- ensmeblestats
10+
- diagnostics
11+
812
.. currentmodule:: pysteps.postprocessing.interface
913
1014
.. autosummary::
@@ -101,10 +105,6 @@ def discover_postprocessors():
101105
f"{plugintype}s",
102106
entry_point.attrs,
103107
)
104-
else:
105-
raise ValueError(
106-
f"Unknown module {entry_point.module_name} in the entrypoint {entry_point.name}"
107-
)
108108

109109

110110
def print_postprocessors_info(module_name, interface_methods, module_methods):

pysteps/tests/test_interfaces.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,16 @@ def method_getter(name):
197197
# Test for invalid argument type
198198
with pytest.raises(TypeError):
199199
pysteps.postprocessing.interface.get_method("mean", None)
200+
with pytest.raises(TypeError):
200201
pysteps.postprocessing.interface.get_method(None, "ensemblestats")
201202

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

207+
# Test print
208+
pysteps.postprocessing.postprocessors_info()
209+
206210

207211
def test_motion_interface():
208212
"""Test the motion module interface."""

0 commit comments

Comments
 (0)