@@ -106,6 +106,7 @@ def mock_single_control_policy():
106106 os .unlink (path )
107107
108108
109+ @patch .dict (os .environ , {"CI" : "" , "VENTURALITICA_STRICT" : "" })
109110def test_compute_and_evaluate_value_error (mock_single_control_policy ):
110111 validator = AssuranceValidator (mock_single_control_policy )
111112 from venturalitica .metrics import METRIC_REGISTRY
@@ -118,6 +119,7 @@ def test_compute_and_evaluate_value_error(mock_single_control_policy):
118119 assert results == []
119120
120121
122+ @patch .dict (os .environ , {"CI" : "" , "VENTURALITICA_STRICT" : "" })
121123def test_compute_and_evaluate_unexpected_error (mock_single_control_policy , capsys ):
122124 validator = AssuranceValidator (mock_single_control_policy )
123125 from venturalitica .metrics import METRIC_REGISTRY
@@ -185,6 +187,7 @@ def test_compute_and_evaluate_invalid_data():
185187 v .compute_and_evaluate ("not a dataframe" , {})
186188
187189
190+ @patch .dict (os .environ , {"CI" : "" , "VENTURALITICA_STRICT" : "" })
188191def test_unknown_metric (mock_policy_file ):
189192 validator = AssuranceValidator (mock_policy_file )
190193 # Inject an unknown metric control into the policy object
@@ -202,6 +205,7 @@ def test_unknown_metric(mock_policy_file):
202205 assert not any (r .control_id == "U1" for r in results )
203206
204207
208+ @patch .dict (os .environ , {"CI" : "" , "VENTURALITICA_STRICT" : "" })
205209def test_unexpected_error_eval (mock_policy_file ):
206210 validator = AssuranceValidator (mock_policy_file )
207211 from venturalitica .metrics import METRIC_REGISTRY
0 commit comments