From 66a200de36146ff5c0d9539894e4aee71b7e7f2e Mon Sep 17 00:00:00 2001 From: alanlujan91 Date: Mon, 4 Mar 2024 16:07:25 -0500 Subject: [PATCH] update keyword tests --- tests/estimation/test_msm_weighting.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/estimation/test_msm_weighting.py b/tests/estimation/test_msm_weighting.py index 2c2c02593..63f2ef849 100644 --- a/tests/estimation/test_msm_weighting.py +++ b/tests/estimation/test_msm_weighting.py @@ -109,5 +109,13 @@ def calc_moments(data, keys): data=data, calculate_moments=calc_moments, moment_kwargs=moment_kwargs, - bootstrap_kwargs={"n_draws": -1, "cluster_by": "cluster"}, + bootstrap_kwargs={"n_draws": -1}, + ) + + with pytest.raises(ValueError, match="Invalid bootstrap_kwargs: {'cluster'}"): + get_moments_cov( + data=data, + calculate_moments=calc_moments, + moment_kwargs=moment_kwargs, + bootstrap_kwargs={"cluster": "cluster"}, )