@@ -155,9 +155,11 @@ def test_ctf(self):
155155 with open (self .test_config_path , "r" , encoding = "utf-8" ) as f :
156156 test_configs = json .load (f )
157157
158+ active_tests = [test for test in test_configs ["tests" ] if not test .get ("skip" , False )]
159+
158160 tests_passed = [
159161 test_case .expected_causal_effect .apply (result ) if result .effect_estimate is not None else False
160- for test_config , test_case , result in zip (test_configs [ "tests" ] , framework .test_cases , results )
162+ for test_config , test_case , result in zip (active_tests , framework .test_cases , results )
161163 ]
162164
163165 self .assertEqual (tests_passed , [True ])
@@ -230,9 +232,10 @@ def test_ctf_exception_silent(self):
230232 with open (self .test_config_path , "r" , encoding = "utf-8" ) as f :
231233 test_configs = json .load (f )
232234
235+ active_tests = [test for test in test_configs ["tests" ] if not test .get ("skip" , False )]
233236 tests_passed = [
234237 test_case .expected_causal_effect .apply (result ) if result .effect_estimate is not None else False
235- for test_config , test_case , result in zip (test_configs [ "tests" ] , framework .test_cases , results )
238+ for test_config , test_case , result in zip (active_tests , framework .test_cases , results )
236239 ]
237240
238241 self .assertEqual (tests_passed , [False ])
0 commit comments