Skip to content

Commit 00c1290

Browse files
committed
make a test pass
1 parent a85ccfb commit 00c1290

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

causalpy/tests/test_integration_pymc_examples.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,10 @@ def test_ancova():
519519
result.summary()
520520
fig, ax = result.plot()
521521
assert isinstance(fig, plt.Figure)
522-
assert isinstance(ax, plt.Axes)
522+
# For multi-panel plots, ax should be an array of axes
523+
assert isinstance(ax, np.ndarray) and all(
524+
isinstance(item, plt.Axes) for item in ax
525+
), "ax must be a numpy.ndarray of plt.Axes"
523526

524527

525528
@pytest.mark.integration

0 commit comments

Comments
 (0)