Skip to content

Commit 4211ddc

Browse files
committed
Adding a test ton ensure an exception is raised when len(time_range) != 2
1 parent 9166e29 commit 4211ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causalpy/tests/test_integration_pymc_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def test_cp_covid():
454454
# - time_range is not None
455455
# - time_range is not of type Iterable[pd.TimeStamp]
456456
# - DataIndex is of type pd.DatetimeIndex
457-
with pytest.raises(cp.custom_exceptions.DataException) as exc_info:
457+
with pytest.raises(cp.custom_exceptions.BadIndexException) as exc_info:
458458
cp.ChangePointDetection(
459459
df,
460460
time_range=[0, 0],

0 commit comments

Comments
 (0)