Skip to content

Commit c3df3eb

Browse files
committed
make another plot test pass
1 parent 5b5ccd2 commit c3df3eb

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
@@ -556,7 +556,10 @@ def test_geolift1():
556556
result.summary()
557557
fig, ax = result.plot()
558558
assert isinstance(fig, plt.Figure)
559-
assert isinstance(ax, plt.Axes)
559+
# For multi-panel plots, ax should be an array of axes
560+
assert isinstance(ax, np.ndarray) and all(
561+
isinstance(item, plt.Axes) for item in ax
562+
), "ax must be a numpy.ndarray of plt.Axes"
560563

561564

562565
@pytest.mark.integration

0 commit comments

Comments
 (0)