Skip to content

Commit a9da70d

Browse files
committed
test:
`test_interpolation_spline` - added test for boundary conditions that are not supported
1 parent b8f3fae commit a9da70d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pytests/test_interpolation_spline.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@
1818
MIN_NUM_TEST_SAMPLES: Final[int] = 1
1919

2020

21+
def test_cubic_spline_raises_on_not_supported_bc_type() -> None:
22+
"""
23+
Tests whether ``pylops.signalprocessing.InterpCubicSpline`` raises a
24+
``NotImplementedError`` for boundary conditions that are not supported.
25+
26+
"""
27+
28+
with pytest.raises(NotImplementedError):
29+
InterpCubicSpline(
30+
dims=(5, 2),
31+
iava=np.array([0.5, 2.3]),
32+
bc_type="erroneous", # type: ignore
33+
)
34+
35+
2136
@pytest.mark.parametrize(
2237
"with_complex",
2338
[

0 commit comments

Comments
 (0)