@@ -49,6 +49,8 @@ def test_did():
49
49
fig , ax = result .plot ()
50
50
assert isinstance (fig , plt .Figure )
51
51
assert isinstance (ax , plt .Axes )
52
+ with pytest .raises (NotImplementedError ):
53
+ result .get_plot_data ()
52
54
53
55
54
56
# TODO: set up fixture for the banks dataset
@@ -192,6 +194,8 @@ def test_rd():
192
194
fig , ax = result .plot ()
193
195
assert isinstance (fig , plt .Figure )
194
196
assert isinstance (ax , plt .Axes )
197
+ with pytest .raises (NotImplementedError ):
198
+ result .get_plot_data ()
195
199
196
200
197
201
@pytest .mark .integration
@@ -311,6 +315,8 @@ def test_rkink():
311
315
fig , ax = result .plot ()
312
316
assert isinstance (fig , plt .Figure )
313
317
assert isinstance (ax , plt .Axes )
318
+ with pytest .raises (NotImplementedError ):
319
+ result .get_plot_data ()
314
320
315
321
316
322
@pytest .mark .integration
@@ -664,6 +670,8 @@ def test_iv_reg():
664
670
assert isinstance (result , cp .InstrumentalVariable )
665
671
assert len (result .idata .posterior .coords ["chain" ]) == sample_kwargs ["chains" ]
666
672
assert len (result .idata .posterior .coords ["draw" ]) == sample_kwargs ["draws" ]
673
+ with pytest .raises (NotImplementedError ):
674
+ result .get_plot_data ()
667
675
668
676
669
677
@pytest .mark .integration
@@ -714,6 +722,8 @@ def test_inverse_prop():
714
722
assert isinstance (fig , plt .Figure )
715
723
assert isinstance (axs , list )
716
724
assert all (isinstance (ax , plt .Axes ) for ax in axs )
725
+ with pytest .raises (NotImplementedError ):
726
+ result .get_plot_data ()
717
727
718
728
719
729
# DEPRECATION WARNING TESTS ============================================================
0 commit comments