Skip to content

Commit

Permalink
update keyword tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed Mar 4, 2024
1 parent ac3afa2 commit 66a200d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/estimation/test_msm_weighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
)

0 comments on commit 66a200d

Please sign in to comment.