File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,20 @@ def test_create_base_test_case_missing_treatment(self):
102
102
)
103
103
self .assertEqual ("\" Treatment variable 'missing' not found in inputs or outputs\" " , str (e .exception ))
104
104
105
+ def test_create_base_test_case_missing_estimator (self ):
106
+ framework = CausalTestingFramework (self .paths )
107
+ framework .setup ()
108
+ with self .assertRaises (ValueError ) as e :
109
+ framework .create_causal_test ({}, None )
110
+ self .assertEqual ("Test configuration must specify an estimator" , str (e .exception ))
111
+
112
+ def test_create_base_test_case_invalid_estimator (self ):
113
+ framework = CausalTestingFramework (self .paths )
114
+ framework .setup ()
115
+ with self .assertRaises (ValueError ) as e :
116
+ framework .create_causal_test ({"estimator" : "InvalidEstimator" }, None )
117
+ self .assertEqual ("Unknown estimator: InvalidEstimator" , str (e .exception ))
118
+
105
119
def test_create_base_test_case_missing_outcome (self ):
106
120
framework = CausalTestingFramework (self .paths )
107
121
framework .setup ()
You can’t perform that action at this time.
0 commit comments