|
23 | 23 |
|
24 | 24 |
|
25 | 25 | @pytest.mark.integration |
26 | | -def test_did(): |
| 26 | +def test_did(mock_pymc_sample): |
27 | 27 | """ |
28 | 28 | Test Difference in Differences (DID) PyMC experiment. |
29 | 29 |
|
@@ -57,7 +57,7 @@ def test_did(): |
57 | 57 |
|
58 | 58 |
|
59 | 59 | @pytest.mark.integration |
60 | | -def test_did_banks_simple(): |
| 60 | +def test_did_banks_simple(mock_pymc_sample): |
61 | 61 | """ |
62 | 62 | Test simple Differences In Differences Experiment on the 'banks' data set. |
63 | 63 |
|
@@ -113,7 +113,7 @@ def test_did_banks_simple(): |
113 | 113 |
|
114 | 114 |
|
115 | 115 | @pytest.mark.integration |
116 | | -def test_did_banks_multi(): |
| 116 | +def test_did_banks_multi(mock_pymc_sample): |
117 | 117 | """ |
118 | 118 | Test multiple regression Differences In Differences Experiment on the 'banks' |
119 | 119 | data set. |
@@ -168,7 +168,7 @@ def test_did_banks_multi(): |
168 | 168 |
|
169 | 169 |
|
170 | 170 | @pytest.mark.integration |
171 | | -def test_rd(): |
| 171 | +def test_rd(mock_pymc_sample): |
172 | 172 | """ |
173 | 173 | Test Regression Discontinuity experiment. |
174 | 174 |
|
@@ -199,7 +199,7 @@ def test_rd(): |
199 | 199 |
|
200 | 200 |
|
201 | 201 | @pytest.mark.integration |
202 | | -def test_rd_bandwidth(): |
| 202 | +def test_rd_bandwidth(mock_pymc_sample): |
203 | 203 | """ |
204 | 204 | Test Regression Discontinuity experiment with bandwidth parameter. |
205 | 205 |
|
@@ -229,7 +229,7 @@ def test_rd_bandwidth(): |
229 | 229 |
|
230 | 230 |
|
231 | 231 | @pytest.mark.integration |
232 | | -def test_rd_drinking(): |
| 232 | +def test_rd_drinking(mock_pymc_sample): |
233 | 233 | """ |
234 | 234 | Test Regression Discontinuity experiment on drinking age data. |
235 | 235 |
|
@@ -289,7 +289,7 @@ def reg_kink_function(x, beta, kink): |
289 | 289 |
|
290 | 290 |
|
291 | 291 | @pytest.mark.integration |
292 | | -def test_rkink(): |
| 292 | +def test_rkink(mock_pymc_sample): |
293 | 293 | """ |
294 | 294 | Test Regression Kink design. |
295 | 295 |
|
@@ -320,7 +320,7 @@ def test_rkink(): |
320 | 320 |
|
321 | 321 |
|
322 | 322 | @pytest.mark.integration |
323 | | -def test_rkink_bandwidth(): |
| 323 | +def test_rkink_bandwidth(mock_pymc_sample): |
324 | 324 | """ |
325 | 325 | Test Regression Kink experiment with bandwidth parameter. |
326 | 326 |
|
@@ -350,7 +350,7 @@ def test_rkink_bandwidth(): |
350 | 350 |
|
351 | 351 |
|
352 | 352 | @pytest.mark.integration |
353 | | -def test_its(): |
| 353 | +def test_its(mock_pymc_sample): |
354 | 354 | """ |
355 | 355 | Test Interrupted Time-Series experiment. |
356 | 356 |
|
@@ -461,7 +461,7 @@ def test_its_no_treatment_time(): |
461 | 461 |
|
462 | 462 |
|
463 | 463 | @pytest.mark.integration |
464 | | -def test_its_covid(): |
| 464 | +def test_its_covid(mock_pymc_sample): |
465 | 465 | """ |
466 | 466 | Test Interrupted Time-Series experiment on COVID data. |
467 | 467 |
|
@@ -515,7 +515,7 @@ def test_its_covid(): |
515 | 515 |
|
516 | 516 |
|
517 | 517 | @pytest.mark.integration |
518 | | -def test_sc(): |
| 518 | +def test_sc(mock_pymc_sample): |
519 | 519 | """ |
520 | 520 | Test Synthetic Control experiment. |
521 | 521 |
|
@@ -574,7 +574,7 @@ def test_sc(): |
574 | 574 |
|
575 | 575 |
|
576 | 576 | @pytest.mark.integration |
577 | | -def test_sc_brexit(): |
| 577 | +def test_sc_brexit(mock_pymc_sample): |
578 | 578 | """ |
579 | 579 | Test Synthetic Control experiment on Brexit data. |
580 | 580 |
|
@@ -637,7 +637,7 @@ def test_sc_brexit(): |
637 | 637 |
|
638 | 638 |
|
639 | 639 | @pytest.mark.integration |
640 | | -def test_ancova(): |
| 640 | +def test_ancova(mock_pymc_sample): |
641 | 641 | """ |
642 | 642 | Test Pre-PostNEGD experiment on anova1 data. |
643 | 643 |
|
@@ -669,7 +669,7 @@ def test_ancova(): |
669 | 669 |
|
670 | 670 |
|
671 | 671 | @pytest.mark.integration |
672 | | -def test_geolift1(): |
| 672 | +def test_geolift1(mock_pymc_sample): |
673 | 673 | """ |
674 | 674 | Test Synthetic Control experiment on geo lift data. |
675 | 675 |
|
@@ -706,7 +706,7 @@ def test_geolift1(): |
706 | 706 |
|
707 | 707 |
|
708 | 708 | @pytest.mark.integration |
709 | | -def test_iv_reg(): |
| 709 | +def test_iv_reg(mock_pymc_sample): |
710 | 710 | df = cp.load_data("risk") |
711 | 711 | instruments_formula = "risk ~ 1 + logmort0" |
712 | 712 | formula = "loggdp ~ 1 + risk" |
@@ -734,7 +734,7 @@ def test_iv_reg(): |
734 | 734 |
|
735 | 735 |
|
736 | 736 | @pytest.mark.integration |
737 | | -def test_inverse_prop(): |
| 737 | +def test_inverse_prop(mock_pymc_sample): |
738 | 738 | """Test the InversePropensityWeighting class.""" |
739 | 739 | df = cp.load_data("nhefs") |
740 | 740 | sample_kwargs = { |
|
0 commit comments