Skip to content

Commit 0a3c7d5

Browse files
committed
fix failing test - maybe caused by error in resolving merge conflicts
1 parent 029e902 commit 0a3c7d5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

causalpy/tests/test_integration_pymc_examples.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,17 +1024,13 @@ class BadTrendComponent:
10241024
)
10251025

10261026
# --- Test Case 6: Additional error conditions --- #
1027-
# Test TypeError for non-numpy array X
1028-
with pytest.raises(TypeError, match="X_exog_array must be a NumPy array or None"):
1027+
# Test TypeError for non-xarray X (expecting xarray DataArray)
1028+
with pytest.raises(TypeError, match="X must be an xarray DataArray"):
10291029
model_with_x.predict(
1030-
X=data_with_x[["x1"]].values.tolist(), # Pass list instead of array
1030+
X=data_with_x[["x1"]].values, # Pass numpy array instead of xarray
10311031
coords=coords_with_x,
10321032
)
10331033

1034-
# Test coords=None error in predict
1035-
with pytest.raises(ValueError, match="coords must be provided"):
1036-
model_with_x.predict(X=data_with_x[["x1"]].values, coords=None)
1037-
10381034

10391035
@pytest.mark.integration
10401036
def test_state_space_time_series():

0 commit comments

Comments
 (0)