Add test for incorrect method input
@@ -99,3 +99,10 @@ def test_large_kernel(input_dataset):
with pytest.raises(ValueError):
ts_estimator.run(input_dataset, kernel=kernel)
+
+def test_incorrect_method():
+ kernel = Gaussian2DKernel(10)
+ with pytest.raises(ValueError):
+ TSMapEstimator(method="bad")
+ with pytest.raises(ValueError):
+ TSMapEstimator(error_method="bad")
