Skip to content

Commit 10841c3

Browse files
committed
fix unit tests
1 parent c76b7b0 commit 10841c3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doubleml/tests/test_dml_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_doubleml_basedata():
2424
dummy_dml_data = DummyDataClass(pd.DataFrame(np.zeros((100, 10))))
2525
assert dummy_dml_data.d_cols[0] == 'theta'
2626
assert dummy_dml_data.n_treat == 1
27-
27+
assert dummy_dml_data.n_coefs == 1
2828

2929
@pytest.fixture(scope="module")
3030
def dml_data_fixture(generate_data1):

doubleml/tests/test_doubleml_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def test_doubleml_exception_data():
181181
# no instrument Z for LPQ
182182
_ = DoubleMLLPQ(DoubleMLData(df_iivm, 'y', 'd', x_cols=['z']),
183183
LogisticRegression(), LogisticRegression(), treatment=1)
184+
with pytest.raises(ValueError, match=msg):
184185
# non-binary Z for LPQ
185186
_ = DoubleMLLPQ(DoubleMLData(df_iivm, 'y', 'd', z_cols=['z']),
186187
LogisticRegression(), LogisticRegression(), treatment=1)

0 commit comments

Comments
 (0)