|
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 |
|
@@ -403,7 +403,7 @@ def test_its(): |
403 | 403 |
|
404 | 404 |
|
405 | 405 | @pytest.mark.integration |
406 | | -def test_its_covid(): |
| 406 | +def test_its_covid(mock_pymc_sample): |
407 | 407 | """ |
408 | 408 | Test Interrupted Time-Series experiment on COVID data. |
409 | 409 |
|
@@ -457,7 +457,7 @@ def test_its_covid(): |
457 | 457 |
|
458 | 458 |
|
459 | 459 | @pytest.mark.integration |
460 | | -def test_sc(): |
| 460 | +def test_sc(mock_pymc_sample): |
461 | 461 | """ |
462 | 462 | Test Synthetic Control experiment. |
463 | 463 |
|
@@ -516,7 +516,7 @@ def test_sc(): |
516 | 516 |
|
517 | 517 |
|
518 | 518 | @pytest.mark.integration |
519 | | -def test_sc_brexit(): |
| 519 | +def test_sc_brexit(mock_pymc_sample): |
520 | 520 | """ |
521 | 521 | Test Synthetic Control experiment on Brexit data. |
522 | 522 |
|
@@ -579,7 +579,7 @@ def test_sc_brexit(): |
579 | 579 |
|
580 | 580 |
|
581 | 581 | @pytest.mark.integration |
582 | | -def test_ancova(): |
| 582 | +def test_ancova(mock_pymc_sample): |
583 | 583 | """ |
584 | 584 | Test Pre-PostNEGD experiment on anova1 data. |
585 | 585 |
|
@@ -611,7 +611,7 @@ def test_ancova(): |
611 | 611 |
|
612 | 612 |
|
613 | 613 | @pytest.mark.integration |
614 | | -def test_geolift1(): |
| 614 | +def test_geolift1(mock_pymc_sample): |
615 | 615 | """ |
616 | 616 | Test Synthetic Control experiment on geo lift data. |
617 | 617 |
|
@@ -648,7 +648,7 @@ def test_geolift1(): |
648 | 648 |
|
649 | 649 |
|
650 | 650 | @pytest.mark.integration |
651 | | -def test_iv_reg(): |
| 651 | +def test_iv_reg(mock_pymc_sample): |
652 | 652 | df = cp.load_data("risk") |
653 | 653 | instruments_formula = "risk ~ 1 + logmort0" |
654 | 654 | formula = "loggdp ~ 1 + risk" |
@@ -676,7 +676,7 @@ def test_iv_reg(): |
676 | 676 |
|
677 | 677 |
|
678 | 678 | @pytest.mark.integration |
679 | | -def test_inverse_prop(): |
| 679 | +def test_inverse_prop(mock_pymc_sample): |
680 | 680 | """Test the InversePropensityWeighting class.""" |
681 | 681 | df = cp.load_data("nhefs") |
682 | 682 | sample_kwargs = { |
|
0 commit comments