Skip to content

Commit 7758dd6

Browse files
committed
Adjust test for coverage.
1 parent b9514ce commit 7758dd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

causalpy/tests/test_pymc_experiments.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
def test_did_summary():
1111
"""Test that the summary stat function returns a string."""
1212
df = cp.load_data("did")
13+
round_to = 2
1314
result = cp.pymc_experiments.DifferenceInDifferences(
1415
df,
1516
formula="y ~ 1 + group*post_treatment",
1617
time_variable_name="t",
1718
group_variable_name="group",
1819
model=cp.pymc_models.LinearRegression(sample_kwargs=sample_kwargs),
1920
)
20-
print(type(result._causal_impact_summary_stat()))
21-
assert isinstance(result._causal_impact_summary_stat(), str)
21+
print(type(result._causal_impact_summary_stat(round_to)))
22+
assert isinstance(result._causal_impact_summary_stat(round_to), str)
2223

2324

2425
def test_regression_kink_gradient_change():

0 commit comments

Comments
 (0)