From a2f7fa5ff1c95ff0a7ed04ab02ebe35830af8960 Mon Sep 17 00:00:00 2001
From: Daniel Scheffler <danschef@gfz-potsdam.de>
Date: Tue, 5 Mar 2024 15:16:24 +0100
Subject: [PATCH] Cover ValueError.

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
---
 tests/test_dead_pixel_correction.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_dead_pixel_correction.py b/tests/test_dead_pixel_correction.py
index 3c82d331..ba1ee096 100644
--- a/tests/test_dead_pixel_correction.py
+++ b/tests/test_dead_pixel_correction.py
@@ -140,7 +140,8 @@ class Test_interp_nodata_along_axis_2d(TestCase):
             interp_nodata_along_axis_2d(self.get_data2d(), axis=3)
         with pytest.raises(ValueError):
             interp_nodata_along_axis_2d(np.dstack([self.get_data2d(), self.get_data2d()]))
-
+        with pytest.raises(ValueError):
+            interp_nodata_along_axis_2d(self.get_data2d(), method='unsupported_method')
 
 class Test_interp_nodata_along_axis(TestCase):
     @staticmethod
-- 
GitLab