Skip to content

Commit b43c63f

Browse files
committed
fix: update tests for IV summary implementation
1 parent 0b22a39 commit b43c63f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

causalpy/experiments/instrumental_variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def summary(self, round_to: int | None = 2) -> None:
298298
print(f" {name: <20} {round_num(val, round_to)}")
299299

300300
print("\nBayesian coefficients:")
301-
posterior = self.idata.posterior
301+
posterior = self.idata.posterior # type: ignore[union-attr]
302302
for var, dim, labels, stage in [
303303
("beta_t", "instruments", self.labels_instruments, "Instrument stage"),
304304
("beta_z", "covariates", self.labels, "Outcome stage"),

causalpy/tests/test_instrumental_variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def test_iv_coords_set(iv_data, sample_kwargs):
399399
# =============================================================================
400400

401401

402-
@pytest.mark.parametrize("method", ["plot", "summary", "effect_summary"])
402+
@pytest.mark.parametrize("method", ["plot", "effect_summary"])
403403
def test_iv_not_implemented_methods(iv_data, sample_kwargs, method):
404404
"""Test that unimplemented methods raise NotImplementedError."""
405405
result = cp.InstrumentalVariable(

0 commit comments

Comments
 (0)