diff --git a/python/fbprophet/tests/test_diagnostics.py b/python/fbprophet/tests/test_diagnostics.py index 5c760bd..d50d859 100644 --- a/python/fbprophet/tests/test_diagnostics.py +++ b/python/fbprophet/tests/test_diagnostics.py @@ -164,6 +164,11 @@ class TestDiagnostics(TestCase): df_cv, metrics=['mape'], ) self.assertIsNone(df_horizon) + # List of metrics containing non-valid metrics + with self.assertRaises(ValueError): + diagnostics.performance_metrics( + df_cv, metrics=['mse', 'error_metric'], + ) def test_rolling_mean(self): x = np.arange(10)