Skip to content

Commit d7a0157

Browse files
committed
Adding a test ton ensure an exception is raised when len(time_range) != 2
1 parent c84edf4 commit d7a0157

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
@@ -436,7 +436,7 @@ def test_cp_covid():
436436
# Assert that we correctfully raise a DataException if
437437
# - time_range is not None
438438
# - and len(time_range) is not 2
439-
with pytest.raises(cp.custom_exceptions.DataExveption) as exc_info:
439+
with pytest.raises(cp.custom_exceptions.DataException) as exc_info:
440440
cp.ChangePointDetection(
441441
df,
442442
time_range=[0, 0, 0],

0 commit comments

Comments
 (0)